Hello,
I have 2 actors, actor1 and actor2, when actor1 touches actor2, i want the image of actor2 to change, i did that by writing in the class of actor2:
if(isTouching(actor1.class)) {
setImage("image");
}
but now i want to the equivalent of this code but written in the class of actor1, is that possible?
Thanks for reading.