Solarus Forum

Solarus => Development => Topic started by: SyF on April 03, 2020, 02:10:05 pm

Title: Disable sound when several enemies died (in the same time)
Post by: SyF on April 03, 2020, 02:10:05 pm
Hello guys,
I want to know if is it possible to disable the dying sound when an enemy is killed ?

Because, when I kick the boss, I "remove_life" the enemies around in the same time. And in this way, the sound is played for each in the same time (and it is horrible for my ears  ;D).

Do you have any idea ?
Title: Re: Disable sound when several enemies died (in the same time)
Post by: Max on April 06, 2020, 05:56:05 am
Instead of "enemy:remove_life()" on the minions, you could do "enemy:remove()", which just takes them off the map, instead of damaging them. If you still want the dying animation you could manually create that.