Playmaker Forum
PlayMaker Help & Tips => Android Help => Topic started by: iRobot on August 19, 2012, 12:30:12 PM
-
Hey Guys -
Having a little trouble with a "Level Unlock System". My little game contains about twenty levels and the player must unlock them, but I´ve no idea how to do this :( .
That´s what I had already created:
(http://s1.directupload.net/images/120819/qcrl3bg5.png)
What should I do now?
I've been searching the forums a view times but found nothing to solve my problem.
Regards/
iRobot
-
Perhaps make the Listener the Starting State. Then based on say an OnTrigger event, your Listener would fire off the Level Checker. At this point you'd have 2 transitions to different states. If your player character met the required condition, onto the LoadLevel. If not then back to the listener for another try.
So lets say for instance, your 'unlock' condition was contingent on your character's color being Blue. If your character walked into the Listener/onTrigger (while he was say...red), the Level Checker would fire and then test for whether his color was red or blue. Since he was red it would fire off 'is locked' event and not LoadLevel event. Your character would still need to figure out how to become 'blue'. Maybe some interaction or other object in the scene. If he were blue, the Level Checker would fire the Is unlocked event, and your LoadLevel would fire.
hope that helps.
B.
-
Thanks for your answer! After a google websearch I found this site:
http://wiki.unity3d.com/index.php?title=ArrayPrefs (http://wiki.unity3d.com/index.php?title=ArrayPrefs)
It works great! ;D
-
Thanks for your answer! After a google websearch I found this site:
http://wiki.unity3d.com/index.php?title=ArrayPrefs (http://wiki.unity3d.com/index.php?title=ArrayPrefs)
It works great! ;D
Do you mind to share how you did do this? ;)
-
Do you mind to share how you did do this? ;)
+1 ;)