So I've been building a 2d game and I use layouts as levels and when I play to level 2 I get there and my score is reset back to 0. Can't seem to figure it out. I would appreciate any help. Thanks
Is it in a new layout? Try use the Webstorage to save the highscore between levels
i hope thats the right way to build levels is each level in separate layouts
oh man thank you for your help. ive been stump on that score thing for 3 days. if you for any reason get stuck dont hesitate to hit me up.
You should check out the Beginner tutorials https://www.scirra.com/tutorials/top they will help you learn alot of basics which will help you understand how to make alot of your own events
also for your need here check out Global variables https://www.scirra.com/manual/83/variables
Develop games in your browser. Powerful, performant & highly capable.
thanks ill check that out
Global variables is the way to go! Webstorage is overkill.
Unless you have highscore table you want to save. Or if you want to add save game, then webstorage is good, but for just basic game it is enough with global variables.
helena is right do not use Webstorage
so no webstorage ok
i will try the global variables. this is a basic game im building just so i can learn construct 2 a bit better. thank you so much for all of your support and i hope to be making some good games soon.