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