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


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

SetOnGenSpriteAnimLoopSub sprite, Off

Turns off the automatic subroutine call.



Game Engine Events

Event Triggered Subs

Become a Patron