SetPersonFrame

From Spheriki

Jump to: navigation, search

Sets the person's current frame of the direction it is using.


Contents

Usage

SetPersonFrame(person, frame);
  • person The name of the person as a string.
  • frame Sets which frame number from the current direction to show.


Examples

SetPersonFrame("Pete", 4);

Sets the frame of the current direction to the 5th frame of the direction animation.


Notes

  • The frame number is not the frame number of the total amount of frames, but the frame number of the direction animation frames set up in the spriteset direction editor.


See also

Personal tools