playMaker

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

iRobot

  • Playmaker Newbie
  • *
  • Posts: 2
    • View Profile
Level Unlock Systems [SOLVED]
« on: August 19, 2012, 09:30:12 AM »
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, 01:32:58 PM by iRobot »

brendang

  • Junior Playmaker
  • **
  • Posts: 59
    • View Profile
    • Out to Play Interactive
Re: Level Unlock Systems
« Reply #1 on: August 19, 2012, 12: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
    • View Profile
Re: Level Unlock Systems
« Reply #2 on: August 19, 2012, 01: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
    • View Profile
    • Permaximum Betty
Re: Level Unlock Systems
« Reply #3 on: August 25, 2012, 10:27:32 AM »
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
    • View Profile
Re: Level Unlock Systems
« Reply #4 on: November 22, 2012, 04:15:18 PM »
Do you mind to share how you did do this? ;)
+1  ;)