Resetting a game

  • #1, by NovelTuesday, 10. December 2013, 23:44 11 years ago
    When the player of my game returns to the menu and starts a new game, all the conditions are left in the old state. Is there a way to return all conditions and values back to the initial state or do I have to reset them by hand (that imagination gives me the creeps)?

    Newbie

    100 Posts


  • #2, by afrlmeWednesday, 11. December 2013, 00:45 11 years ago
    er no...

    the trick is to create an autosave the first time the player launches a new game & then in the new game left click action you should add an if query: if autosave x exists then load autosave value else load x scene or scene of character or whatever you have it do upon launching a new game.

    something along those lines.

    * edit you could also add a condition/value to determine state of the game: has the game been launched; i.e: is the game currently in session.

    Imperator

    7285 Posts

  • #3, by NovelWednesday, 11. December 2013, 21:08 11 years ago
    Thanks! It works. That was quite simple. :-)

    Newbie

    100 Posts

  • #4, by afrlmeWednesday, 11. December 2013, 22:51 11 years ago
    indeed wink

    there's many a use for the autosave action part besides saving...

    Imperator

    7285 Posts

  • #5, by NovelWednesday, 11. December 2013, 23:23 11 years ago
    Aha? What else is it usable for? I'd love to learn more tricks/get inspired.

    Newbie

    100 Posts

  • #6, by afrlmeThursday, 12. December 2013, 01:45 11 years ago
    hmm...
    * for checking if game has been launched before or is the first time.
    * can be used for creating an achievement system by saving x autosave number for x achievement & it is global meaning the achievement would always show up in menu no matter what save the player loaded from; having said that, it's not exactly the most secure way of going about it.
    * could be used for creating a custom save menu instead of using the vs save system.
    * used to create the new game option
    * etc - just use your imagination wink

    Imperator

    7285 Posts