x


Before updating to Windows 10 you may need to return your Pro license. More information here

Locking Levels on a Level Map.

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?

more ▼

asked Aug 02, 2010 at 09:46 PM

avatar image

MikezNesh
1.1k 181 152 167

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

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: http://answers.unity3d.com/questions/16591/playerprefs-problem-crashing-with-setbool

Hope that helps.

more ▼

answered Aug 02, 2010 at 10:05 PM

avatar image

Heratitan
344 57 50 56

(comments are locked)
10|3000 characters needed characters left

thanks a lot!

more ▼

answered Jan 12, 2012 at 10:08 AM

avatar image

burun
16 9 8 8

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x561
x333
x204

asked: Aug 02, 2010 at 09:46 PM

Seen: 2325 times

Last Updated: Jan 12, 2012 at 10:08 AM