Hi guys, so i have two platforms and the first one works fine but i have a problem with my second platform (its called "platforme") and i get this error : "image Height has private acces in greenfoot.Actor"
this is my code :
public boolean didBumpedHead2() {
boolean bumpedHead2 = false;
int imageWidth = getImage().getWidth();
int imageheight = getImage().getHeight();
if(getOneObjectAtOffset(imageWidth / -2, imageHeight / -2, platforme.class) != null ||
getOneObjectAtOffset(imageWidth / 2, imageHeight / -2, platforme.class) != null)
bumpedHead2 = true;
return bumpedHead2;
