HOME ➔ SUPPORT ➔ Community ➔ General CourseLab issues ... Moving an agent in CourseLab 4
Moving an agent in CourseLab 4
  View type:
I'm trying to move an agent across the screen in Courselab 2.4. I’m using Method and Move-Start but the agent just moves in place. What other code should I use? I could move the agent in version 2.0, but the code does not work the same in 2.4.

Thanks

Claire in Chicago
 
Hi

Before you use the MOVE command you have to use the METHOD command.

eg:

SEQUENTALLY
METHOD(Obj_Name,'Method='PerformAction') <<-- Add a method here to make the object walk
MOVE(Obj_Name,X=??, Y=??)

Don't forget the indents. I can send you some screen shots if it would help.

You may like to add a METHOD at the end of the walk to get the object to smile, read a book, shake a fist etc

Hope this helps

Bob
 
 
Assume I want the object to walk to a certain part of the screen then stop walking, how do you do that?

I followed your instructions above and I have an object that just continues walking and walking.

Please help.

Thanks.
 
 
Both the Method and the Move above should be indented !
 
 
 
I tried that but the agent only walks in place and I want the agent to walk across the screen. If you have time, please send a few screen shots so I can see what I am doing wrong.

Thanks
 
 
 
 
What is your e-mail ?
 
 
 
 
 
You know I just got it to work. When I removed the SEQUENTALLY command, then the agent walked across the screen. Don't know why. my email is admin@efolios.info


 
 
 
 
 
 
If you look on the Courselab Community site, I have posted a small lesson there which has an agent doing all sorts of things.

http://nickj.php0h.com/inter/inter_base.html

Subject:
Message options
No additional options