Scoring/Scene Reset?

bluebyu25bluebyu25 Member Posts: 500
edited November -1 in Working with GS (Mac)
Hey guys

I have run into a minor roadblock and haven't been able to debug it. Today I added a little 4 second splash screen which is the first scene running in the game. When the player loses and goes to the high score scene, I have a "main menu" actor. Its function is "reset game". Now when I do that it plays my splash screen all over again, which would highly annoy a paying customer!

A couple trains of thought:

How do you guys handle your "high score" scene if you have one. Before, my main menu button just changed scene to "start screne" but then the music from the game play scene would still play and the score was what it was when they lost. If "reset game" the only way to start a new round of your game? And when I set up my high score attribute, will reset game also reset that? because that would be a problem. Any insight as to how you guys set up this situation in your game would help.

Also, if that is the way to go about it, how do I avoid my splash screen showing up every time the game is reset?

Thanks

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    i never use any reset game or reset scene,

    Just change scene to the one right after the splash screen instead of reset game so you dont keep seeing it.
  • bluebyu25bluebyu25 Member Posts: 500
    Change scene doesnt work because it keeps the score values from the previous game (i.e. if the player got 500 points and than they lose, when they start the new game they will still have 500 points and plus the music never stops)
  • PhoticsPhotics Member Posts: 4,172
    bluebyu25 said:
    Change scene doesnt work because it keeps the score values from the previous game (i.e. if the player got 500 points and than they lose, when they start the new game they will still have 500 points and plus the music never stops)

    You can change attributes as you change scenes — just put them in the same rule. That should do it.
  • bluebyu25bluebyu25 Member Posts: 500
    Photics- great idea. You guys are really helping me to think as a programmer.

    This may or may not be an issue though, tell me what you think.

    After my "game over" pops up (this is where the change scene to high score behavior is) your saying I should ALSO include change attribute game.score=0 correct (and stop music while I'm at it)? BUT wouldn't this also make the players score 0 when it carries over to the high score scene?

    I guess I am answering my own question here....but I would put the change attribute game.score=0 at the "main menu" button on my high score scene. Hmmmm....

    PS thanks again, especially john for answering a lot of my posts. You guys have helped a beginner programmer almost complete an entire game in two weeks. I will be able to tell my friends I have an app in the app store, which is what I'm in it for :-). Any money is just icing on the cake
Sign In or Register to comment.