SetPersonSpeedXY
From Spheriki
Changes the person's X and Y speed individually.
Contents |
Usage
- name Name of the person to affect.
- speed_x New X speed of the person.
- speed_y New Y speed of the person.
Examples
If you want to make the person move twice as fast vertically than horizontally:
SetPersonSpeedXY("the person", 1, 2);
The person will now move 2 pixels each frame vertically, and 1 pixel each frame horizontally.
Notes
- You can define decimal and negative speed values, too.