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?
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!
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?
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.
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.
Comments
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
For a quote email me at matthewredler@gmail.com
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
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.