Saving Progress After Quitting And Restarting

Discussion in 'How Can I...?' started by DBL, Aug 15, 2021.

  1. DBL

    DBL Boxer

    Joined:
    Feb 24, 2021
    Messages:
    35
    Likes Received:
    2
    Hello!

    I've created a scene path game in which the player must score a specific number of points to unlock the next level.

    How do I tell Buildbox to save the player's progress (the unlocked levels and high scores) upon quitting so when the player reloads the game, they don't have to start all over?

    I learned it was not saving my progress when I created and played a Windows executable version of the game.

    Thank you!
     
  2. Elite Games

    Elite Games Avid Boxer

    Joined:
    Dec 18, 2019
    Messages:
    124
    Likes Received:
    65
    You need to store your progress in settings class. You have to do little scripting for your game according to your need.
     
  3. DBL

    DBL Boxer

    Joined:
    Feb 24, 2021
    Messages:
    35
    Likes Received:
    2
    Buildbox doesn't include auto-save functionality at the non-coding level? That seems like a glaring oversight.

    I can't code or script.
     
  4. Elite Games

    Elite Games Avid Boxer

    Joined:
    Dec 18, 2019
    Messages:
    124
    Likes Received:
    65
    There is another way too if you want to save unlock level state

    you will need to create a level selection UI.

    Now add locked buttons Rename them according to levels ok

    Make connections with the proper world.


    In your level UI drag a new Event Observer on the scene
    Change its type to session coins or points depending upon your game setup.

    so once the user collected required points/coins this event will get triggered

    Now go back to the mind map you will see a new node output appearing in level UI

    Now add a new UI and make a connection with that output.

    Open that newly created UI and add Unlock from logic.

    Now select which unlock button you want to unlock from your setup.

    That's it your progress will be saved.

     

Share This Page