This site requires JavaScript, please enable it in your browser!
Greenfoot back
zuyi53
zuyi53 wrote ...

2013/3/14

How to get the object location(x,y)

zuyi53 zuyi53

2013/3/14

#
Now i'm using getObjectsInRange to return the object im looking for, but the problem is the getObjectsInRange method only return the object name. How do i get the object location? such as, the getObjectsInRange return a object callded "leaves", so how can i get the leaves location(X,Y,)?
davmac davmac

2013/3/14

#
Well, firstly, objects don't really have names. Also, getObjectsInRange returns a list of objects, not just an object. It's probably best if you post what code you have, then we can help you to make it work.
You need to login to post a reply.