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, 2010 at 09:46 PM

MikezNesh gravatar image

MikezNesh
993 180 142 163

(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

Heratitan gravatar image

Heratitan
344 56 46 53

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

thanks a lot!

more ▼

answered Jan 12, 2012 at 10:08 AM

burun gravatar image

burun
1 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:

x478
x290
x181

asked: Aug 02, 2010 at 09:46 PM

Seen: 2129 times

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