playMaker

Author Topic: Key combination  (Read 2102 times)

coxy17

  • Beta Group
  • Sr. Member
  • *
  • Posts: 355
Key combination
« on: September 30, 2013, 04:16:03 AM »
Hi,

I have setup and character with 'forward, left, right and jump'. when the character is moving forward i cant turn left or right without letting go of the 'forward' key. I know i might of gone about it the wrong way but not sure what to do. Ive used a 'get key down' on the idle state.

Ive attached a screenshot.

Any advice would be great!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Key combination
« Reply #1 on: September 30, 2013, 04:39:48 AM »
Hi

 Yep, cause your logic prevents it. If you want allow combinations of movement you need to separate your logic into two fsm. one that watch keys and decide what action to performs and another one that implement these actions and trigger the right animation and character movement.

 Does that make sense?

bye,

 Jean

coxy17

  • Beta Group
  • Sr. Member
  • *
  • Posts: 355
Re: Key combination
« Reply #2 on: September 30, 2013, 04:55:07 AM »
Hi,

Yes that makes perfect sense. Thankyou for replying!

Nick