Hello, the player will pick up dimonds in the first layout, but when the second layout loads the diamonds disappear (reset to 0)
Do i have to use some sort of save state/? no idea.
Thank you
Develop games in your browser. Powerful, performant & highly capable.
Hi, you don't have to use save data but there isn't enough information for someone to help with this. Most likely you have an 'on start of layout set diamonds to 0' or 'reset global variables' that triggers on the start of each layout.
you can keep track of your diamonds with a global variable. Global variables wont reset between layouts.
Hi Plinkie and haddy.
Thanks for the help. So when the player collects gems in the first layout and the player kills all the zombies, he moves on to the next level but the gems collected in reset back to 0. Cap attached.
I have the global variable but its still not working. Thanks