playMaker

Author Topic: Artist logic  (Read 1828 times)

thefonz

  • Playmaker Newbie
  • *
  • Posts: 24
  • Augmentititus
Artist logic
« 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

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Artist logic
« Reply #1 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

thefonz

  • Playmaker Newbie
  • *
  • Posts: 24
  • Augmentititus
Re: Artist logic
« Reply #2 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

thefonz

  • Playmaker Newbie
  • *
  • Posts: 24
  • Augmentititus
Re: Artist logic
« Reply #3 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..

thefonz

  • Playmaker Newbie
  • *
  • Posts: 24
  • Augmentititus
Re: Artist logic
« Reply #4 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!