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

2015/4/9

2 objects, 1 class! Help.

sergeantjackson sergeantjackson

2015/4/9

#
2 objects. 1 class. Please Help. A friend and I want to make collisions between two objects of one class and we would need both coordinates for it... How to get the coordinates of several objects of one class? Thank you in advance, your SERGEANT JACKSON!
jdf1234567 jdf1234567

2015/4/19

#
U can use the default collisiondetection can't u? So
if (getOneIntersectingObject(ClassName.class)!=null)
{
   //do whatever u want
}
Douggresham Douggresham

2015/4/19

#
Yeah I am pretty sure the getOneIntersectingObject method would work
You need to login to post a reply.