SetPersonSpeed

From Spheriki

Jump to: navigation, search

Sets the person's movement speed in both X and Y values. The movement affects how many pixels a person walks each frame.


Contents

Usage

SetPersonSpeed(person, speed);
  • person The name of the person to change the speed of.
  • speed The amount of pixels the person will walk each frame.


Examples

SetPersonSpeed("Aegis", 2);

Will make Aegis move with a speed of 2 pixels a frame.


Notes

  • You can define decimal and negative speed values, too.
  • If set to 0, the person is never able to move, but animations will occur! This can be useful for a half-custom movement system.


See also

Personal tools