프로퍼티 | 타입 | 설명 | |
---|---|---|---|
Looped | bool |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | System |
public Draw ( |
||
batch | Sprite batch. | |
disableLayering | bool | Whether to use layer ordering or not. |
리턴 | void |
public GetTextureRegion ( |
||
rect | Rectangle to retrieve. | |
리턴 | Color[] |