i use this method and then i cnt use animation talk for charecter .
my chaecter name is actor
how do use "method Talk" with animation charecter
plese help me
method Talk(srcString,srcActor,xPosition
) {
var twin;
if (srcActor == null) twin = "talk"; // basic window with ghost
else
twin = srcActor; // NPC window
Game.
Interactive =
false;
// we save the interactivity state for later and turn it off
var dlgWin =
Game.
LoadWindow("windows\dlgWindow.window");
// load the dialogue window var tString =
Game.
ExpandString(srcString
);
// prepare the localized string to handle formatting var lines =
ToInt(tLength /
300) +
1;
// find out how many lines will we need
dlgWin.
SetImage("windows/"+twin+
".png");
// set the image
// set the caption parameters
talkRobotEnt.SubtitlePosRelative = false;
talkRobotEnt.
SubtitlesPosY =
630 +
15* lines;
// position the caption in the window based on number of lines
talkRobotEnt.
SetFont("fonts\verdana.font");
// set the speech font
talkRobotEnt.
SoundPanning =
false;
// make the sound centered talkRobotEnt.
Talk(srcString,
null,
"",
"",
0);
// say the line
}