playMaker

Author Topic: Disable/Enable Key Inputs  (Read 1444 times)

SeamusLight

  • Playmaker Newbie
  • *
  • Posts: 4
Disable/Enable Key Inputs
« on: April 06, 2015, 04:31:54 AM »
I am looking for a way to disable specific keys while in a particular state.

In this case, I have a 2D platformer in which left and right arrows move, and spacebar shoots. Hitting spacebar sends the character into the "shoot" state. It is here that I want to disable the left and right arrows, and enable them upon exiting the state.

The reason behind this is my animation system, as holding the arrow key opposite the direction the character is facing causes him to moonwalk backwards. Any solutions?