Свойство | Type | Description | |
---|---|---|---|
Looped | bool |
Méthode | Description | |
---|---|---|
AnimatedSprite ( |
||
Draw ( |
Draws the current sprite frame to the screen.
|
|
GetTextureRegion ( |
Get a portion of the current frame's texture as a sequence of colors.
|
|
Pause ( ) : void |
Pauses the animation at current frame.
|
|
Reset ( ) : void |
Reset the sprite.
|
|
SetFrame ( int frame ) : void |
Sets the current frame.
|
|
Start ( ) : void |
Start the animation.
|
|
Stop ( ) : void |
Stops the animation and rewinds it to the first frame.
|
|
Update ( ) : void |
Update the sprite.
|
public AnimatedSprite ( |
||
parent | ||
tex | Microsoft.Xna.Framework.Graphics.Texture2D | |
frameCount | int | |
frameRate | float | |
Résultat | System |
public Draw ( |
||
batch | Sprite batch. | |
disableLayering | bool | Whether to use layer ordering or not. |
Résultat | void |
public GetTextureRegion ( |
||
rect | Rectangle to retrieve. | |
Résultat | Color[] |
public SetFrame ( int frame ) : void | ||
frame | int | Frame id (0-based). |
Résultat | void |