death animation + sounds

Make games! Discuss those games here.

Moderators: Bob the Hamster, marionline, SDHawk

Post Reply
User avatar
marionline
Metal Slime
Posts: 673
Joined: Sat Feb 26, 2011 9:23 pm

death animation + sounds

Post by marionline »

Hi,
one or two questions on death.
1) Is the animation shown first and then the sound played afterwards?
At least that's what I suspect.

1.2) And how do I play the sound on the same time as the animation or even before the animation?

The sounds I use are rather long, and so they are sometimes even still played outside battle, if the victory scene is skiped... It's a bit odd.

2) Do I have to use attacks to trigger the death sounds instead?
That sounds like a lot of work for lazy me. . .

Thanks for you help in advance! :D
User avatar
Bob the Hamster
Liquid Metal King Slime
Posts: 7460
Joined: Tue Oct 16, 2007 2:34 pm
Location: Hamster Republic (Ontario Enclave)
Contact:

Re: death animation + sounds

Post by Bob the Hamster »

The sound effect and the animation are supposed to start at the same time.

Try opening your sound effect in Audacity and see if there is some silence at the beginning of the sound.

If you want to have an sound play before death, you will need to use an on-death-bequest attack. When an enemy dies, they do their on-death-bequest (and all chains) before they finish dying.

So the first part of the bequest attack should be a self-targetting attack that does nothing except play your long death sound. (and maybe a caption?) and it will chain to a second attack that does nothing at all, but has a delay which prevents the dying enemy from disappearing until the delay is over.
User avatar
marionline
Metal Slime
Posts: 673
Joined: Sat Feb 26, 2011 9:23 pm

Post by marionline »

Thanks for your answer.
The on-death-bequest attack sounds interesting, I'll try that. :D
Post Reply