How can i add a timed animation for an enemy death?

I am trying to make a small game for a school project, my objective right now is to make the enemy lose it’s collision and switch it’s flipbook before being destroyed after a delay but for some reason this is not happening. im using triggerboxes


the box at the top detects when the player steps on the enemy while the larger one “kills” the player (i followed the same logic as goombas from super mario).

It works fine if i just llink the trigger event to destroy actor, but that way it wouldn’t play any flipbook animation and just disappear wich is tasteless

the issue is that when i try to update animations before destroying the actor, killing the player takes priority (it simply triggers the end screen)