I am using 'SetRotation' move a character up,down,left and right. I am also swapping image each time (so that they 'look' up,down,left and right). However, my images are chagign their orientation. How do I swap image, make the actor move but stop the orientation of the image from changing? Example code I am using below:
move(2);
if (Greenfoot.isKeyDown("right"))
{
setRotation(0);
setImage(right);
}
if (Greenfoot.isKeyDown("down"))
{
setRotation(90);
setImage(down);
}
if (Greenfoot.isKeyDown("left"))
{
setRotation(180);
setImage(left);
}
if (Greenfoot.isKeyDown("up"))
{
setRotation(270);
setImage(up);
}
