playMaker

Author Topic: Time controlled level unlock system  (Read 1834 times)

ScarlettAki

  • Playmaker Newbie
  • *
  • Posts: 4
Time controlled level unlock system
« on: March 21, 2022, 04:34:51 PM »
I need help trying to create a time controlled level unlock system, as well as present unlock system. EXAMPLE: Player completes level 1-1 through 1-5, and has to wait 4 hours until they can play the next levels. EXAMPLE: Player has to wait 12 hours until they can open another free present.

ScarlettAki

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Time controlled level unlock system
« Reply #1 on: April 03, 2022, 10:23:03 PM »
I need help trying to create a time controlled level unlock system, as well as present unlock system. EXAMPLE: Player completes level 1-1 through 1-5, and has to wait 4 hours until they can play the next levels. EXAMPLE: Player has to wait 12 hours until they can open another free present.


^^^^^Still need help

andyandyandy

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 63
Re: Time controlled level unlock system
« Reply #2 on: April 04, 2022, 12:01:15 AM »
you can do bools for all the levels. Or 0 = lock 1= unlock for each level as a int variable so all you got to do is int compare. It be easier to save in your playerpref. For time, you can do get time state. split the string into month/day/year/hour/second all into seconds and compare it to the saved time of the previous unlock level.

ScarlettAki

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Time controlled level unlock system
« Reply #3 on: April 06, 2022, 06:24:01 PM »
you can do bools for all the levels. Or 0 = lock 1= unlock for each level as a int variable so all you got to do is int compare. It be easier to save in your playerpref. For time, you can do get time state. split the string into month/day/year/hour/second all into seconds and compare it to the saved time of the previous unlock level.

Get time state is an option in Playmaker? I didn't know that! TYSM!!!!!!!!!