When Player is grabbing ledge there is empty space

Hey all,

Basically i can’t get my player flush up against the platform when he is hanging on the ledge.

Collision mask:
I’ve tried adjusting the collision mask which helps some but seems to eventually stop making a difference. i have it down to just being like 20 pixels wide.

Points:
I’ve also messed with this buy first adjusting the origin point to the center instead of the default left corner. With all animation set to center this was the same as the default origin point. If i changed just the grab animation origin point to the center, it had strange results that worked for only one direction but when horizontally flipped the player would’nt even grab the ledge.

Artwork:
I even tried using a version of the sprite that was trimmed to the edge of the players body. This was similar to the Points. It worked but only when he was flipped ( facing the left) and wouldn’t even grab the ledge facing the right.

It seems like the ledge grab section on the behaviors has a X tolerance, and a Y offset. If there was an X offset this seems like it would be exactly what i need. It seems like I just haven’t found the right combination of things to do yet to make this work. Any ideas would be greatly appreciated!

I am pretty sure you need to not put the two share same points then make a new point and do if that point is touching the platform than do go up and forword

Can you add the event I’ve screen snipped below to the start of the scene and check what the hitboxes look like when you preview the game? It may give you an idea of what’s going on.

image

Thanks for the replies, i actually just came up with a simple fix of moving the player about 10 pixels towards the platform when grabbing ledges, it’s seemless.