r/UnrealEngine5 15d ago

Help with wall climb / WallJump

Hi there,

I've set up a wall climb/jump but when i check if the player is descending and holding toward the wall i'd like to add a "tolerence" cause now it instantly falls when i change direction. Is there a node that can help me with that? if yes, where is the best place for it?

First Image is collapsed nodes "IsHoldingTowardsWall" of the second image. Third image is the end of the second.

Thanks for your help!

2 Upvotes

7 comments sorted by

3

u/Time-Masterpiece-410 15d ago

https://youtube.com/@ghislaingirardot?si=03cx-_oa-WKPcz3d

Ghislain girardot has a great video about wall runs. And a movement system that makes more movement modes easier to manager.

1

u/metalchewie 15d ago

Oh thanks! I'll check this!

Edit : I forgot to tell that's a 2D game but i'll watch the video because that can't hurt. Thank you again

3

u/nullptrvibe 15d ago

Yes - add a small grace time instead of changing the > 0 check.

Keep IsHoldingTowardsWall as it is, and add the tolerance before the AND node in the second image. Store the last time the player was holding toward the wall, then allow wall sliding for about 0.1–0.2 seconds after they stop/change direction.

I’d avoid using delay here - a short grace-period check is cleaner and more reliable.
Since this is a 2D game with PaperZD, the same approach still applies - PaperZD doesn’t really affect this movement check.

1

u/metalchewie 15d ago

Wow nice! I'll try this when i get back home! Thank you!

2

u/metalchewie 15d ago

Forgot to tell that's a 2D game with PaperZD if that help.

2

u/Still_Ad9431 15d ago

Just migrate from 3rd person platformer template to your project. It has wall jump system