SetPersonSpeedXY
From Spheriki
Changes the person's X and Y speed individually.
Contents |
[edit]
Usage
SetPersonSpeedXY(name, speed_x, speed_y);
- name Name of the person to affect.
- speed_x New X speed of the person.
- speed_y New Y speed of the person.
[edit]
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.
[edit]
Notes
- You can define decimal and negative speed values, too.
[edit]

