auto keyhit?

Blitz3D Forums/Blitz3D Beginners Area/auto keyhit?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Both KeyHit and Keydown are detecting key presses and return True or False, you cannot force Blitz to do it for you.

I assume you want some sort of delay so that the player can't keep their finger on a key? Something like this may work for you ...

global KeyTimer=0

if Keydown(44) and KeyTimer = 0
   KeyTimer = 100
   ;do stuff
else
  KeyTimer = KeyTimer - ( KeyTimer > 0 )
endif


Otherwise I think you need to explain yourself a bit better?

Stevie