I'm trying to see if the non-static int called val (defined in block) of another instance is equal to the value of the instance checking. It can't compile because it says "Can't find symbol - variable val". HELP PLEASE!
public void checkTiles(){
Actor a = getOneIntersectingObject(block.class);
if(a!=null){
if(a.val == val){
getWorld().removeObject(a);
val = 4;
}
}
}