Where am I going wrong with this:
If my hero touches a particular object in a map I want a trace message appearing on the screen. I have this in my hero class. The object in question is a sign board.
private void mapSpecificInteractions()
{
CreateMap C = (CreateMap)getWorld();
if (C.MapLevel == 0)
{
Fences sign2 = (Fences) C.getObjectsAt(321, 287, Fences.class);
if (sign2 != null && isTouching(Fences.class)) {
System.out.println("got");
}
}
}
