Hi,
I have created an agent using the Character Editor and can get the agent to show on screen in VB 6 and then speak.
I am trying to use the MoveTo method to move the agent from it's current position which is in the left hand top corner of the screen to about the middle of the screen and then speak.
The code I have is as follows: The Show and Speak all works fine, I get the error message Compile Error: External name not defined when I run the code and it highlights the [1000] part of the code.
MyAgent.Characters.Load "face", "AgentNeg.acs"
Set face = MyAgent.Characters("face")
MyAgent.Characters("face").Show
MyAgent.Characters("face").MoveTo 2000, 3000, [1000]
MyAgent.Characters("face").Speak "Hello there how are you today?"
I have created an agent using the Character Editor and can get the agent to show on screen in VB 6 and then speak.
I am trying to use the MoveTo method to move the agent from it's current position which is in the left hand top corner of the screen to about the middle of the screen and then speak.
The code I have is as follows: The Show and Speak all works fine, I get the error message Compile Error: External name not defined when I run the code and it highlights the [1000] part of the code.
MyAgent.Characters.Load "face", "AgentNeg.acs"
Set face = MyAgent.Characters("face")
MyAgent.Characters("face").Show
MyAgent.Characters("face").MoveTo 2000, 3000, [1000]
MyAgent.Characters("face").Speak "Hello there how are you today?"