Class AnimatedSprite
Defines an animated sprite with methods to control the playing of the sprite animation.
- Inheritance
-
Animated
Sprite
- Inherited Members
Properties
- Current
Frame Gets the source Animation
Frame of the current frame of animation for this
AnimatedSprite .
- Current
Frame Time Remaining Gets the amount of time remaining for the Current
Frame before moving to the next frame.
- Frame
Count Gets the total number of frames in this Animated
Sprite
- Is
Animating Gets a value that indicates if this Animated
Sprite has completed its animation.
- Is
Paused Gets a value that indicates if this Animated
Sprite is currently paused.
- Is
Ping Pong Gets or Sets a value that indicates if this Animated
Sprite should ping-pong once reaching the last frame of animation.
- Is
Reversed Gets or Sets a value that indicates if this Animated
Sprite plays it's frames in reverse order.
- Loop
Count Gets a value that indicates the total number of loops/cycles of the animation that should play for this Animated
Sprite .
- On
Animation Begin Gets or Sets an Action method to invoke at the start of the animation.
- On
Animation End Gets or Sets an Action method to invoke when the animation ends.
- On
Animation Loop Gets or Sets an Action to invoke each time the animation loops.
- On
Frame Begin Gets or Sets an Action method to invoke at the start of each frame of animation.
- On
Frame End Gets or Sets an Action method to invoke at the end of each frame of animation.
- Speed
Sets the rate at which the animation is played.
Methods
- Pause(bool)
Paused this Animated
Sprite and prevents it from being updated until it is unpaused.
- Play(int?, int?)
Starts the animation for this Animated
Sprite
- Reset()
Resets this Animated
Sprite back to its initial state as defined by the AnimationTag used to create it. You will need to call Play(int?, int?) after resetting to start the playback of the animation.
- Set
Frame(int) Sets the current frame of animation for this Animated
Sprite .
- Stop()
Stops this Animated
Sprite on the current frame.
- Unpause(bool)
Unpaused this Animated
Sprite .
- Update(Game
Time) Updates this Animated
Sprite .
- Update(double)
Updates this Animated
Sprite .
- Update(in Time
Span) Updates this Animated
Sprite .