Comments

I haven't UE in a while, but I'd imagine the thing you'd be looking for is LineTrace (or BoxTrace, or any of the other tracing equivalents). Those would tell you if there's an object in the direction you're tracing in at a given distance.

The things you're tracing against would need some kind of collision component on them (probably a box collision this case).

Out of interest, is there a reason you're using UE instead of GameMaker if you're making a 2D game? I seem to remember your using GM in the past, and afaik it has a more comprehensive toolset than UE for 2D work.

@Elyaradine, yeah :) I have been wanting to make a 3D game for a long time and at the moment I'm getting to know UE a bit better. I'm also looking for new possibilities and outlets :) I think getting to know the engine can yield exciting results in future :)

Currently I want to see what I can do 2D wise in UE, GameMaker's gml is something I don't know well enough to express myself fully. I also like the idea of visual scripting that UE's Blueprint offers.

I have been using a TileMap in UE for my level. The LineTrace I did checked where the player collided with it ito a horizontal line. The problem was it registered the whole map instead of only the walls. Then I put a new sprite in the level, declared it to BlockAll (then being a WorldStaticObject) collision-wise.

I couldn't figure out how to wall-jump when the player and the traced object collided themselves so I got to the implementation in the image.Now, the player, depending on its velocity when jumping against the wall object bounces away with an 'up' and horizontal' value added. Ito axis direction the bounce is in the opposite direction :)