Search found 49 matches

by icekiller8002
Mon Jun 12, 2017 1:37 pm
Forum: Support and Development
Topic: Number displays incorrectly if the first digit is zero
Replies: 12
Views: 9055

Number displays incorrectly if the first digit is zero

This is my code: function love.load() text = "A random 10 digit number (i.e. 5642452501)" yours = tonumber(text) new = tostring(yours) text = "("..new:sub(1,3)..") "..new:sub(4,6).."-"..new:sub(7,10) end function love.draw() love.graphics.print(text,0,15) end ...
by icekiller8002
Sun May 28, 2017 1:32 am
Forum: Support and Development
Topic: Can you scan a table to find specific values?
Replies: 6
Views: 3962

Re: Can you scan a table to find specific values?

UPDATE: So I used a really cheap method and it somehow works? Method: if ic ~= 1 and ic ~= 3 and ic ~= 5 and ic ~= 10 and ic ~= 13 and ic ~= 17 and ic ~= 22 and ic ~= 24 then ic = ic + 1 end The weird thing: I've used this method before it suddenly broke. Now I retype it, and it works just fine? I h...
by icekiller8002
Sun May 28, 2017 1:19 am
Forum: Support and Development
Topic: Can you scan a table to find specific values?
Replies: 6
Views: 3962

Re: Can you scan a table to find specific values?

I hate to say this, but neither of those work. The faster version never lets me continue the dialog with SPACE or ENTER. And the slower version always lets me continue the dialog with SPACE or ENTER, even if the ic value is banned. EDIT: Normally, it'd be fine if the slower version was bugged. Howev...
by icekiller8002
Sun May 28, 2017 12:55 am
Forum: Support and Development
Topic: Can you scan a table to find specific values?
Replies: 6
Views: 3962

Can you scan a table to find specific values?

So I have two values:

banned_ic = {1,3,5,10,13,17,22,24}
ic = 0

Every time I press SPACE or ENTER, the ic adds itself by 1:
ic = ic + 1

However, if I press SPACE or ENTER and the ic is already at one of the banned ic values, it's not supposed to add itself. How would I make something like this?
by icekiller8002
Sun Nov 06, 2016 1:23 pm
Forum: Support and Development
Topic: Random character?
Replies: 9
Views: 5476

Re: Random character?

for some reason, it's always 000b0 every time. is there a way to fix this?
by icekiller8002
Sat Nov 05, 2016 1:53 pm
Forum: Support and Development
Topic: Random character?
Replies: 9
Views: 5476

Re: Random character?

Also, pardon me. I forgot to mention that the title always spews out as "%%%%%" (no quotes) when I try this.
by icekiller8002
Sat Nov 05, 2016 1:52 pm
Forum: Support and Development
Topic: Random character?
Replies: 9
Views: 5476

Random character?

heya guys what I'm tryna do is I want to make it so the title gets set to a bunch of random characters. I used to play this game called ROBLOX (it uses lua aswell) and I was wondering how I'd do this in love. This is how I'd do it in ROBLOX: chars = {"a","b","0","%...
by icekiller8002
Tue Jun 07, 2016 1:41 pm
Forum: Support and Development
Topic: How do I turn my game into a .exe?
Replies: 2
Views: 1464

Re: How do I turn my game into a .exe?

thanks so much!
by icekiller8002
Mon Jun 06, 2016 9:30 pm
Forum: Support and Development
Topic: How do I turn my game into a .exe?
Replies: 2
Views: 1464

How do I turn my game into a .exe?

I don't understand the Game Distribution topic on the wiki, can someone make a video tutorial?