Property | Type | Description | |
---|---|---|---|
HandleEndAnimation | void | ||
HandleKeyFrameEvents | void |
Method | Description | |
---|---|---|
Animation2D ( ) : System |
Initializes a new instance of the Animation2D class.
|
|
PlayAnimation ( string name, int startFrame, int endFrame, bool loop = true, bool backwards = false ) : void |
Plays the animation between the specified frames.
|
|
PlayAnimation ( string name, int startFrame, int endFrame, bool loop = true, bool backwards = false, int framesPerSecond = null ) : void |
Plays the animation between the specified frames.
|
|
ResumeAnimation ( ) : void |
Resume the animation.
|
|
SetFrame ( int frame ) : void |
Sets the frame for the current active animation.
|
|
StopAnimation ( ) : void |
Stops the animation.
|
Method | Description | |
---|---|---|
DefaultValues ( ) : void |
Sets the default values
|
|
Initialize ( ) : void |
Initialzie the component
|
|
Update ( TimeSpan gameTime ) : void |
Updates the animation.
|
Method | Description | |
---|---|---|
HandleEndAnimation ( ) : void |
Handle End animation
|
|
HandleKeyFrameEvents ( ) : void |
Handle key frame events
|
public PlayAnimation ( string name, int startFrame, int endFrame, bool loop = true, bool backwards = false ) : void | ||
name | string | The name of the animation. |
startFrame | int | The frame where the animation starts playing. |
endFrame | int | The last frame of the animation to play. |
loop | bool | if set to |
backwards | bool | if set to |
return | void |
public PlayAnimation ( string name, int startFrame, int endFrame, bool loop = true, bool backwards = false, int framesPerSecond = null ) : void | ||
name | string | The name of the animation. |
startFrame | int | The frame where the animation starts playing. |
endFrame | int | The last frame of the animation to play. |
loop | bool | if set to |
backwards | bool | if set to |
framesPerSecond | int | The frames per second. |
return | void |
public SetFrame ( int frame ) : void | ||
frame | int | /// The frame index. /// |
return | void |
protected Update ( TimeSpan gameTime ) : void | ||
gameTime | TimeSpan | /// The game time. /// |
return | void |