I've made my object move when I press an arrow key. However my image also rotates. Can I make it face a certain direction? I want The image facing right, even if I turn it "up" or "down" or "left".
private int rotation = 0;
public void act()
{
setRotation(rotation);
// other action code
rotation = getRotation();
setRotation(0);
}private int rotation = 0;
public void act()
{
setRotation(rotation);
// other action code
rotation = getRotation();
setRotation(0);
}