Re: Set Location of new object to location of parents at collision

jon klein <[email protected]> Sat, 17 Sep 2005 11:21:48 -0400
Newsgroups gmane.comp.breve
Message-ID <[email protected]>
On Sep 17, 2005, at 8:56 AM, Alan Stafford wrote:

> How do you get the current physical location of an Object derived  
> from the Wander class?
> I want to set the location of a new wander object formed at the  
> collision of two objects to the location of the collision.

The Mobile method "get-location" will give the location of any Mobile  
object (including Wanderer, which is a subclass of Mobile).  Your  
code might look something like:

newObject move to (self get-location).

- jon klein
_______________________________________________
breve mailing list
[email protected]
http://lists.spiderland.org/mailman/listinfo/breve