Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: krimson0 on June 24, 2013, 03:54:43 PM

Title: Set Bool from Bool
Post by: krimson0 on June 24, 2013, 03:54:43 PM
I was wondering if there is an action or a way to set a bool value based on another bool being true within a state. Thanks.
Title: Re: Set Bool from Bool
Post by: Cool_Flow on June 24, 2013, 05:23:30 PM
Yes, you would use Set Bool Value.

Set the Bool variable of what you want to change, then put the Bool Value to the Bool Variable of the Bool you want it to get the Answer from.

(http://www.damrightgames.com/wp-content/uploads/2013/06/boolvalue.gif)

Hope that makes sense.
Title: Re: Set Bool from Bool
Post by: krimson0 on June 24, 2013, 08:17:15 PM
Thanks for the answer, makes perfect sense. However, is there a way to set it to the opposite? Basically I need one one bool is true, the other one turns false. Thanks for your time.
Title: Re: Set Bool from Bool
Post by: Lane on June 24, 2013, 08:25:13 PM
Bool Test and Bool Flip
Title: Re: Set Bool from Bool
Post by: krimson0 on June 24, 2013, 08:53:12 PM
Thanks for the answer. However, if I run bool flip, won't the second bool always flip no matter if the first bool is true or not?
Title: Re: Set Bool from Bool
Post by: jeanfabre on June 25, 2013, 02:09:55 AM
Hi,

 Yes, Bool Flip will toggle the value. Here I think that you need a custom action actually.

here it is:

http://hutonggames.com/playmakerforum/index.php?topic=4230.0

bye,

 Jean
Title: Re: Set Bool from Bool
Post by: krimson0 on June 26, 2013, 05:51:19 PM
Thanks Jean,

This is what I needed. Though in the state that I am currently working in, it doesn't seem to work, but it works elsewhere, so I guess I'll keep working at it. Thanks again.