actionscript movement Q
actionscript movement Q
Out of context: Reply #3
- Started
- Last post
- 3 Responses
- honda0
it worked for me. used same code just added a line or two. other than that i had no problems.
here is what i used:
onClipEvent (load) {
speed = -3;
xPos = this._x
//disregard below
// _root.myXpos2.text = xPos;
}
onClipEvent (enterFrame) {
currentPosx = this._x+speed;
this._x = currentPosx;
if (currentPosx<(170-this._width/2... {
_root.gotoAndStop("three");
}
if (currentPosx < 0) {
this._x = xPos;
}
}