Category: Objects
/ Movement
Since engine version: 1.0 OC
SetXDir
Description
Sets the horizontal speed of the object.
Syntax
bool SetXDir(int xdir, int precision);
Parameters
- xdir:
- Horizontal speed divided by precision.
- precision:
- [opt] Precision. Default 10 if not specified.