playMaker

Author Topic: Artist logic  (Read 779 times)

thefonz

  • Playmaker Newbie
  • *
  • Posts: 24
  • Augmentititus
    • View Profile
Artist logic
« on: October 18, 2015, 06: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: 4035
    • View Profile
    • jinxtergames
Re: Artist logic
« Reply #1 on: October 18, 2015, 10:29:15 PM »
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
    • View Profile
Re: Artist logic
« Reply #2 on: October 19, 2015, 01: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
    • View Profile
Re: Artist logic
« Reply #3 on: October 19, 2015, 03: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
    • View Profile
Re: Artist logic
« Reply #4 on: October 20, 2015, 04: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!