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?


1 2 3 4 5 | //in class A - act method or called from that if (isTouching(B. class )) { setImage( "image2.png" ); } |