Hello , can anyone help me with this i want those object getting in the world moving three by three in front of each other , if they reached a certain point they must stop three after three after eachother.
i tried this but it doesn't work they get on top of each other and in stead of 6 person it becomes three.
this is what i got at the moment in my person class
in my actor class
if (getX()== -370 && getY() < 550)
{
move(3);
if (getX() >= 398 && getY() < 450)
{
setLocation(398, getY());
}
}
if(getX() == -192 && getY() < 550)
{
move(3);
if (getX() >= 576 && getY() < 450)
{
setLocation(576, getY());
}
}
