Count of dead enemies

hello forums,
how do i count enemies when they are eliminated together?
I tried to insert a boolean variable but it didn’t solve this problem.
Is there anyone who can tell me how to do it?


A quick fix would be to use an object variable to flag the object as counted. I used the count of instances expression in case it’s possible that multiple objects could die on the same frame.

1 Like

thanks a lot it seems to work

1 Like

You’re welcome. I looked at your code again and alternatively you could do it on the line you delete the object using the same math.

I put it under the end animation event

1 Like