How to make a killable enemy that damages you?

Okay, so I’m making this crappy Mario game, and I want the goomba to be killable when you jump on top of him, but I still want him to damage you. I turned off damage for when he gets hit to the head, but he still loses some health. Does anyone know how to fix this?

3 Likes

do you like trains? I have a friend who loves trains, and to answer your question, the collision block has right top left and bottom settings, use those

This is a tricky one.
There are many easy ways to make this happen, but all can be buggy. The first thing I’d say is to make sure to turn off bottom collision, not top, for the player’s damage. Several methods such as Ray casting and messaging could work, I recommend you experiment some and find the best for your game.

1 Like

Yes, I do like trains

1 Like

Okay, I’ll try. Thanks!

1 Like

@meburningslime Turning off the bottom worked, thanks!

1 Like

No problem! If you mark my comment as a solution, others will know that you don’t need help anymore. If you have anymore questions, feel free to let me know!