playMaker

Poll

I have a question about Dont destroy on load in playmaker

I have a question about Dont destroy on load in playmaker
0 (0%)
I have a question and  I would like to know how to use the play maker for dont destroy on load but keeping the scoore and weapons obtained in the previous level
0 (0%)

Total Members Voted: 0

Author Topic: I have a question about Dont destroy on load in playmaker  (Read 1849 times)

iemaru

  • Playmaker Newbie
  • *
  • Posts: 10
I have a question about Dont destroy on load in playmaker
« on: July 14, 2016, 02:14:06 PM »
Greetings Comrades, I have a question and  I would like to know how to use the play maker for dont destroy on load but keeping the scoore and weapons obtained in the previous level (the weapons are in an empty object called weapons inventory) and  tutos not see about that. thank you very much

google translator...

iemaru

  • Playmaker Newbie
  • *
  • Posts: 10
Re: I have a question about Dont destroy on load in playmaker
« Reply #1 on: July 14, 2016, 02:18:29 PM »
my verc of unity is 5.2.3.f1  and playmaker 1.7.8.4.

ergin

  • Junior Playmaker
  • **
  • Posts: 86
Re: I have a question about Dont destroy on load in playmaker
« Reply #2 on: July 14, 2016, 10:30:43 PM »
One way is:
at the end of level 1 > "PlayerPrefs Save String" > Weapon_name = weapon1
at the start of level 2 > "PlayerPrefs Load String" > Weapon_name
"String switch" > Weapon_name > Create object weapon1
PlayerPrefs Save Int for Score.

Another way is
Assign weapon (gameobject) to a global game object and score to global int

iemaru

  • Playmaker Newbie
  • *
  • Posts: 10
Re: I have a question about Dont destroy on load in playmaker
« Reply #3 on: July 15, 2016, 12:28:17 PM »
Thx a lot for your help  ;D