How to reload unlocked levels?

In my game how do reload unlocked levels after a player quits the game then goes back on?

Comments

  • JasperzHDJasperzHD Member Posts: 18

    bump

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408

    When the level is unlocked you should save a table variable saying its unlocked. Then it will be persistent.

  • JasperzHDJasperzHD Member Posts: 18

    I have made the levels using attributes.

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    edited October 2014

    @JasperzHD‌ - Okay, so did you create one global (game) integer attribute for the levels? Or did you create an attribute for each level? I only ask because you said "attributes."

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408

    then save the attributes when they have been unlocked, and then load the attribute when the game loads.

  • JasperzHDJasperzHD Member Posts: 18

    @Braydon_SFX‌ I have made an attribute for each level.
    @jonmulcahy‌ Where abouts do I save the attribute and which actor do I use to load it?

    (Sorry I am new to game salad)

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273

    Search for GameSalad level lock and unlock tutorials on YouTube. I'd recommend redoing the system you've set up. Use tables - its much easier and will save you a lot of trouble.

  • JasperzHDJasperzHD Member Posts: 18

    Thanks will do

Sign In or Register to comment.