I’m creating a 2d fighting game. I currently have a state machine which only has three separate animations, Idle, Forward Dash and Backward Dash:
For this state machine I am taking in a setting the character’s velocity each frame:
I want to then transition to the backwardDash animation from the idle animation when my x velocity is less than 0, negative velocity, which happens when I move away from my opponent in the game:
However, when moving away from my opponent and my velocity showing a negative value in game, my backwardDash animation is not playing. Does anyone know where the problem might lie?