14sum
Junior Member
Posts: 66
|
Post by 14sum on Jan 25, 2020 22:56:59 GMT
I'm on a iPhone 5c on the latest touch Lua
When I type in coordinates on a for lloop the points don't align and are going in the wrong direction...
|
|
14sum
Junior Member
Posts: 66
|
Post by 14sum on Jan 29, 2020 19:36:42 GMT
--here's my code-- draw.setscreen(1) width, height = draw.getsize() draw.settitle( "FreakOut!" ) draw.clear(draw.black) width, height = draw.getsize() --add button that says "FreakOut!" y = height/2+math.random(-height/2,height/2) x = width/2+math.random(-width/2,width/2) a = y b = x n = y i = x f = y k = x q = y t = x c = y h = x kudos = math.random(0,6) for i = 1,1000 do if kudos >= 1 then x = x + 1 y = y + 1 end
draw.point(x,y,draw.white) draw.point(x,y,draw.black) if kudos >= 2 then x = x + 1 y = y + 1 a = a - 1 b = b - 1
draw.point(x,y,draw.white) draw.point(a,b,draw.white) sleep(10) draw.point(x,y,draw.black) draw.point(a,b,draw.black) if x == 0 or x == width or y == 0 or y == height then i = 1000 end end end sleep(10000)
|
|
|
Post by Sum14 on Mar 7, 2020 0:29:25 GMT
Can you please fix this :,( I want more options for math.random() too
|
|
14sum
Junior Member
Posts: 66
|
Post by 14sum on Mar 10, 2020 20:14:44 GMT
where is everyone!?!?!?
|
|
14sum
Junior Member
Posts: 66
|
Post by 14sum on Mar 22, 2020 22:07:01 GMT
I Also noticed that the background for graphics doesn’t fill out the entire Screen went tilted sideways...
|
|
14sum
Junior Member
Posts: 66
|
Post by 14sum on May 18, 2020 21:38:43 GMT
Grr, I’m about to just ruin programming for good to write this thing. Completely. incoherent.
|
|
|
Post by Sum14 on May 28, 2020 10:26:49 GMT
Oh so the jokes on me!!!
I see that let var
X.X
|
|
14sum
Junior Member
Posts: 66
|
Post by 14sum on Jun 13, 2020 20:34:43 GMT
No that wasn't it! What did i do wrong?
|
|
14sum
Junior Member
Posts: 66
|
Post by 14sum on Oct 20, 2020 7:33:32 GMT
Hi again
Trying to make a fireworks game I was testing out this code
draw.setscreen(1) width, height = draw.getsize() draw.settitle( "FreakOut!" ) draw.clear(draw.black) x = width/2 y = height/2 draw.point(x, y, draw.white) q = x w = y while true do q = q + 1 w = w + 1 draw.point(q, w, draw.white) end sleep(100000)
I say y = y + 1
I get y = y - 1
|
|
14sum
Junior Member
Posts: 66
|
Post by 14sum on Oct 27, 2020 12:10:16 GMT
Fix the tilt! Genius!
|
|