So I have a Problem with my Player. I`m kinda new in Greenfoot. So let me get to the point. The Problem is that when I`m hitting a Wall my Player is moving half inside of the Wall- So now i got the question how can I change my QC to get the fullImage of my Player.
public boolean Spieler() { int SpHöhe = getImage().getHeight()+15; int SpBreite = getImage().getWidth()+15; return true; } public boolean Wand() { Object Spieler = getOneObjectAtOffset(getImage().getWidth()-30, getImage().getHeight()-30, Wand.class); return Spieler != null; } public void checkWandOben() { if (Wand()) { setLocation(getX(), getY()+2*speed); } } public void checkWandUnten() { if (Wand()) { setLocation(getX(), getY()-2*speed); } } public void checkWandRechts() { if (Wand()) { setLocation(getX()+2*speed, getY()); } } public void checkWandLinks() { if (Wand()) { setLocation(getX()-2*speed, getY()); } } public void Finalcheck() { if (Greenfoot.isKeyDown("a")) { checkWandRechts(); } if (Greenfoot.isKeyDown("w")) { checkWandOben(); } if (Greenfoot.isKeyDown("d")) { checkWandLinks(); } if (Greenfoot.isKeyDown("s")) { checkWandUnten(); } }