Method | Description | |
---|---|---|
AnimatedSpriteInstance ( |
Create a new sprite instance with a sprite and a default loop name.
|
|
CurrentTexture ( ) : Microsoft.Xna.Framework.Graphics.Texture2D |
Get the current texture, based on the animations loops.
|
|
SwitchLoop ( string loopName ) : void |
Switch to a new animation loop. Reset the frame number to zero.
|
|
Update ( |
Called every update cycle to advance the frame when necessary.
|
public AnimatedSpriteInstance ( |
||
sourceSprite | The sprite to which this is attached. | |
defaultLoop | string | Default animation loop for this instance. |
return | System |
public CurrentTexture ( ) : Microsoft.Xna.Framework.Graphics.Texture2D | ||
return | Microsoft.Xna.Framework.Graphics.Texture2D |
public SwitchLoop ( string loopName ) : void | ||
loopName | string | The name of the new loop. |
return | void |
public Update ( |
||
time | The current game time. | |
return | void |