I have this command for example:
$gameVariables.setValue(101,SceneManager._scene._spriteset._characterSprites[0].x);
...That I can use to find the screen coordinates of a specific event on the map.
Problem is, when it comes to locating the player on the map, the player is always assigned the last number on the sprite array.
I suppose I could bypass this by always having the same number of events on every map, but that would be a giant PITA and I'd prefer not to.
Is there a JS call that can identify the location of the player on the map through a means other than the SceneManager?
Thanks in advance.
$gameVariables.setValue(101,SceneManager._scene._spriteset._characterSprites[0].x);
...That I can use to find the screen coordinates of a specific event on the map.
Problem is, when it comes to locating the player on the map, the player is always assigned the last number on the sprite array.
I suppose I could bypass this by always having the same number of events on every map, but that would be a giant PITA and I'd prefer not to.
Is there a JS call that can identify the location of the player on the map through a means other than the SceneManager?
Thanks in advance.