Timer + Animation Error
stevefan
Member Posts: 3
I use a Timer with an Animation in It!
I use the method Every, but the Animation couldn't play success, is there any problem!
I use the method Every, but the Animation couldn't play success, is there any problem!
Comments
Maybe you should delete that rule and start a new rule or something like that.
Sorry if that was not helpful!!!
There is no rule , just a timer which is used to play animation!
Your Animate behavior has a set of frames/images to go through. It does not have a specific duration of how long to run that animation, only settings to say either loop, how fast to go through images, and whether to reset the image back to the image it started on.
http://gamesalad.com/wiki/behaviors_reference:animate
Now with the Timer behavior, when you use the Every setting that mean to start the behaviors it contains every X seconds. In this manner, it does not give a duration of how long to run the behaviors it contains, only when to start them. Now, if you used the For setting, that will give a duration of how long to run the behaviors it contains.
Summary: what you would want to do is have the Timer with Every X seconds, then inside that, another Timer with For X seconds (run to completion). Then inside that Timer behavior, add your Animate behavior.