Could you add this code for its movement
MouseInfo pointer = Greenfoot.getMouseInfo();
if(pointer != null)
{
int mouseX = pointer.getX();
int mouseY = pointer.getY();
turnTowards(mouseX, mouseY);
int button = pointer.getButton();
if(button == 1)
{
move(20);
}
}
Recent Comments | Show All
2019/2/23
Bloodstream
2019/1/26
Solo Agar.io