playMaker

Author Topic: Default Global Variable value changed by play mode[SOLVED]  (Read 2502 times)

pietwelve

  • Junior Playmaker
  • **
  • Posts: 70
Default Global Variable value changed by play mode[SOLVED]
« on: January 13, 2014, 11:27:12 PM »
Hi,
I've got a GUI Slider that drives a Float Global Variable.
I'd like the Global Variable default value to stay unchanged.
But the Global Variable default value is changed every time I go into play mode and is set to the last slider value used (when play mode is quit) ...
Please excuse my english
Thanks
« Last Edit: January 30, 2014, 05:08:06 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Default Global Variable value changed by play mode
« Reply #1 on: January 21, 2014, 06:28:47 AM »
Hi

I tested and I can't reproduce this, I link a slider to a global float and move the slide, when I stop playing, the global float reverts to the default value.

 I am not what could go wrong on your end. If you can make a screencast showing this behavior that would help.

Also, are you sure you are not interfering from another fsm that could set values from player prefs or something?

 Bye,

 Jean

pietwelve

  • Junior Playmaker
  • **
  • Posts: 70
Re: Default Global Variable value changed by play mode
« Reply #2 on: January 28, 2014, 11:00:55 PM »
Hi Jean,
Thanks for you answer and sorry for the delay.
I've just upgraded Untity to 4.3.3 and now I can't reproduce this either...
So somehow the problem is solved ... I can't say why though.
Thanks
Alain

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Default Global Variable value changed by play mode
« Reply #3 on: January 30, 2014, 05:07:56 AM »
Hi,

 ok, don't hesitate to come back to this thread if you get that again somehow.

bye,

 Jean

Yonben

  • Playmaker Newbie
  • *
  • Posts: 21
Re: Default Global Variable value changed by play mode[SOLVED]
« Reply #4 on: February 07, 2014, 07:29:52 PM »
I'm sorry to bump it, but I have the exact same issue..
I MIGHT have noticed that it happens when one of my int gets negative but I'm not sure, gonna try that more, but mostly to say that it happened to me too :s

Edit: It's not that (as I actually always had a negative value and it didn't always happened :x)..
« Last Edit: February 07, 2014, 07:32:17 PM by Yonben »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Default Global Variable value changed by play mode[SOLVED]
« Reply #5 on: February 11, 2014, 06:36:25 AM »
Hi,

 have you updated to the latest playmaker and unity?

bye,

 Jean