I have 1 class that is supposed to be changing it's image (I know how that works) after a certain object is touching another object. How can I do that?
//in class A - act method or called from that
if (isTouching(B.class))
{
setImage("image2.png");
}