Reset Attributes in Each level

tdevtdev Member Posts: 18
edited March 2012 in Working with GS (Mac)
Well, I have an attribute (boolean) that is meant to reset for each level. Is this possible?

Comments

  • 3xL3xL Member Posts: 676
    Through chain reaction yes.
  • tdevtdev Member Posts: 18
    Can you further explain? New guy here lol
  • 3xL3xL Member Posts: 676
    Have u tried using "reset scene"?
  • tdevtdev Member Posts: 18
    Yes, but it doesn't reset the attributes from some reason
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Yeah reset scene doesnt change the attributes. Whenever you want to reset it just use a change attribute behavior to change it back to its original state.
  • tdevtdev Member Posts: 18
    Ah, ok thanks
  • hotMagichotMagic Member, PRO Posts: 266
    yeah you need to reset all game level stuff that should be at its default state on every scene start. My advice is make a scene manager object that is in every level. Have that thing do an init that just sets all your stuff. Level score =0, collectibles =0, hit the goal=0. you get the idea.
    Just keep it centralized and things will be easier for you. All actor level stuff will reset on their own, since they are a new instance.
Sign In or Register to comment.