send me the files and ill have a look if you want
MouseInfo mouse = Greenfoot.getMouseInfo(); if(mouse!=null) { if (Greenfoot.mouseClicked(null)) { mouseY = Greenfoot.getMouseInfo().getY(); mouseX = Greenfoot.getMouseInfo().getX(); } if(getY() > 109) { if(mouseY < getY()) { setLocation(getX(), getY() - 5); } } if(getY() < 554) { if(mouseY > getY()) { setLocation(getX(), getY() + 5); } } }