SpriteBaseSpriteAnimationType Enumeration |
Defines the basis for a sprite's animation
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax public enum SpriteAnimationType
Members
| Member name | Value | Description |
---|
| ByFrame | 0 |
Each frame that passes in the game will cause the sprite to advance its animation by one frame.
|
| ByHorizontalVelocity | 1 |
The sprite's animation will advance according to how many pixels it will move horizontally each frame.
|
| ByVerticalVelocity | 2 |
The sprite's animation will advance according to how many pixels it will move vertically each frame.
|
| ByVectorVelocity | 3 |
The sprite's animation will advance according to how many pixels it moves each frame in any direction (using the distance formula).
|
See Also