Here’s the Blueprint that I’ve been using the side-scrolling platforming game I’ve been working on:
The setup is surprisingly simple and in my own personal experience of using it, appears to work rather well.
I wish I could also post the link to the video tutorial that I got it from, but unfortunately trying to find it on YouTube is rather difficult, not helped out by the fact that my Google searching skills are rather weak. I would’ve preferred to include the video since it not only shows how to setup the Blueprint but also explains how it works, and my own Unreal Engine knowledge is limited, so I can’t help if you run into trouble setting up the Blueprint or if you want modify the setup in some manner.
Regardless, I do highly recommend this Blueprint setup and if do you need help, I’m sure that someone on this forum will be able to take a look at the Blueprint and be able to figure out how it works so they can provide help.