ResetSpriteState
From OxeyeWiki
(Difference between revisions)
(Created page with '{{VideoMethod | video.resetSpriteState(spriteId) | Resets the animation of the sprite state. In other words, forces the animation to restart from the beginning. | {{MethodParam|s...') |
m (→= Example) |
||
Line 10: | Line 10: | ||
}} | }} | ||
- | === Example == | + | === Example === |
<pre> | <pre> | ||
video.resetSpriteState(sprite) | video.resetSpriteState(sprite) | ||
</pre> | </pre> |
Latest revision as of 15:08, 5 March 2009
video.resetSpriteState(spriteId) | ||
Resets the animation of the sprite state. In other words, forces the animation to restart from the beginning. | ||
Parameter | Expected Type | Description |
spriteId | An integer | The ID of the sprite state. This ID is retreived when calling createSpriteState. |
Returns | ||
Returns nothing. |
Example
video.resetSpriteState(sprite)