maybe because L1 is never 0 :P ?
Printable View
maybe because L1 is never 0 :P ?
I do call it in beggin9ng though. plus when it reaches the top of the screen it sets L1 to L1=0
help! when I try to exit my code, this happens. It returns to the last thing. example menu. Because this is a new file it does that but how can I stop it from that? here it is:
I realize "break" brings it back to the menu but how can i prevent that?Code:while true do
screen:clear()
screen:print(165,130,"Thanks for playing!",green)
screen.flip()
screen.waitVblankStart(120)
break
end
Just add a var, say "exit", and if that var is, lets say 1, then just do another break:
Then put this in your menu:Code:while true do
screen:clear()
screen:print(165,130,"Thanks for playing!",green)
screen.flip()
screen.waitVblankStart(12 0)
exit=1
break
end
Code:if exit == 1 then
break
end
arg i cant remeber the line of code it was sometin like os seed, to make it randomize something everytime
thanks
o and i got it to work=-)
thanks man. I owe you one :icon_winkZitat:
Zitat von Altair
no prob!
is there any wildcards for lua? i noticed plain * wont work
and is there something that will write all button input into a text file,
Ok i found the problem. Since I was creating the table in the while loop it kept assigning it that values.
last problem of the day,, with my guitar program, if you keep hitting the notes over and over again, the sounds get louder and louder and start to hiss.
its very noticible, and thats whats keeping me for releasing v0.2,,
so i want to know how to fix it, ive tryed oldpad but you need to press the button the exact same time for it to make a sound,,
what else can i do to stop that