Trying to get enemies to move randomly through a maze but i want them to move a square at a time (60 pixels)
private int random =Greenfoot.getRandomNumber(4);
public void move () { { if (random == 1); move (60); } { if (random == 2); move (-60); } { if (random == 3){ setLocation(getX(), getY()+60) ;} } { if (random == 4){ setLocation(getX(), getY()-60) ;} } }