How are you all handling losing

bluebyu25bluebyu25 Member Posts: 500
edited November -1 in Working with GS (Mac)
This is the bottom line for me, and I can't seem to get a straight on answer/solution on it.

When whoever is playing your game fails/loses/whatever.....how do you program the player to try again? Do you have a game over screen with a button that changes scene to main menu or what? Because I can do that, what I cant do is reset the gameplay scene so its a new game. Its driving me nuts, really, it is! I thought I would use the reset game behavior but takes me back to the splash screen all over again. It would be fine if I could reset game but it wouldnt show the splash all over. Really lost here.

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Try reset scene. Reseting the Game restores all attributes in the game all the way back to a fresh download. Not good for each level.
  • bluebyu25bluebyu25 Member Posts: 500
    The problem is losing requires two things to happen.

    1) Changing to high score screen
    2) Resetting the gameplay scene

    I cant get the two to work together. Either I can change the scene to high score, or I can reset the gameplay screen. I cant do both, which I have to.
  • patm1982patm1982 Member Posts: 50
    for me I have to reset all the variables using change attribute, and then reset the scene.
    -pat
  • ozboybrianozboybrian PRO Posts: 2,102
    I don't get the issues... reset scene should reset the scores aswell..
  • GLGAMESGLGAMES SingaporeMember Posts: 988
    i would make it so after every level is completed either fail or pass, it will go to score/ high score scene then from high score scene you can have a button to go to main menu or just the level select scene.
  • jbrown2177jbrown2177 Member Posts: 66
    There's a great tutorial about this on formely (Gendai Games) YouTube page about making the scene reset back to when a player loses etc. The video tutorials help a lot even though I still need an Attribute/Expression book for Dummies lol
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Basically you need to add rules to your background actor in each game scene to reset all of the attributes. That way these attributes will reset themselves every time the scene loads. Then you can just use a simple change scene or reset scene behavior. The key is to have the change attribute behaviors in the actor that is lowest on the list when you look at the list of actors in the "layers" panel. GS loads actors from the bottom of the list up. So if the change attribute behaviors are in the lowest actor they will reset before anything else happens.
  • quantumsheepquantumsheep Member Posts: 8,188
    This seemed rather apt:



    QS :D
  • tcla75tcla75 Member Posts: 71
    What I did was have a save load attribute for score and when the game ended it would bring me to a top score page. In the corner I had back button which was set to change scene to the start page and also reset game. I will it test on my iPhone when I get home from work to see if the save score attribute works after the back button resets the game.
  • capitalcarnagecapitalcarnage Member Posts: 371
    That soundtrack to the video is ****** awsome
Sign In or Register to comment.