My game has three guns - a semi, a full auto, and a slow auto. The semi works like this:
or something like that. The full auto looks like this:
But the slow-auto, which uses a timer, doesn't work:
Yet it doesn't work. And "shottimer = Millisecs()" is in my Globals section.
If MouseHit(1) CreateBullet() EndIf
or something like that. The full auto looks like this:
If MouseDown(1) CreateBullet() EndIf
But the slow-auto, which uses a timer, doesn't work:
If gun=3 If MouseDown(1) If Millisecs() >= shottimer + 500 CreateBullet() shottimer = Millisecs() EndIf EndIf EndIf
Yet it doesn't work. And "shottimer = Millisecs()" is in my Globals section.