Not pick up where left off

TJMNUTTJMNUT Member Posts: 236
edited November -1 in Working with GS (Mac)
I have a scene where after a number of time it changes the scene, or if the player loses, the scene changes. There is a button that allows the player to access the scene again, how to I get the scene to be a clean slate, and not be altered from the players gameplay earlier?

Comments

  • RedlerTechRedlerTech Member Posts: 1,583
    make it if the player wins to be an integer attribute at 3.

    If Win, change attribute to 1
    If Lose, change attribute to 2

    If 1 go to scene Y
    If 2 go to scene X

    When you're done change attribute to 3

    Is that what you're asking?

    Matt
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    You have to use change attribute and reset all attributes that have been changed when you want to restart a level.
  • TJMNUTTJMNUT Member Posts: 236
    how?
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    You have to have a rule for whatever the conditions are that cause your scene to reset that uses the CHANGE ATTRIBUTE behavior for each and every attribute that need to be reset. You will have to take the time to figure out what attributes need to be at what vale for the beginning of each level.
  • TJMNUTTJMNUT Member Posts: 236
    I'm confused, all I need to do is have the scene reset for the next gameplay
  • RedlerTechRedlerTech Member Posts: 1,583
    right, but you reset the scene & then reset the score & all the other attributes that need to be reset.
  • TJMNUTTJMNUT Member Posts: 236
    I just did that, and the score and the time reset, but nothing else did (watermelon, brownie)
  • RedlerTechRedlerTech Member Posts: 1,583
    so reset the watermelon & brownie LOL
  • TJMNUTTJMNUT Member Posts: 236
    how, I have a watermelon hitpoint attribute, and a brownie hitpoint attribute, both integers, when an actor collides with it, it adds one to the watermelon hitpoint, and theres a rule, when attribute game.watermelon hitpoint = 1, change image, how do I reset it P.S. (I have an integer attribute called reset if that helps)
  • TJMNUTTJMNUT Member Posts: 236
    also the pause button doesn't work the second time.
  • TJMNUTTJMNUT Member Posts: 236
    I reset everything but now when the scene is supposed to change the second time I play, it doesn't.
Sign In or Register to comment.