Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Bennett on September 06, 2012, 08:18:45 PM

Title: Float Operator SUBTRACT yields zero[SOLVED]
Post by: Bennett on September 06, 2012, 08:18:45 PM
I guess this picture speaks for itself. Why is this resolving as zero rather than a negative float?

(http://www.foddy.net/temp/eee.png)
Title: Re: Float Operator SUBTRACT yields zero
Post by: jeanfabre on September 07, 2012, 05:13:37 AM
Hi,

 this is not what I get, I do get -0.05702096

 I suspect that because you have ticked "EveryFrame" you entered this state with both values to 0 and since the action would run only once, if the actual floats changes they would not be recomputed.

try to tick everyFrame on or make sure that you enter the state with the right values to begin with.

bye,

 Jean
Title: Re: Float Operator SUBTRACT yields zero
Post by: Bennett on September 07, 2012, 08:12:26 AM
Ah, you're right. Thanks