Player Controls

Blitz3D Forums/Blitz3D Beginners Area/Player Controls

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

You might try changing to key hit vice keydown see demo code below

; KeyHit Example Press down key with in time period
; to execute code loop

While (1)

; Set up the timer

current=MilliSecs()


; Wait 1 seconds

While MilliSecs() < current+1000
;waiting xx millisec
Wend

hitcount = KeyHit(208)

If (hitcount) Then

Print "Executing code loop - key pressed " + hitcount + " times"

Else

Print "Key not pressed during last time period "

EndIf

Print

Wend