In this code right here, can't work out why it's so bad :/ Basically when I have this implemented in the act method so that it works when it runs, the entire program basically doesn't work upon hitting run - which I take to be a memory leak:
public void moveEnemyMethod()
{
int i = 0;
while(i < 6) {
if(i == 0 || i == 1) {
moveEnemyRight();
i++;
}
if(i == 2) {
moveEnemyDown();
i++;
}
if(i == 3 || i == 4) {
moveEnemyLeft();
i++;
}
if(i == 5) {
moveEnemyDown();
i = i - 5;
}
}
}


