if we are out of the game,
How do I save the position of an object? How do I recall the position of the object when we enter the game.
8 direction.
If you mean close the game and open it again you need local storage to save and retrieve anything.
Develop games in your browser. Powerful, performant & highly capable.
https://www.construct.net/en/tutorials/how-to-make-savegames-11