Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS Agent Problem 1

Status
Not open for further replies.

anastasia

Programmer
Dec 13, 2000
111
0
0
GB
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?"
 
What is the [1000] supposed to do?
Won't this work if you just remove it?

MyAgent.Characters("face").MoveTo 2000, 3000
 
Thanks for your help,

I have removed the last part and go it working.

I think the last part was something to do with speed.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top