SetOnGenSpriteAnimEndSub sprite, onAnimEnd()

Sets the on sprite animation end subroutine for the specified sprite. Once set, the specified onAnimEnd() subroutine will be automatically called when a sprite animation sequence ends.

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

SetOnGenSpriteAnimEndSub sprite, onAnimEnd()

'...continue with program...

Sub onAnimEnd(sprite)

End Sub


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

SetOnGenSpriteAnimEndSub sprite, Off

Turns off the automatic subroutine call.



Game Engine Events

Event Triggered Subs

Become a Patron