Looping timers?
Posted: Tue Dec 08, 2015 12:22 am
I know that there is probably an easy solution, but such solution I am having trouble finding.
How could I do the following and have it work....
- I have an actor (a laser, in this case) that is created, plays the 'on' animation and sets the variable 'laserOn' to 1.
- 2 seconds later the animation switches to 'off' and laserOn is set to 0.
- 2 seconds later it goes back to 'on' and such, looping over and over again until it is destroyed.
Any way of doing this?
Thanks for any replies!
How could I do the following and have it work....
- I have an actor (a laser, in this case) that is created, plays the 'on' animation and sets the variable 'laserOn' to 1.
- 2 seconds later the animation switches to 'off' and laserOn is set to 0.
- 2 seconds later it goes back to 'on' and such, looping over and over again until it is destroyed.
Any way of doing this?
Thanks for any replies!