Page 1 of 1

limiting times an event can happen?

PostPosted: Tue Dec 14, 2004 9:22 pm
by game_mate
is there a way to creat an event that can only happon once or after a certain time. like a collition event or a key down event(such as jumping)?

PostPosted: Tue Dec 14, 2004 9:50 pm
by jazz_e_bob
Create an actor variable called "canShoot".

Set it to 1.

Your shoot key checks if canShoot is 1.
If it is 1 it fires a bullet then sets camShoot to 0 and starts a timer.
The timer event sets canShoot back to 1.

If the timer is set to 1000 you can only shoot a bullet evey one second!

Image