Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: thefonz on October 18, 2015, 09:54:08 PM

Title: Artist logic
Post by: thefonz on October 18, 2015, 09:54:08 PM
Hey everyone

I'm no coder and was wondering how to go about this scenario.

Let's say I have 4  gameobjects (a,b,c,d).

If I select a + b = do something but if a + c selected = do something else.

Just not sure how you tackle this using pm....my guess is bool testing, if so how do I implement this?

Thanks
Title: Re: Artist logic
Post by: djaydino on October 19, 2015, 01:29:15 AM
Hi,
you can use bool actions for this

set bool (true) when selecting object and (false) when deselecting
and use "bool all true" one for a+b and one for a+c and so on
Title: Re: Artist logic
Post by: thefonz on October 19, 2015, 04:33:04 PM
hey thanks for your answer...im trying to get my head around solving this and i understand what your answer means but I'm just not 100% how to implement this. is it done through multiple fsm's? would you mind posting a sample?

thanks
Title: Re: Artist logic
Post by: thefonz on October 19, 2015, 06:17:22 PM
for the life of me I'm not sure what I'm doing wrong...it keeps going to true and won't hit false....

so im doing: mouse pick event -> get fsm bool -> bool all true

hmm..
Title: Re: Artist logic
Post by: thefonz on October 20, 2015, 07:51:24 AM
to confirm i have fixed the issue...turns out playmaker is really picky with state orders, simply switched around the final comparison state and it all worked :) woop!