playMaker

Author Topic: Load Next Level  (Read 1550 times)

gregacuna

  • Full Member
  • ***
  • Posts: 143
Load Next Level
« on: November 22, 2016, 02:42:33 AM »
I'm using the Load Level action, but since I'm moving around levels in the build it would be great to be able to set it up so it loads the next level instead of a specific level by name.

Is there a way to use "Load Level Num" using a variable?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Load Next Level
« Reply #1 on: November 25, 2016, 02:45:42 AM »
Hi,

 yess, it's perfectly possible.

 use "getLoadedLevel" to get the index, and add 1 to it then inject that in LoadLevelNum.

 Have you tried this?

Bye,

 Jean

gregacuna

  • Full Member
  • ***
  • Posts: 143
Re: Load Next Level
« Reply #2 on: November 30, 2016, 02:14:56 AM »
Hey Jean...that worked perfectly. Thanks so much. Not sure why I didn't get a notice that you responded, but glad I happened to check back.

Really want to thank you for Playmaker. I'm having a blast building my first game!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Load Next Level
« Reply #3 on: December 01, 2016, 02:26:34 AM »
Hi,

 I think you should be able to set that up in your profile settings.

 I am glad you can progress!

Bye,

 Jean