[Tutor] Delay Between iterations
Nate Lastname
defensoft at gmail.com
Thu Jan 12 19:36:35 CET 2012
Hello ANKUR,
Just add a timer variable to the plane class. Every time it is
updated, subtract time from the timer. When it hits 0, the bullet can
be fired. Else, it cannot. When the bullet is fired, reset the timer
to a delay value. It's that simple :)
Cheers,
Nathanael Lastname.
--
My Blog - Defenestration Coding
http://defenestrationcoding.wordpress.com/
More information about the Tutor
mailing list