Reset game failure??

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited December 2011 in Working with GS (Mac)
Hey,

I have 10 levels and always when finishing one a save attribute rule. So when I finish level2, and go back in main menu and then again go back to play I get moved to level3.

But when pressing a reset button, these attributes etc. do NOT get set back to 0 ..
why that? Isn't that the sense of reset?

thx

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    you have to change all attributes back to whatever you want upon reset yourself with change attribute behaviors
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    you mean:
    when touch (reset button) is pressed:

    chnage all my attributes back to whatever AND reset game?!

    Or am I wrong?
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Yes that's correct.

    So if you had an attribute that was set to 0 at the beginning of the game, you have to change it back to 0 for a reset.
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    But there is still a problem :/// On the start scene I have load attribute "remember level". And in the game, when passing each level remember me is set to a value. So lv1 to 2, lv2 to 3 and so on..

    Then in my reset button, I have:

    touch is pressed
    change attribute remember me to 0
    reset game

    Then when I come back in my start scene, remember me is still the latest value ://

    Please help...
  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    Ya i had this problem too..... its frustrating!!!... Let me see if i can remember to fix it...
    Oh ya!... Heres an example:
    (DONT DO THE TOUCH THING BTW)
    - Create Rule
    - When game.playerhealth = 0 change scene to "You lost"
    - "Reset Game"
    - Change game.playerhealth = 3
    --
    Hope this helps!!
    ---------------
    Posted by LeonardDeveloper, contact me on thermoapps@gmail.com
    Be sure to visit my website: http://www.thermo-apps.com
    Weekly freebies on my website!, Head on over there to catch this weeks one!!
    ----------------------------------------------------
    Yours Sincerely,
    Jack Leonard
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    edited December 2011
    Ehm what? xD

    I don't have a players health :/
  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    I know! :), Its an example replace the name= "players health with your attribute name"
    and replace the numbers with your attribute numbers,
    ---------------
    Posted by LeonardDeveloper, contact me on thermoapps@gmail.com
    Be sure to visit my website: http://www.thermo-apps.com
    Weekly freebies on my website!, Head on over there to catch this weeks one!!
    ----------------------------------------------------
    Yours Sincerely,
    Jack Leonard
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    But what about the scene lost?
    I don't understand what you mean :/

    Can you maybe say it more specific using my attribute "remember me"

    thx
  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    - Create Rule
    - When game.rememberme = 0 change scene to "You lost"
    (In you lost scene when the retry button is pressed)
    -Create rule
    - "Reset Game"
    -Change attribute>>
    - Change game.rememberme = 3
    --
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    But game.remember me is only 0 at the very beginning of the game...
  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    well the reverse the actions i gave you and they should work :)
    ---------------
    Posted by LeonardDeveloper, contact me on thermoapps@gmail.com
    Be sure to visit my website: http://www.thermo-apps.com
    Weekly freebies on my website!, Head on over there to catch this weeks one!!
    ----------------------------------------------------
    Yours Sincerely,
    Jack Leonard
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    edited December 2011
    So I did this now:

    when reset button is pressed change scene to Reset scene
    there I have:

    reset game
    change attribute

    but still it doesn't get set back to 0

    I think it is because of the load attribute at the start scene ://
  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    edited December 2011
    Ok here we go again! :),
    - Create Rule
    - When game.rememberme = 5 change scene to "You lost"
    Go onto the reset button
    When button is clicked by mouse button or touched do the following
    (In you lost scene when the retry button is pressed)
    -Create rule
    - "Reset Game"
    -Change attribute>>
    - Change game.rememberme = 0
    --
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Okay but where to set up the first rule???
    And I have to use when remember me is greater and equal 2 ( thats the first value after zero)

    I think the load attribute at the beginning of the scene is th problem :/
  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    ok....... i really don't know whats your problem now, please explain more specifically,
    ---------------
    Posted by LeonardDeveloper, contact me on thermoapps@gmail.com
    Be sure to visit my website: http://www.thermo-apps.com
    Weekly freebies on my website!, Head on over there to catch this weeks one!!
    ----------------------------------------------------
    Yours Sincerely,
    Jack Leonard
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Okay, the attribute (integer) remember me is at the beginning 0.

    When level 1 is finished, remember me is set to 2, lv2 is finished to 3 and so on..(and there is also a save attribute behavior)
    In the start scene I have Load attribute remember me.
    The aim is that when the player finishes lv1 and then gets back to the main menu and then decides to play again he automatically gets to lv2.

    And when using reset game, I change this attribute back to 0. But then in the main menu, the attribute gets automatically loaded to the last value.

    That's all, I hope you understand...
  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    edited December 2011
    Ok.............. I could explain this but it would take a while... I'm not to sure.. but if my memory is right.. i think tshirtbooth offers a free template on this, either onctact him or head on over to www.gshelper.com
    ---------------
    Posted by LeonardDeveloper, contact me on thermoapps@gmail.com
    Be sure to visit my website: http://www.thermo-apps.com
    Weekly freebies on my website!, Head on over there to catch this weeks one!!
    ----------------------------------------------------
    Yours Sincerely,
    Jack Leonard
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    is it so complicated? you know the name of the template...I need the issue to be fixed in the next couple of hours :/
  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    I dont know the name of the template "I'm not to sure.. but if my memory is right.."
Sign In or Register to comment.