locked level feature?

snowstormsnowstorm Member Posts: 51
edited November -1 in Working with GS (Mac)
i have a screen with all my levels on it, and i don't want people to be able to skip ahead levels. so how do i do that?

Comments

  • RedlerTechRedlerTech Member Posts: 1,583
    create a attribute called level unlock, when ever you beat a level change the attribute to level unlock to whatever number the level you just beat was + 1, Then on the menu system say if level unlock is > or equal to 7 unlock actors 1234567 get it?
  • calvin9403calvin9403 Member Posts: 3,186
    open up GS and search unlock there are some demos that tells you step by step
  • snowstormsnowstorm Member Posts: 51
    ok, so i made all the levels locked except the first one. but how do i save the levels i beat?
  • snowstormsnowstorm Member Posts: 51
    is there a video explaining this? because i'm not getting it. (how to save the atribute)
  • snowstormsnowstorm Member Posts: 51
    yah, i've already seen that video. what i dont understand is how to make the levels you've beaten save so you can go strait to the level you left off on every time you play the game. because i've gotten them to be locked, but every time i go back to the level select menu they're all still locked. i dont know if that makes sense, but can someone try to help me? thanks!
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    did you load the attributes you saved as soon as the game starts?
  • snowstormsnowstorm Member Posts: 51
    see what i don't get is how to save an atribute, its new to me i've never had to use it in one of my games before. when i put it in the link to my next scene, i put in the atribute i want to save and then it wants a key, whats the key for, and how do you use it?
  • quantumsheepquantumsheep Member Posts: 8,188
    keys are just a way for the game to find the attribute you've saved

    Let's say it's your high score for example - you'd save the attribute 'highscore' and use a key by typing highscore into the text field.

    You can type whatever you want, but if it's descriptive it helps. The key is also case sensitive so highscore is different to HIGHscore for example.

    On your splash screen, you want to load in the highscore attribute that you've saved before.

    So you use the 'load' behaviour- Load attribute 'highscore' - then you type in the same key so it knows what it's loading - in this example it's highscore.

    That's all there is to it!

    Cheers,

    QS :D
  • snowstormsnowstorm Member Posts: 51
    so would i put the load and save attribute in the same actor?
  • RedlerTechRedlerTech Member Posts: 1,583
    If you're having a lot of trouble and have watched all the videos I could help you.

    For a quote email me at matthewredler@gmail.com
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Next gen lol

    For ur question as long as saving and loading a game attribute they can be in any actor since thy can all access global attributes

    Save your attribute right after a change happens to it in the game and have all your load attributes on the first scene in ur game
  • rlehmrlehm Member Posts: 320
    If you put the load attribute in the actor, they will not load in time.

    When a person opens your game, they will see a splash screen, then menu screen, then level screen..... se the issue? It won't load UNTIL they get to the screen with the actor... so the levels they have unlocked wont show when they relaunch the app.

    You want to load all saved attributes early on... like at the screen where they will press "start" or "play" or whatever.

    good luck. Slow down. watch the videos, open the help files recommended.
Sign In or Register to comment.