# 2D Game. Problem with sliding off the edge from collision. How to fix it?

**URL:** <https://forums.unrealengine.com/t/2d-game-problem-with-sliding-off-the-edge-from-collision-how-to-fix-it/2116684>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [November 11, 2024, 8:38pm UTC](https://forums.unrealengine.com/t/2d-game-problem-with-sliding-off-the-edge-from-collision-how-to-fix-it/2116684 "2024-11-11T20:38:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kubek\_lek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kubek\_lek](https://forums.unrealengine.com/u/Kubek_lek)\
**Post date:** [November 11, 2024, 8:38pm UTC](https://forums.unrealengine.com/t/2d-game-problem-with-sliding-off-the-edge-from-collision-how-to-fix-it/2116684/1 "2024-11-11T20:38:25Z")

</div>

If object has a collision it slides my character off to the different axis? And I can’t get back. No tutorial explained it. No tutorial had such problem as far I’ve seen and so I have no idea how to fix it.

[https://www.reddit.com/r/UnrealEngine5/comments/1goyndv/2d\_game\_problem\_with\_sliding\_off\_the\_edge\_from/](https://www.reddit.com/r/UnrealEngine5/comments/1goyndv/2d_game_problem_with_sliding_off_the_edge_from/)  
Link to video that shows what exactly is my problem.
