FAQ
Products Showcase Download Extras Support
 
Home :: Support :: Community :: CourseLab Issues

Re: Re: (2) (2) (2) (1) Moving an agent in CourseLab 4

Moving an agent in CourseLab 4 
Author:  Web Site Ministry   [Member]
Date: 26.03.2008 01:36:00
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
 
...
Re: (1) Moving an agent in CourseLab 4 
Author:  Bob Price   [Member]
Date: 26.03.2008 11:55:55
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  
...
Re: (2) Moving an agent in CourseLab 4 
Author:  JO    
Date: 06.05.2008 11:54:27
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.  
...
Re: (2) (1) Moving an agent in CourseLab 4 
Author:  Bob Price   [Member]
Date: 26.03.2008 11:56:33
Both the Method and the Move above should be indented !  
...
Re: (2) (2) (1) Moving an agent in CourseLab 4 
Author:  Web Site Ministry   [Member]
Date: 26.03.2008 18:16:57
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  
...
Re: (2) (2) (2) (1) Moving an agent in CourseLab 4 
Author:  Bob Price   [Member]
Date: 26.03.2008 18:20:01
What is your e-mail ?  
...
Re: (2) (2) (2) (2) (1) Moving an agent in CourseLab 4 
Author:  Web Site Ministry   [Member]
Date: 26.03.2008 18:39:06
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


 
...
Re: (2) (2) (2) (2) (2) (1) Moving an agent in CourseLab 4 
Author:  Bob Price   [Member]
Date: 06.05.2008 12:38:03
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

 
...

Reply

You can also post this message as registered user. [Log in]
Author:
E-mail:
Subject:
Options:  Notify me if there is a new reply
Message emoticon:
Message body:
Insert smilie into text:
 
Jump to thread: