Hello, i’m having trouble making enemy for my game. The enemy when attacked by the player will change from idle animation to dying animation and play it’s death sound then get deleted. But when i copy and paste the enemy, the second enemy wouldn’t play the death sound if the first enemy hasn’t been deleted yet. Here’s my code:
Does your enemies enter death animation at all?
Like each of them?
Cause if not then you need For Each for checking health variable being equal or below 0
Also do not use play sound on channel for sounds
General rule
For playing sounds you use Play Sound action
For playing music you use Play Sound on Channel
NEVER use Play Music action
And each of that enemies is enemytest object?
Also try removing trigger once from checking if enemy is death animation and add condition to it frame number = 0
IT WORKED! I tried your advice with removing trigger once and add frame = 0, but the sound keep looping until the animation hit frame 0, so add trigger once again and now all instance of enemytest play their sound. Thank you so much for the help!