Speaking logic (this is for you KaTsu)
Posted: Mon Oct 22, 2012 2:39 am
I remember something a while back about syncing characters with audio... this is along that vein (although not audio based) and thought you might find it useful. I made a basic phoneme function that will have the character's mouth graphic mime out the letters of the sentence. The basic logic is that it takes your string, converts it into an array, then cycles through the array telling the mouth movie clip to stop on whatever letter is assigned to it.
I only used the basic 9 phoneme's, but the code is simple enough that it should be pretty easy to manipulate and/or add more complexity to if needed. Enjoy!
edit - Tried to attach the source file, but for some reason the forums are telling me .fla is a non-allowed extension?
Here is the basic code:
(1) on the main timeline, this makes the array when you click the button:
(2) this is on the main frame of the mouth movie clip, telling it what to pull when it hits which letters:
I only used the basic 9 phoneme's, but the code is simple enough that it should be pretty easy to manipulate and/or add more complexity to if needed. Enjoy!
edit - Tried to attach the source file, but for some reason the forums are telling me .fla is a non-allowed extension?
Here is the basic code:
(1) on the main timeline, this makes the array when you click the button:
Spoiler (click to show/hide):
(2) this is on the main frame of the mouth movie clip, telling it what to pull when it hits which letters:
Spoiler (click to show/hide):