playMaker

Author Topic: Why when Reset Level,level state does not return to the starting value?[SOLVED]  (Read 4129 times)

naktim0819

  • Playmaker Newbie
  • *
  • Posts: 44
Why when Reset Level ,my level state does not return to the starting value?
I ever try use "Restart Level", " Load level Num", "Load Level"
my level state velue not return to the game first value?

I also need to do something?

How should I do!?

Please and Thanks for ur help!
« Last Edit: April 13, 2013, 11:58:28 AM by Alex Chouls »

naktim0819

  • Playmaker Newbie
  • *
  • Posts: 44
http://hutonggames.com/playmakerforum/index.php?topic=1014.msg14654#msg14654
my question are the same this question
but i saw the question at list not get the answer

Looks reset incomplete
I have some object 's  animation  are keeps play  before I reset

I record my game's video the middle button is reset
hope can get anwser

I have try to see m2h sample
it's just level num
why it can clear ?

naktim0819

  • Playmaker Newbie
  • *
  • Posts: 44
I make a little project the right up is the reset button
it's also can't reset


I also Attach my test unitypackage ing this reply

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Are you using global variables? Or DontDestroyOnLoad?
« Last Edit: April 12, 2013, 01:46:51 PM by Alex Chouls »

naktim0819

  • Playmaker Newbie
  • *
  • Posts: 44
I didn't use DontDestroyOnLoad?

But I have some value use global variables

So I can't use globe value?
but I hava Some value is  in This Scene I need to send between
object

but not on another Scene

I need to use what variables type?
I can sent between 2 or 3 object it can use .
not on other scene  and not use globe value



                                    Thank u

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
You can use global variables, but their values are not reset on level load. If they need to reset, you should set their values manually after loading the level.

naktim0819

  • Playmaker Newbie
  • *
  • Posts: 44
ok!
Thanks! Alex
so I need to set the value =0 on scene began! right!

thanks u!

If I want to save some score Ranking  every time
Open the game It still on save   not will be clear I want to use what Value

« Last Edit: April 13, 2013, 10:23:16 AM by naktim0819 »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
If you want to save a variable between sessions, take a look at the PlayerPref actions.