Why does my player get stuck when touching the border?

So as seen in the video when i go touch the border of the map my platformer character gets stuck and i cant move no matter what. How whould i fix this?

The borders are some simple semi-transparent red rectangels and they all have the platform behavior

Thanks to the person who comes with a fix to this

Videoudentitel-SkabtmedClipchamp-ezgif.com-video-to-gif-converter (1)

The platform behavior is for platforms not walls. It’s probably best to use separate player from wall instead of a the platform behavior on the walls or border.

I have tryed that but the player still gets stuck when i touch the wall

Did you remove the platform behavior from the border object?

Sometimes, when an object gets stuck it’s because the center or origin aren’t in the exact center or the hitbox is off.

What happens sometimes is that when the object is flipped, it doesn’t just flip it teleports a little to 1 side because the object or collision mask is off-centered. If that’s the case then the fix is to center things so when the object is flipped, it occupies the same exact location.

Hello Im not sure why you are using platformer behaviour for the border to keep the player in. You can use a simple keep player on in Screen behaviour


You do not need any borders with it.

well the problem with that would be that i have a moving camera so it does not work but good solution

it probally is something like that but i just cant seem to figure it out i have centered all points and collision masks.

i just dont know what else it could be or what could fix it

Did you remove the platform behavior from the border and add seperate objects?

Move player away from border only player moves

If so, it might help if you post a screenshot of the player movement events.