Timer every random 2 to 10 seconds
3absh
Member Posts: 601
I'm trying to make a timer that triggers an "eye blinking" boolean every 2 to 10 seconds
The problem with this rule is once the random value is chosen in a timer it remains the same and doesn't change.
Is there another way I can do this?
Comments
Make a variable called "randomTime" that changes every time you go through the timer.
Ex:
every "randomTime" seconds
change attribute "randomTime" to "random(2, 10)"
the rest of your code...
triangularitygames.com
I answered pretty much the same question recently here: http://forums.gamesalad.com/discussion/94367/random-number-generation#latest
After random (2,10)
--blink true
--After 0.2 seconds
----blink false
----destroy (this actor)
----spawn (this actor)
Alright I will try these out, thanks guys