Hello, I have recently been working with adding animations into JME. I am using an analog listener to detect gamepad input to move my character. The mapping and listening work well. However, I have an issue with the animation: the animation will not play until the gamepad joysticks are released.

The Boolean conditions (which I set to true when input is found) all run as expected. Note that the System.out.println(channel.getAnimationName()); in the first of the if statements, prints out "Forwards" whenever input from the joysticks in the forward direction is detected. The problem is that the animation does not begin until the joysticks are released, even though the channel thinks it is playing.

How can I make the animation begin to play as soon as input is detected?

Analog listener gives a continuous update of the input values as long as input is detected. If you're just setting the flags when the listener is triggered and then the code above is run with each update, then you will have the effect of continually re-starting the animations over and over again with each update until the input ends, which would give the appearance that your models are not animating until you release your joysticks since the animations will be restarted before they can even begin to play.

Markdown code block : Embed your code in 3 backticks, like this
```<optional language>
//your code here
```
If you don't know how to type a backtick, here are some related links : How to type a backtick on windows For mac users : On qwerty keyboards it's the key right to the left shift (along with the " key). On azerty keyboards it's the key over the right shift (along with the £ key).
This uses highlight.js, but uses a subset of the supported langages (following code block uses java)…