How To Make A Symbol Move 4-WAY

game

This is a tutorial on how to make a symbol move in flash using action script.
My second tutorial, please don’t be harsh.
I’ve taken what other people have said in my other tutorial so i could make this one better!
-——-HERES THE WHOLE ACTIONSCRIPT————-
on (keyPress "") {
currentX = this.x;
this.x = currentX – 2;
root.face.rotation = 270;
}
on (keyPress "") {
currentX = this.x;
this.x = currentX + 2;
root.face.rotation = 90;
}
on (keyPress "") {
currentY = this.y;
this.y = currentY – 2;
root.face.rotation = 360;
}
on (keyPress "") {
currentY = this.y;
this.y = currentY + 2;
root.face.rotation = 180;
}

Series: Tutorial
Publisher: Kongregate
Developer: kinglynx
Tag: Tutorial
Language: en
Year: 2008