I'm having problems with KeyHit that Gernot created. I want to press a key and start a sprite moving. I don't want the sprite to stop until I press the same key again. What I do doesn't seem to work. Here's the code. Thanks for any info.
Code (glbasic) Select
KeyHitUpdate()
IF KeyHit(57) = 2
locX = locX + dirX
ELSE
locX = locX
ENDIF