I have a map scene and I'm wondering on how to set up a level locking thing so that if the player beats a level it will unlock the next level on the map.
I know you would do something like a bool but how would you pass the bool to the next script?
(And display the locked icon)
Basically: how would I pass a bool type thing from scene to scene?
Answer by Heratitan
Aug 02, 2010 at 10:05 PM
The way I did it was using PlayerPrefsX and having one master script that held all of my level buttons for me and then after I beat a level I would just set the PlayerPrefsX Bool to be set to true.
Here is a link to my question:
Hope that helps.
Answer by burun
Jan 12, 2012 at 10:08 AM
thanks a lot!
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a user guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
1 Person is following this question.
Locking levels on a level map?
2D side-scrolling Level Design
Level Segmenting and Loading
Making a new level
Making the floor/ground of a map