I'm messing around with a tank game and if you play through and die three times the life meters are working on I have it set to check if life = 0 go to layout gameover --> that layout is just a button to reset global var's and a few player var's but if you'll notice it's showing the gameover layout overtop another layout i'm not understanding why?
Develop games in your browser. Powerful, performant & highly capable.
I just want it to go to the game over scereen press the try again and completly start over
but please try to explain to me what I'm doing wrong..
You must reset everything. Tanks positions, etc, not only those variables.
Also, I'd suggest you build the levels dynamically, so you use always the same layout. in that case, the elements shouldn't be "global".
can you elaborate on building dynamic levels??