I have a problem with my Left/Right 2D Movement System, any help is appreciated

Hello there, I’ve been working on a 2D Metroidvania Game for the past couple months.
and I’ve been reworking the game’s core systems.

I had an old clanky movement system that sucked imo

I then built this new 2D Movement system, but I’ve run into a problem.
You’re supposed to only be able to go Left/Right

BUT Right works perfectly fine…

WHILE Left just makes you go to the right… instead of the left.

Here’s my blueprint code: I have not slept at all.

NOTE: I’ve been using UE for 7 years! but never attempted creating a full 2D game.

since your upgrading try get into the EnhancedInput,

that said your problem is likely the the left axis is negative, so -1 x -1 = 1

ie (leave world direct as 1)

also you can just use /= 0 for IsMoving

1 Like

Thank you, it works again! I’ll take the suggestion to change < and > to /= instead!