Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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.