Title:
How To Make A Symbol Move 4-WAY
Source:
https://www.kongregate.com/games/kinglynx/tutorial-on-moveing-object
Date Added:
8/10/2020, 3:30:14 AM
Date Modified:
1/29/2024, 11:34:07 AM
Original Description:
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;
}
ID:
2d6687de-0682-49f3-9d56-a4477fb6f1ee