2D enemy problem

I tried to create a 2d enemy:

The problem is that, when my character jump on it, the capsules of the enemy and of my character collides and launch my character over the y-axis. There is a wasy to let the enemy use the sprite collision (and not the capsule one) against my character?

Hey ale929,

Sprite Collision is still an experimental feature and there are specific directions on how to turn this feature on within your ‘Project Settings’. Take a read over our documentation for Sprite Collision to see how to enable 2d collision within your project.

Sprite Collision

Let me know if you are having trouble or if you have any additional questions.

Cheers,

The problem is that this option is only supported for windows… there is no other way to bind my character on the y-axis to avoid these problems?

There is even a way to temporarily disable collisions of the enemy but just against my character? I tried but when i disable the monster’s collisions he fall off the floor. I even tried to disable collisions just for the pawn channel but without any effect.

You should be able to constrain your characters movement to a specific axis, so that when collision occurs, your character will only move with the force applied along that axis.

Check the Character Movement within your character blueprint to find where to be able to constrain movement along an axis. Let me know if you are still having trouble.

Thanks,

Thanks a lot! I never noticed that :slight_smile: