An animated object consisted of many animations. Manage when to switch between animations and which animation to update.
Parameters: |
|
---|
Call the Animation.reset() function of the current animation
Call to advance the animation, or switch to another group of animation when the return value of key_function() is changed.
Store surfaces needed for animation and keep track of the current frame in the animation
Parameters: |
|
---|
Reset the animation to the first frame and reset the number of tick() calls needed to switch to the next frame
Call this to advance the animation. When interval is 5 for the first 5 calls, surf will not change, on the 6th call surf is switched to the next frame