So I wanted to check if another actor is touching something. But it turned out that I can't use isTouching of other actors cause it's private. Then I wrote this method in my second actor:
But when I call it in my first actor greenfoot seems to check if the first actor touches something. Is there any way around this or am I doing something wrong?
public boolean touching(Class C1) {
return isTouching(C1);
}

