Forum rules - please read before posting.

Best Practices "Continue" button in Title Screen

edited September 1 in Technical Q&A

Hi, this is my first time handling saving/loading, and so I'm wondering what's the best way to make the Continue button unactive at first and then active once the player actually has a save to load (My menu has 2 buttons: the "Continue" button and the "New game" button). I'm not using multiple saves, just the autosave.

What I tried to do was when the title screen menu is turned on, check "Number of save games", but since I'm using autosave the number is always the same, even if the player hasn't saved anything yet. I thought of using the slot 1 (instead of the autosave that uses slot 0) to make it work, but apparently the slot is made "forever" as well unless I delete it manually from the Save-game manager (maybe I'm not understanding this well). I also tried checking "Is Slot Empty" instead of the number but same result.

So, I changed my strategy and tried making a "isFirstPlay" variable linked to Options Data and check that instead of the number of save games, but it became hard to test because just like the last try, this variable is changed forever the first time I click play in Unity, so I can't be sure that this will work.

In summary, I'd like to know what's the way people usually do this, maybe it's way simpler and I just haven't thought how or found an example.

Comments

  • An Options-linked Variable will be tied to the user's Profile data. If deleting saves isn't supported, and you set it to True at the appropriate time, it should work.

    That said, the "Number of save games" check is the intended method.

    Should the "Continue" button ignore the Autosave? I'm not clear why the existence of the Autosave should not reveal the button. The first time the game Autosaves is after the Player has clicked "New game", I assume.

  • I'm still a bit lost on how to do it with "Number of save games". So, right now I'm using Autosave, no other saves. When the player clicks "New game", the actionlist uses Engine: End game (restart) which leads to the next scene. When clicking "Continue" instead, the autosave is loaded. The only time I'm saving is when the player clicks "Return to main menu" in the pause menu (overriding the autosave).

    That's all working great, my only concern is that right now the first time the game is opened the Continue button is active. I need to make it unactive so that the player can only click on "new game" the first time they play.

    So, I don't understand how "Number of save games" works in this case, or how to check if the player hasn't saved yet, so I can disable the button in that case.

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.