Search found 11 matches

by icekiller8002
Sat Jan 06, 2018 3:52 am
Forum: Ports
Topic: I made an alarm clock that I want to expand it to a TV
Replies: 2
Views: 244

I made an alarm clock that I want to expand it to a TV

Basically, I made an alarm clock that allows you to set your own alarm. Once the time is equal to your alarm time, an old-class electronic alarm clock ring will play, and you will be asked to solve a math problem. Once you get the math problem right, the alarm stops. If you would like to check it ou...
by icekiller8002
Mon Jun 12, 2017 2:33 pm
Forum: Support and Development
Topic: Number displays incorrectly if the first digit is zero
Replies: 12
Views: 1327

Re: Number displays incorrectly if the first digit is zero

Keep in mind, I want the number to display as (XXX) XXX-XXXX, not XXXXXXXXXX
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: 1327

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 Normally, if the first digit is not 0, i...
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: 743

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: 743

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: 743

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: 1021

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: 1021

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: 1021

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","%"} rand = chars[math.random(1,#char...
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: 357

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

thanks so much!