, Visual C#


- 2


// . .:

myPeedy.LanguageID = 0x409;

// axAgent4:

axAgent4.Characters.Load("Robby", DATAPATH_4);

myRobby = axAgent4.Characters.Character("Robby");

// Form1

// "x, y" :

myGenie.MoveTo(

Convert.ToInt16(this.Location.X + 0),

Convert.ToInt16(this.Location.Y - 130), 1000);

// :

myGenie.Show(0);

// ,

// :

myAgentController = new AgentObjects.Agent();

myAgentController.Connected = true;

myAgentController.Characters.Load(

"genie", "genie.acs");

myGenie =

myAgentController.Characters.Character("genie");

myAgentController.Characters.Load(

"merlin", "merlin.acs");

myMerlin =

myAgentController.Characters.Character("merlin");

myAgentController.Characters.Load(

"peedy", "peedy.acs");

myPeedy =

myAgentController.Characters.Character("peedy");

myAgentController.Characters.Load(

"robby", "robby.acs");

myRobby =

myAgentController.Characters.Character("robby");

// mySpeech

// :

mySpeech = " , " +

" .";

myGenie.Speak(mySpeech, myObject);

}

, , (Merlin) , Timer Properties Interval , , 5000 ( 5 ) ( Enabled True).