GenSetSpriteAccelerationXY


GenSetSpriteAccelerationXY sprite, accelX, accelY {, terminalVelocity }

sprite

Sprite to accelerate.

accelX

The X acceleration in pixels per sec2

accelY

The Y acceleration in pixels per sec2

terminalVelocity

This optional parameter may be used to set the terminal velocity of the sprite. When the sprite reaches this velocity it will stop accelerating.


The diagram below shows the X and Y axis and their direction of movement.


SetOnGenSpriteTermVelSub


Game Engine Overview







Become a Patron