reset scene

gotyoursgotyours Member Posts: 246
edited March 2012 in Working with GS (Mac)
hello again folks
Ok I'm up to 4 lvl's in my game so i made a splash scene for if you win or lose with a reset current scene and return to menu- the return to menu seems to work but the reset scene goes back to the scene i am playing but the heath bar and score is still there from the last try- any pointers would be great, Thanks in advance

Comments

  • old_kipperold_kipper Member Posts: 1,420
    If you place any information in game attributes from a scene and then return to the scene without reseting those attributes then the scene will not have the same starting values in the attributes. You can avoid this by using scene level attributes but these have to be set at the scene level and referenced by the instances of the actors which you will have to unlock to edit and get them to place things in the scene values. You may not want to unlock the instances as it make editing multiple actors time consuming, so it is sometimes best to have a single actor have the opening values for the level stored the values in game attributes within self attributes and set them freshly when the level opens, or have the values reset in 'on the way out' or from the menu page.

    hope that helps. Kipper
  • gotyoursgotyours Member Posts: 246
    thats ill give that a try, and i got nothing but time lol
Sign In or Register to comment.