Hi, I'm really new to coding, and I need some help from someone. I'm trying to get two objects to move at the same time, however, when I try to make them move at the same time, one moves, and then the other moves. My current coding isIt's the same for the second object, just without the setImage.
Thanks for the help
while (Greenfoot.isKeyDown("right"))
{
setImage(image1);
setLocation(getX() + moveInt, getY());
Greenfoot.delay(2);
setImage(image2);
setLocation(getX() + moveInt, getY());
Greenfoot.delay(2);
setImage(image3);
setLocation(getX() + moveInt, getY());
Greenfoot.delay(2);
setImage(image4);
setLocation(getX() + moveInt, getY());
Greenfoot.delay(2);
setImage(image5);
setLocation(getX() + moveInt, getY());
Greenfoot.delay(2);
setImage(image0);
setLocation(getX() + moveInt, getY());
Greenfoot.delay(2);
}