Timer not Working :(

Blitz3D Forums/Blitz3D Beginners Area/Timer not Working :(

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.

Your code is fine, so it's something else. Check the value of the gun variable.

this works:

While Not KeyHit(1) ; start main loop

If MouseDown(1) 

    If MilliSecs() >= shottimer + 500
      Print "bullet";CreateBullet()
      shottimer = MilliSecs()
    EndIf

EndIf			

Wend	;end main loop
End		;end program