In this game the player has 10 seconds to kill the demon.
It's suppose to work like this: If the player kills the demon within the 10 seconds the game continues.
If the player fails to kill the demon the player loses 20 life points.
The event reads: create demon, wait 10 seconds, destroy demon, subtract 20 from life.
Which works, but if the demon is killed before the 10 second limit the game still subtracts 20 from life.
How do I get the game to Not subtract 20 from life if the demon is killed before the 10 second limit?
I made a demo to better explain.