readonly int Character.SpeakingFrame
Returns the current frame number of the character's talking animation. This is
useful when using Sierra-style speech, if you want to synchronize events with the
progress of the close-up face talking animation.
This property is read-only. It is only accessible while the character is speaking;
if you attempt to call it when Character.Speaking is
false then it will raise an error.
Since speaking is a blocking command, this property will probably only be useful
access from the repeatedly_execute_always handler.
Example:
if (cEgo.Speaking) {
if (cEgo.SpeakingFrame == 0) {
cMan.Move(cMan.x + 10, cMan.y, eNoBlock, eAnywhere);
}
}
will move cMan to the right every time the talking animation loops back to Frame 0.
See Also: Character.Say,
Character.Speaking
|