So I'm trying to create the mechanics for a dropping block enemy.
So far I managed to make the player get smashed if it sits on the block and get smashed against the roof, but doing the same approach I can't do it the same for the floor.
This is an example capx of the blocks:
Basically I have a smashed function that plays an animation, player dies and restars the layout.
Managed to make it work when smashed against the top like so:
Player is overlapping BRICKENEMY at offset 0,1
Player is overlapping Tilemap at offset 0,-1. - Call function Smashed
It works "OK". The animation keeps looping and if I trigger once it won't play any animation but will restart the layout.
Can't do the same whenever I want it smashed against the floor. It just doesn't play any animation. I guess in this case I have to call it in a different way.
I basically need a fix for the animation looping for the "roof smashed" and I guess I need a different way to trigger the floor smashing. Any help so appreciated.