Game wont become Over!

master200012master200012 Member Posts: 372
edited May 2012 in Working with GS (Mac)
Alright. I have an actor running on a never-ending stage. He jumps and dodges obstacles on the stage. When he hits one, he loses a life. When he has zero lives, he dies and changes scenes to a game over scene.

This works fine the first time through. But when I play it again (not coming out of the app and playing again, but directly retrying), the actor dies but the scene doesn't change.

All help is appreciated. Thanks!

Best Answer

  • EatingMyHatEatingMyHat Posts: 1,246
    edited May 2012 Accepted Answer
    What is the rule for triggering the change scene? maybe post a screenshot?

Answers

  • jn2002dkjn2002dk Member Posts: 102
    Sounds like you need to set lives to 3 when you restart the game
  • master200012master200012 Member Posts: 372
    No, the attribute resets already. Something else is wrong. But thanks for answering.
  • Barking_AppsBarking_Apps Member Posts: 182
    you should have an attribute that says when game.lives = 0 then change attribute game.gameover (boolian) to true. Then when game.gameover = true change scene to game over. Then when you reset to play again change game.gameover back to false.

    Hope this helps...

    BarkingApps :o3


    Take a look at my flight control interface here: http://marketplace.gamesalad.com/#category=4,5,6,7,11&product=4264
  • master200012master200012 Member Posts: 372
    Thanks for the post but still to no avail.

    Anyone else?
  • xforcexforce Member Posts: 187
    edited May 2012
    the suggestions above should work. if not then it could be a few things.

    * are the lives actually decreasing during the second playthrough?

    * if so then what is the exact rule statement that sets off the gameover? the problem is likely something to do with this. what math symbol are you using (=, <, >) ?

    * if you're using an extra attribute for the gameover trigger (ie gameover=true/false). is this attribute actually resetting during the second playthrough? if you're not sure then use a display text to watch what its actually doing during play
  • master200012master200012 Member Posts: 372
    Here's the result of the things you've asked for:

    The lives do reset.

    I use an = symbol.

    The attribute does (game over) does reset.

    The device replicates the problem.

    But it seems an actor, no matter what the scene, that has once changed scenes refuses to change scenes once again.

    This problem's becoming annoying. Thanks for the help so far guys.

    Anyone else?
  • master200012master200012 Member Posts: 372
    No, never mind I got it to work. I just found a loophole in the build.

    For the sake of keeping this question answered, I will accept your answer, EatingMyHat.

    Thank you to all who have posted so far!
  • smayragracesmayragrace Member Posts: 5
    Like the thread and I know all this is about Games...But don't understand that What U taking about ...What is the main thing You want to share with us?
Sign In or Register to comment.