Forum rules - please read before posting.

Reset everything via the new game button

I customized the game's initial menu, the one pre-installed in the demo:
New game, continue, load, credits, and quit...
But I noticed that the new game button doesn't reset variables or saves, so when I click new game, the variables and inventory items have already changed. How can I do a complete reset, perhaps with a warning that warns the player that if they proceed, all saves will be deleted?

Comments

  • Regarding user confirmation, I'll answer my own question.
    I create a new menu with two buttons, yes and no, and information about resetting the game.
    I open this second menu with new game. Clicking yes starts the new game. Clicking no closes the menu. But I haven't figured out how to reset everything.

  • edited October 3

    I tried this, but instead of going to the intro scene, it always goes back to the menu scene

    newgame

  • What are your AC/Unity versions?

    The Restart Game command will automatically clear Variable and Inventory data.

    Does the "Intro" scene load if you run a regular Scene: Switch Action? As a test, try instead referencing the scene by Build Index number.

  • I'm using Unity 6000.
    Apart from how I call the scene, "1" or "Intro", what I did should be correct?

  • You wouldn't need the Inventory (and likely Variable) Actions, but yes - the use of the Engine: End game Action looks correct.

    What is the ordering of the scenes involved? Is the "menu scene" that gets mistakenly loaded different from the "title scene" that shows the New Game button?

  • I solved everything, I also put a demo of the game on the playstore, thanks a lot for the help

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.