I am trying to create a frog that jumps to random spaces every second. When I say jump I mean it disappears and then reappears in different location.
int x = Greenfoot.getRandomNumber(getWorld().getWidth()); int y = Greenfoot.getRandomNumber(getWorld().getHeight()); setLocation(x, y);