playMaker

Author Topic: Level Unlock Systems [SOLVED]  (Read 6459 times)

iRobot

  • Playmaker Newbie
  • *
  • Posts: 2
Level Unlock Systems [SOLVED]
« 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:

What should I do now?

I've been searching the forums a view times but found nothing to solve my problem.


Regards/
iRobot
« Last Edit: August 19, 2012, 04:32:58 PM by iRobot »

brendang

  • Junior Playmaker
  • **
  • Posts: 63
    • Out to Play Interactive
Re: Level Unlock Systems
« Reply #1 on: August 19, 2012, 03:17:57 PM »
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.



iRobot

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Level Unlock Systems
« Reply #2 on: August 19, 2012, 04:29:57 PM »
Thanks for your answer! After a google websearch I found this site:
http://wiki.unity3d.com/index.php?title=ArrayPrefs

It works great!   ;D

Damian

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 188
    • Permaximum Betty
Re: Level Unlock Systems
« Reply #3 on: August 25, 2012, 01:27:32 PM »
Thanks for your answer! After a google websearch I found this site:
http://wiki.unity3d.com/index.php?title=ArrayPrefs

It works great!   ;D

Do you mind to share how you did do this? ;)

magarcan

  • Playmaker Newbie
  • *
  • Posts: 23
Re: Level Unlock Systems
« Reply #4 on: November 22, 2012, 06:15:18 PM »
Do you mind to share how you did do this? ;)
+1  ;)