How do I get a 4-way linear movement with a slide?

Hey there @LindbergNGS! Welcome to the community! There’s actually so many ways to do this, and yours isn’t actually very far off from a basic implementation.

So the best way to get to developing the correct solution is to design the solution first.

Let’s look at what we want to accomplish.

  • We need the player to move vertically and horizontally but not at the same time
  • We need the player’s collision not to cut through the wall.
  • We need the player not to rotate at all.

So now we can determine how to do these things efficiently.

First we’ll address movement. This is rather important to get right as you don’t want to fly out of the map like you do. The sweep is to make sure it doesn’t try to push into the walls and flip out.

Also need to set your root’s Constraints so you don’t have to worry about it bouncing around.

Also gravity is not a good idea.

And Voila can only move one direction at once, I iterated on the way you built yours so it should be adaptable.

2022-08-20_21-01-54

Let me know if you have any questions!
Also the BP in the BP site: blueprintUE | PasteBin For Unreal Engine