x


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 '10 at 09:46 PM

MikezNesh gravatar image

MikezNesh
963 67 76 94

(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 '10 at 10:05 PM

Heratitan gravatar image

Heratitan
344 21 24 31

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

thanks a lot!

more ▼

answered Jan 12 '12 at 10:08 AM

burun gravatar image

burun
1 3 4 4

(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:

x428
x258
x170

asked: Aug 02 '10 at 09:46 PM

Seen: 1888 times

Last Updated: Jan 12 '12 at 10:08 AM