Hi!
I wouldn't think this to be a very difficuly question to find a solution to. My question is; I have a movieclip with instance name "player" and I am trying to layout it's basic movement properties. I already have made it so that the mc will move up, down, left, and right. Cake. What I am having trouble with is getting the mc to rotate in the designated direction (right = 0 degrees, up = 90 degrees, etc).

I have tried using the xscale 100/-100 strategy, but that doen't do anything for up and down movements.

My code so far is as follows:

Actionscript Code:
playerDirection = 0;

setInterval(function () {
if (Key.isDown(Key.RIGHT)) {
setDirection(0);
_root.player._x += 3;
}
if (Key.isDown(Key.LEFT)) {
setDirection(1);
_root.player._x -= 3;
}
if (Key.isDown(Key.DOWN)) {
_root.player._y += 3;
}
if (Key.isDown(Key.UP)) {
_root.player._y -= 3;
}
updateAfterEvent();
}, 10);

function setDirection(param){
if(param==0){
player._xscale = 100
}
else {
player._xscale = -100
}
}

Any help is much appreciated