I’m building a Super Mario Bros clone for learning purposes. How can I kill the enemy when I stomp on it? Even though I have 2 different trigger boxes on the enemy blueprint, the one on the top works just like the one on the sides.
This is the programming for the side box, which kills the player. Only prints a message and pauses the game at the moment. The same programming goes for the top box, but obviously the result is the enemy’s death and the game doesn’t pause.
https://media.discordapp.net/attachments/350688544315932672/668491035202158592/unknown.png?width=400
The highlighted box is the one that kills the player
https://media.discordapp.net/attachments/350688544315932672/668491121076469771/unknown.png?width=400
When I stomp the enemy it still detects as if it’s the side box.
I’m looking for a way to solve this or another way to get the same results (player dies if hit by the enemy and enemy dies if the player stomps on it).