I honestly don't know exactly how to word my problem, but here it goes:
I have a sort of universal selector class (just a fancy square with a translucent center) that is designed to jump around my game's menu by detecting buttons nearby it and setting it's location to the button it detects in any given direction. the buttons are all subclasses of a universal 'btn_' class, which is what the selector targets and attempts to invoke methods on.
On to the actual problem:
I get an error that It cannot find the method even though I have made sure it was in the btn_ class and overloaded in all subclasses with their respective individual button functions.. made sure the method was public and everything.
Help?
if(Greenfoot.isKeyDown("ENTER")){ //this code is in the selector class. if(getOneObjectAtOffset(0,0,btn_.class)!=null){ getOneObjectAtOffset(0,0,btn_.class).press(); // cannot find symbol - method press() } }