Page 1 of 1

One InstallEventHandler to make mouth animations

Posted: Wed Aug 02, 2017 1:12 pm
by Juan Carlos
Yes I thinking in this option one InstallEventHandler to know if there is playing a voice sample to make the mouth animation for intros or games, I read that Flash has a insruction for it and I see this in some Flash games.
I tried to use the OnSampleLoop like this:
InstallEventHandler({OnSampleLoop=p_Sound})
and curiosly it works but I read the problems to use this instruction and the instruction isn't perfect with long speeches.
Will be possible a "OnSamplePlaying" inside of InstallEventHandler? To make the mouth animations for example.
Thank you Andreas for your time.

Re: One InstallEventHandler to make mouth animations

Posted: Sun Aug 06, 2017 11:20 am
by airsoftsoftwair
Just use an interval function and IsSamplePlaying().

Re: One InstallEventHandler to make mouth animations

Posted: Tue Aug 15, 2017 12:21 pm
by Juan Carlos
I try to use the interval function and the result isn't so good than using InstallEventHandler({OnSampleLoop=p_Sound}),
the mouth animation with interval is slow but with Install the animation is quickly and perfect, only someting short with long speeches.