Enemy collision sprite/flipbook

Hello,

I’m creating a 2D platformer where the goal is to kill enemies by jumping on their head (I know, not original lol). Anyway, my enemies are created, they’re walking around in my level. Now what rests is the collisions with my enemies.

12425-examplespriteflipbook.png

(this is not how the actual flipbooks look)

I want to create a collision where, if I touch him from the front or back (red area) it damages me, and if I jump on the top (green area) I kill it.

Any suggestions would be greatle appreciated!

Anyone any ideas?

You could try making a box component( or whatever shape) and placing it for the body and check for overlapping actors and apply damage (and maybe knockback, but if you figure out how to do knockback please tell me!) and another one for the head that also checks for overlapping actors and destroys the enemy if someone is in it. Doesn’t sound too polished maybe there are better solutions but it’s a place to start at least!