Sorry if this is the second time for me posting this problem (I did two days ago, but with no responses), but here is my problem:
Okay, I want to change
Code:
if pad:up() and jpos == 0 then
jpos = jpos + 1
end
to
Code:
if pad:up() and jpos == 0 then
jpos = jpos + 1
screen.waitVblankStart(180)
jpos = jpos - 1
end
so after three seconds, the variable can reset back to normal. However, this isn't happening, but instead it's like the timer isn't even there and it dosen't even let jpos = 1, it goes immediately back down one, so there is no change. My question is, how do I get a working timer?
And heres the full code so far if anyone wants more of a look:
here (oh, and ignore the Timer.new.. I forgot to delete it.
Thanks for any help.