Hello, I am making a mining game where you destroy blocks (dirt, iron, etc) to get the minerals. Every block has an instance variable that acts like health for the blocks, and slows down the destruction. When time runs out the player goes to a new layout, the shop layout. When returning to the main layout, every block is back in place. I'm wondering how to keep the blocks destroyed every time you return. Thank you.
You have to use the Persist behaviour to remember the state it used to be in.
Develop games in your browser. Powerful, performant & highly capable.
wow, I wasn't expecting it to be that simple. Thanks a lot, you saved me another headache.