I have this code
public void onground()
{
Actor under = getOneObjectAtOffset(0,getHeight()/2,ground.class);
return under != null;
}
it says "cannot find symbol- method getHeight()",although this method exists in greenfoot library


1 | Actor under = getOneObjectAtOffset( 0 ,getImage().getHeight()/ 2 ,ground. class ); |