I'm making a Space Invaders Clone to learn some basics and made the basic movement of Space Invaders Enemys and it works well for one period but after that it stopps, if you could help me that would be great
the code is inside the act method of the Enemy Classes
if(a <= 433)
{
setLocation(getX()+3,getY());
a = a + 1;
}
else if(b <= 30)
{
setLocation(getX(),getY()+3);
b = b + 1;
}
else if(c <= 433)
{
setLocation(getX()-3,getY());
c = c + 1;
}
else if(d <= 30)
{
setLocation(getX(),getY()+3);
d = d + 1;
}
else if(d == 29)
{
a = 0;
b = 0;
c = 0;
return;
}
