Buggy collision with sprites right next to each other?

Hi! I have created a fence border using sprites, since unfortunately gdevelop doesn’t have an integrated tilemap editor. The player collides properly when moving left and right while touching them, but up and down seems very buggy. Anybody know why?

Here is a video showcasing the problem

1 Like

I can’t see the problem that happens when colliding up

The problem is when moving up and down (on the left and right sides) not moving left and right (on the top and bottom sides)

Sorry if I was confusing.

You’re going to have to explain in better detail what is happening and what you expect or want to happen. We cannot see what the issue is from the video.

You mean when the player is in collision with left fence and you go up the player don’t change animation?

I’ve made a bug showcase project that should show what I mean. Hold right while moving up and down against the wall and notice how the character sticks to the wall a bit on sprite borders. It seems to happen less in this than in my game, but is still there and noticeable. I hope this will help show what I mean better.

I downloaded the project, tried it, and I don’t see the problem.

I mean, you’re using “move away” to simulate the collision. That means there’s always some friction caused between the “repulsion force” of that behavior and the “forward force” due to pressing the directional arrow. However, that’s not an unexpected behavior or bug.

If you’re looking for a smoother behavior, you’ll need to try a different approach. Maybe you can use a platformer object and platforms with gravity set to 0.