playMaker

Author Topic: bool all true[SOLVED]  (Read 1112 times)

Ayman

  • Playmaker Newbie
  • *
  • Posts: 24
    • View Profile
bool all true[SOLVED]
« on: July 29, 2018, 09:43:27 PM »
GUUYS Please help im new to playmaker and i make a paking game and i make 4trigger what i want is when the car hit the 4 triggers show the action i want

i heared about bool all true but i didnt how to link it with the 4 box triggers

sorry for my bad english and thaanks
« Last Edit: August 01, 2018, 12:29:59 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15371
  • Official Playmaker Support
    • View Profile
Re: bool all true
« Reply #1 on: July 30, 2018, 03:01:47 AM »
Hi,

 each box trigger needs an FSM on it and they will all set an Fsm bool on another FSM, using SetFsmBool action,

 than that Fsm with the four bools can check them every update with bool all true.

 Bye,

 Jean

Ayman

  • Playmaker Newbie
  • *
  • Posts: 24
    • View Profile
Re: bool all true
« Reply #2 on: July 30, 2018, 08:13:26 AM »
Thanks for your reply . But can you explain more how can i do it . What i did now is i add an fsm in 4 triggers and i add the set fsm bool action to them  and i add new game object and iadd an fsm to it with the action bool all true and i didnt work !!
Thaanks

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15371
  • Official Playmaker Support
    • View Profile
Re: bool all true
« Reply #3 on: July 31, 2018, 01:05:33 AM »
Hi,

 ok, here we go:



So each cube is setting one boolean on the manager fsm, and the manager fsm simply watch all four booleans.

 does that make sense? I can send you the scene if you are still stuggling with this.

 Bye,

 Jean

Ayman

  • Playmaker Newbie
  • *
  • Posts: 24
    • View Profile
Re: bool all true
« Reply #4 on: July 31, 2018, 09:28:04 AM »
Thanks jean but i didnt work i think i made a mistake can you send me scene please . To search where my mistake is
Thanks First

Ayman

  • Playmaker Newbie
  • *
  • Posts: 24
    • View Profile
Re: bool all true
« Reply #5 on: July 31, 2018, 02:36:34 PM »
the probleme i got now is when i enter to triggers the triggers bool values not changing to true but when ichange them manually the bool all true works
 Help please

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15371
  • Official Playmaker Support
    • View Profile
Re: bool all true
« Reply #6 on: July 31, 2018, 11:19:33 PM »
Hi,

 you are certainly not setting up the SetFsmBool properly, either the fsm name is wrong or the variable name is wrong.

 I have attached the sample scene to this post, so you can have a look.

Let me know if you have questions.

 Bye,

 Jean

Ayman

  • Playmaker Newbie
  • *
  • Posts: 24
    • View Profile
Re: bool all true
« Reply #7 on: August 01, 2018, 12:01:05 AM »
OOH Thank you so much finaally it Wooorks!!!