Many actors blinking
themagicbox
Member, PRO Posts: 82
In my game I have almost 200 actors in some scenes...only up to about 60 are visible an I wanted to know If I were to put blinking animations on each visible with timers, would it cause a lot of lag? should I change the actor image with another one of the same with the blinck or constrain eyes to each actor....and is there a way to have random blinking animations with timers?
Comments
Can you add a screen shot of what you are looking for?
WBOKO
When [game.Clock.Second] = [random(0,60)]
----Change Attribute:[self.Color.Alpha] To: [0.2]
--Otherwise
----Change Attribute:[self.Color.Alpha] To:[1.00]
You can replace the the change attribute behaviors with anything you want that makes sense for your game.
Your explanation is close. Except its not choosing a new random number every second. Instead it picks a random number (between 0 and 60) and just keeps it stored in memory. Then it constantly compares the seconds to see if it matches the random number. One second in every minute, the two numbers will match up. When they match, then do a blink. Otherwise, just set stuff back to its original state.
To get multiple conditions to work in your rule, you change the
"[All] conditions are valid:"
to
"[Any] conditions are valid:"
Experiment!
Have Fun!
Its GameSalad!