Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: OmegaCo on February 03, 2018, 03:43:59 AM

Title: Disable an input
Post by: OmegaCo on February 03, 2018, 03:43:59 AM
Hello, I would like to know if you could disable an input while another is going. I would like to know due to my jump animation playing wrong while im pressing forward to run (W). So I would like to disable my run input while my jump is playing.
Title: Re: Disable an input
Post by: verybinary on February 03, 2018, 06:41:40 AM
You could attach a box collider to the player where it intersects the ground, or set up a raycast that looks down, and if that trigger is false, you can set a grounded variable to false, and in your movement, check for the grounded variable. if not grounded, stop movement depending on however the movement was started.
Title: Re: Disable an input
Post by: djaydino on February 03, 2018, 11:30:00 AM
Hi,
I believe in this (http://hutonggames.com/playmakerforum/index.php?topic=5671.0) tutorials you can see how to use the 'Is Grounded' like verybinary said.
Title: Re: Disable an input
Post by: OmegaCo on February 03, 2018, 11:53:26 AM
Thank you very much i have got it working by enabling "Root Transform Rotation"
and tick Bake Into Pose.