Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: coxy17 on September 30, 2013, 04:16:03 AM

Title: Key combination
Post by: coxy17 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!
Title: Re: Key combination
Post by: jeanfabre 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
Title: Re: Key combination
Post by: coxy17 on September 30, 2013, 04:55:07 AM
Hi,

Yes that makes perfect sense. Thankyou for replying!

Nick