Reset Question

harlin36harlin36 Member Posts: 101
edited November -1 in Working with GS (Mac)
Hi all,

Is it possible to make load attributes that only load when you press the reset game button and

that doesn't kick in when you just reload the game?

Comments

  • beefy_clyrobeefy_clyro Member Posts: 5,394
    Yeh everything will always load like the 1st time unless you use the save and load attribute behaviours. If you're saving attributes you can load them how you wish. The way you want is in your button actor - When button is pressed, load attribute.xxxx
  • harlin36harlin36 Member Posts: 101
    Hi Beefy,

    Thank's for answering.

    My problem is that I have a counter that counts keys you have to collect.When you press reset

    all the keys return and the counter goes to zero,which is fine.

    But when I just want to reload with the saved counter amount, the counter still goes back to

    zero because the reset info is loading after the saved info.

    If that makes sense!

    Can I make the reset info only load when you press reset at the end of the game? and not

    every time you reload the game?

    Cheers
  • LeanneLeanne Member Posts: 168
    not sure i understand correctly, but sounds like there are a few ways around this...
    You could try creating an attribute "resume." if resume is true, then #keys=saved #keys; if resume is false, then #keys=0.
    or you could reorder the way the attribute is loaded by just moving the rules around.

    or just remove the rule to reset the #keys in the reset info, wrap it in a rule that tells it when resetting is appropriate and place it after the reset info.

    clear as mud?
  • harlin36harlin36 Member Posts: 101
    Thanks for your input Leanne. I managed to work out a solution in the end.

    Cheers.
Sign In or Register to comment.