I have a special problem.
In my game you can poison an enemy. Now if the enemy is poisoned, an event is creating a small symbol over the enemy with a fade behaviour. At the same time the enemy gets poisoned, set to "poisoned"-boolean and the enemies "poison_timer" starts counting down. The fade-wait is getting set to the poison timer and the fade starts. So far so good, now when the poison-timer reaches zero, the poison is gone and also the symbol has faded out. Works fine.
Now the problem is, i cant get my head around how i can make the symbol fade, when the enemy is dying.
Lets say the enemy just got poisoned, the symbol appears over the enemy and now the counter is counting down, lets say 8 seconds.
The enemy gets killed after 2 seconds. Now the enemy is dead but the symbol remains there for 6 seconds, even when dead.
Is there a way to assign the symbol to the enemy which got poisoned so it "recognizes" the enemies death. I tried setting the fade on enemys death, but that didnt work.
Hope somebody understands my problem and can help me. Thanks!