1
Vote

Behaviour when changing Animations

description

At the time of writing, in the current changeSet, the testbed shows the changing of animations via ActionAnimation.
I would really expect the behaviour of animations to be so that they return to the original state after they are swapped by ActionAnimation. ie. rotate->blink->rotate might cause sprite to be invisible.
This gets worse with FrameAnimations as shown in the testBed as it changes SpriteProperties.SourceRectangle.
 
I suggest some animations return to the state they were before, this would be good in the case of BlinkAnimation and FrameAnimation.

comments

YourFurryFiend wrote Apr 5, 2008 at 7:42 PM

Some animations should implement SaveState() and RestoreState() when a Restore property is set

wrote Apr 6, 2008 at 2:34 PM

wrote Feb 12, 2013 at 9:17 PM