GenAnimateSprite


GenAnimateSprite sprite, startTile, endTile, msDelay {, loops, finalTile }

sprite

Sprite to be animated.

startTile

The starting tile index in the animation sequence.

endTile

The ending tile index in the animation sequence.

msDelay

The delay between animation tiles in milliseconds.

loops

The number of times to loop through the animation sequence. This is an optional parameter. If not specified the animation will loop until halted.

finalTile

The final tile to display after the number of animation loops has expired.


Game Engine Overview







Become a Patron