Tutorial: Blueprint Spline locked sidescroller (e.g. Klonoa / Pandemonium style game)

Update: I fixed it by unticking the SetActorLocation built-in sweep, and performing my own by doing a Capsule Trace forward, then checking whether it’s higher than the step up height, and if it is, then stop the player movement And don’t let the AmountToMove increase. If NOT higher than the bottom of the capsule plus step up height, then let it go through. Built in sweep checkbox stops player movement without the option for additional logic. This made it so my character couldn’t walk up stairs or ramps. But now he can.

Now all that remains is to stop it from jittering when he tries to push against wall. I think this is caused because I calculate AmountToMove (which is what adds to the DistanceAlongSpline every tick) based on character movement input velocity rather than the actor’s ACTUAL velocity. I’ll have to run some experiments and see. But for all purposes, I have solved the collision problem.

Make sure you debug display your capsule trace (it’s one of the capsule trace options in its node) so you can confirm it’s tracing the correct distance and direction from the player character)