i'm using the platform behaviour, and i used the event:
if player collides with goomba | set goomba animation to "die"
and | wait 3 seconds
player is falling | destroy goomba
i also made an event for getting hurt.
if player collides with goomba|
and
player is on floor (death, destroy, and reload actions)