Help please! App due in days! Replay level problem

wmgeichwmgeich Member, PRO Posts: 28
edited November -1 in Working with GS (Mac)
I need to upload my binary in days and am stuck on a replay level problem that I can't figure out. Each of my levels has a time bonus that adds to the score when all the actors are destroyed before time runs out. I have a rule that if the gamer doesn't clear the board he/she goes to a screen where you can press replay or restart. When they press replay it will go back to the previous scene but the timer and score go crazy.

In the replay button I have the following behaviors:

change attribute: game.gamelevelscoreL2 to 0
change attribute: game.leveltimerL2 to 0
change attribute: game.addbonusL2 to 0
change attribute: game.bonusshowL2 to 0
change attribute: game.#ofactorsL2 to 0

change scene to Previous scene

When I return to the previous scene the timer and score seem fine until I begin destroying actors then they randomly change. Timer adds seconds, score adds and then stops. Then it says level failed again.

Any ideas?
Thanks in advance.

Comments

  • wmgeichwmgeich Member, PRO Posts: 28
    Bump for help and a correction. On my change attributes the game.leveltimerL2 goes to 30 and the #ofactorsL2 goes to 30.

    Can anyone help? I checked the videos and search but still stuck.

    Thanks
    Bill
  • BarkBarkCoBarkBarkCo Member Posts: 1,400
    Try putting your change scene in a "After .2 seconds" timer. That will ensure that all of the other behaviors complete before the scene switches.
Sign In or Register to comment.