Enemy's Death Problem

Hi


When I make my enemy die when he uses a skill, the image of him won't disappear even after he's dead..


Help?
You would need to be more specific about how you are trying to kill the skill user, but this is probably because by default RPG Maker doesn't always check every battler to see whether they are dead (only the targets).  It might work if you used the method call a.die in the damage formula (a.die; a.atk * 4 - b.def * 2), but it's also possible that might have the potential to cause crashes since the user is dead while the skill formula is being calculated.  Your best bet might be to apply a state to the user instead (a.add_state(38)) and have that state do nothing, but have a Troop event check each Moment or Turn to see whether which enemies have the state applied and have the event apply the KO state to any enemies that do.
a.die doesn't crash the game, but the enemy won't disappear at all when he's killed by this
@Lnik3500 I had this same problem happen to me yesterday and I finally figured it out. The boss is actually still there but you can't see him or select him as a target but When you have a attack all and you have 3 enemies you might see a fourth animation which would be on the boss. It takes a lot of tweaking to fix but it's possible to get it just right. It all really depends on how you have everything set up. Like just a normal note situation in the skill, are you using an event or both. Also this post you made was in March so you might have figured it out by now haha 
@mikewalton206, damage formula. it was already said.


Also, it seems you two are getting opposite problems...


@Lnik3500, are you sure the death animation is not set to stay visible? that would be a good reason...
I'm sorry guys but my problem has been fixed for some time now... I usually Bump the topic if I'm still seeking the answer.
Well, what was the cause? And how did you fix it?

Original thread: https://forums.rpgmakerweb.com/threads/enemys-death-problem.59722/