Hi guys, I am currently making a platformer game. How to remember an enemies location and it's instance variable in layout A after I return from layout B?
My problem is after I re-enter layout A, all the sprite and it's instance variables are reset.
Develop games in your browser. Powerful, performant & highly capable.
The Persist behavior may be what you’re looking for: https://www.construct.net/en/make-games/manuals/construct-3/behavior-reference/persist
Or you could define global variables to store values you want to preserve, and use them to restore object position and such.