How to store player location?

Does anyone have a solution to store player location?

Basically my crank opens an inventory menu which is a room that turns the player into a cursor. Pressing cancel would bring them back to the previous location that they opened it.

event.px and event.py are built in to store player location data.
if you set "ReturnToCords_Y = event.py" and do the same with X before you take them to a pause then when they cancel the pause you can then type:
goto ReturnToCords_Y,ReturnToCords_X

1 Like