Timer + Animation Error

stevefanstevefan Member Posts: 3
edited November -1 in Tech Support
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!


  • DetheDethe Member Posts: 172
    Hmm... It should work because I don't see why not?
    Maybe you should delete that rule and start a new rule or something like that.

    Sorry if that was not helpful!!!
  • stevefanstevefan Member Posts: 3
    I don't know how to post Image,

    There is no rule , just a timer which is used to play animation!
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    Here is the problem with that:

    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.

    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.
  • stevefanstevefan Member Posts: 3
    Thanks CodeMonkey!
Sign In or Register to comment.