SetOnGenSpriteAnimLoopSub


SetOnGenSpriteAnimLoopSub sprite, onAnimLoop()

Sets the on sprite animation end subroutine for the specified sprite. Once set, the specified onAnimLoop() subroutine will be automatically called when a sprite animation sequence loops back to the start.



'...Turn on the game engine and init a sprite...

SetOnGenSpriteAnimLoopSub sprite, onAnimLoop()


'...continue with program...

Sub onAnimLoop(sprite)

End Sub


sprite

The Game Engine sprite object. This is the sprite that triggered the event sub.


SetOnGenSpriteAnimLoopSub sprite, Off

Turns off the automatic subroutine call.


GenAnimateSprite


GenAnimateSpriteCustom


Game Engine Events


Event Triggered Subs






Become a Patron