help would be appreciated! problem with scene
![Pennez-Games](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
ok so im making this game, as you can probably tell, well heres the problem, in the level in the game, if you die, or loose the level, you go back to the main menu but when you click play (to play the level again) the game just continues off from where it left off, i tried to fix this, but i couldnt, please help! if i can get this fixed then i will have my game done soon. please help!
here is a video of the problem:
here is a video of the problem:
![](https://img.youtube.com/vi/EGNu4tAmqTo/0.jpg)
Comments
Write a descriptive thread title, simply help is rubbish! Same with your last thread title of need help.
Elaborate on your problem ... what do you mean the game continues off? Is this the score? Number of lives? what position you was in when you died? What?
I would assume you are changing game attributes during runtime and never resetting these values!
and do something like this example:
When character health = 0, spawn actor "Game Over"
Then in the game over actor,
When actor receives touch, reset scene.
ok here is a video of the problem.. is there a way to fix this?
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
when you reset the scene make sure you set all the attributes back!
When I read that "when you click play again all is where it was left" I immediately thought that you don't set the attributes back!
Alex
When its game over you'll be changing a game attribute to say game over is true or something to that effect. Put a rule on your play button from the main menu that says;
When touch is pressed
Change attribute game.gameover (or whatever you've called it) to false.
Change attribute game.currentscore (or whatever you've called it) to 0.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
ok i made a rule when game is over
change attribute "highscore points to 0" so it set it to zero,
the way my highscore works is,
timer: every 1 second do -> change attribute "game.highscore" to ->"game.highscore+1"
thats how the whole highscore works, so how would i make it so this resets every time you restart ect..?
If you have a proper score attribute created, on your scene/level you just need a simple change attribute game.score to: 0 You can place this on a generic actor off screen, or in the background. It just needs to see this each time it loads that level, so that it is the first thing it does. Since we don't know how the rest of your game is constructed, you may tun into more issues. It looks like a "endless-dropper", so the method I mentioned as well as methods @beefy_clyro and @FryingBaconStudios mentioned should work. If it does not, there is something else going on and the best way for us to help is a screen shot of your code. It will tell us if something is amiss.