playMaker

Author Topic: Multiple conditions before going to state?[SOLVED]  (Read 1847 times)

Pendulum

  • Playmaker Newbie
  • *
  • Posts: 6
Multiple conditions before going to state?[SOLVED]
« on: August 02, 2015, 02:25:42 AM »
For example, I have walk speed, then a run speed state which is activated by ctrl. On another sfm I want to setup thruster animations on a particular side of me when I'm using the run speed.

So I only want the state to activate on Get Button Down: ctrl & Get Button Down: up or left or right, etc.

What is the best way to do this? :)

« Last Edit: August 03, 2015, 03:13:56 PM by jeanfabre »

crem2002

  • Playmaker Newbie
  • *
  • Posts: 14
Re: Multiple conditions before going to state?
« Reply #1 on: August 03, 2015, 03:14:31 AM »
Ok I would get key down  send event when key up send this one and active gameobject in the key down deactive it in key up state hope this helps

Pendulum

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Multiple conditions before going to state?
« Reply #2 on: August 03, 2015, 08:00:03 AM »
Ahhh, thanks man. Appreciate it!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Multiple conditions before going to state?
« Reply #3 on: August 03, 2015, 12:51:00 PM »
Hi,
Another way is to use Global Transitions and set a empty state (idle)
and use send event to set to Idle or Active.
this way only the fsm is "disabled" and not the whole object