playMaker

Author Topic: Disable an input  (Read 1821 times)

OmegaCo

  • Playmaker Newbie
  • *
  • Posts: 9
Disable an input
« 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.

verybinary

  • Junior Playmaker
  • **
  • Posts: 81
    • The Museum of Digital
Re: Disable an input
« Reply #1 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.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7619
    • jinxtergames
Re: Disable an input
« Reply #2 on: February 03, 2018, 11:30:00 AM »
Hi,
I believe in this tutorials you can see how to use the 'Is Grounded' like verybinary said.

OmegaCo

  • Playmaker Newbie
  • *
  • Posts: 9
Re: Disable an input
« Reply #3 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.