GetPersonY
From Spheriki
Get the map Y coordinate of a person, based on the middle of their spriteset's base rectangle.
Contents |
[edit]
Usage
number GetPersonY(person_name);
- person_name string. The name of the person.
- number is returned, representing the Y coordinate of the person.
[edit]
Examples
To store the map Y coordinate of a person named "Bob":
var y = GetPersonY("Bob");
[edit]
Notes
- This function only works as expected if done while the map engine is running.
- For more exact results, use GetPersonYFloat().
[edit]

