I did it like this:
--(condition) For each "map_enemy" & map_enemy.health <= 0
---- (action): "map_enemy" destroy
____-- (subevent) For each "iso_enemy" & iso_enemy.id = map_enemy.id
____---- (action) "iso_enemy" destroy
When I understand correctly you wanted me to put the "Pick by comparison" in the place of map_enemy.health <= 0 right? I think this is the same though.
Nope.
The problem happens on the moment that the enemy is losing health.
As i said i gambled, you dont give that much info.
I suppose it is with bullets, and you use 'on overlap'.
Bullet is overlapping map_enemy
For each map_enemy
...................... do your health thing
I should have known that they do not directly get destroyed. Now, this is all it needs.
But to be save (not sorry) you better keep the for each when destroying. After all it is possible that two enemy's go dead at the same time.
Then the follow up is
map_enemy.health <= 0
For each "map_enemy"
"iso_enemy" ... compare instance variabe ... iso_enemy.id = map_enemy.id
---- (action): "map_enemy" destroy
--------------- "iso_enemy" destroy