Category: Objects
/ Movement
Since engine version: 1.0 OC
GetYDir
Description
Returns the vertical speed of the calling object.
Syntax
int GetYDir(int precision);
Parameter
- precision:
- Precision with which to retrieve the speed. Default value is 10.
Remark
The function will return the speed in pixels per frame multiplied with precision. If no precision is specified, the ten-fold speed value will be returned.