CurrentAnimFrame | |||
Syntax: | |||
Result = CurrentAnimFrame( AnimSprite ) | |||
Parameters: | |||
| |||
Return Values: | |||
| |||
Description: | |||
Returns the current selected Frame in the AnimSprite. | |||
Example: | |||
LoadSprite(1,"player.bmp",0) TransparentSpriteColor(1,255,0,255) CreateAnimSprite(player.AnimSprite,1,75,75) ; in game loop DisplayAnimSprite(player,100,100) NextAnimFrame(player) If CurrentAnimFrame(player) = 10 ; do something Endif | |||
|