GenAnimateSpriteCustom


GenAnimateSpriteCustom sprite, tileArray(), msDelay {, loops, finalTile }

sprite

Sprite to be animated.

tileArray()

A numeric array containing the tiles to sequence through during animation.

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