Calculator Community > Axe

Key delay help

(1/2) > >>

DJ Omnimaga:
I am certain I saw this in another topic, but there are so many posts I no longer can find it and search engine won't help either:

For example, on the highscore screen, when I press 2nd to exit it lands back on the title screen. To start the game, I need to press 2nd too. However, if I hold down 2nd for slightly too long, I don't even have time to see the title screen, even if I use Repeat Getkey=54 instead of Repeat Getkey(54). How would I fix that?

calc84maniac:
Put a dummy getKey before the loop, to clear the last key pressed. Hopefully that will work :)

DJ Omnimaga:
ok thanks that works. Only with getkey, not getkey(), though.

Quigibo:
You can do this:

While getkey(0):End

That works even when you're using direct keys.  It will wait until you've let go of all the keys.

DJ Omnimaga:
Aah ok thanks ^^

Navigation

[0] Message Index

[#] Next page

Go to full version