SetOnGenSpriteTermVelSub


SetOnGenSpriteTermVelSub sprite, onTermVelocity()

Sets the on terminal velocity reached subroutine for the specified sprite. Once set, the specified onTermVelocity() subroutine will be automatically called when the sprite reaches terminal velocity.



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

SetOnGenSpriteTermVelSub sprite, onTermVelocity()

'...continue with program...

Sub onTermVelocity(sprite)

End Sub


sprite

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


SetOnGenSpriteTermVelSub sprite, Off

Turns off the automatic subroutine call.


GenSetSpriteTerminalVelocity


GenGetSpriteTerminalVelocity()


GenSetSpriteAcceleration


GenSetSpriteAccelerationXY


Game Engine Events


Event Triggered Subs






Become a Patron