//hey guys this is the script im using, the problem with it is it will go to the end of the screen then respawn at the beggining, i want it to go the the right of the screen, then move to the left and repeat its action heres my script
//now this goes on the lasers actions pannel
onClipEvent (load) {
laserMoveSpeed = 20;
this._y = _root.char._y;
this._x = _root.char._x 80;
}
onClipEvent (enterFrame) {
this._x = laserMoveSpeed;
if (this._x>550) {
this._y = _root.respawn._y;
this._x = _root.respawn._x;
laserMoveSpeed = 50;
}
}
//so how would i make it go to x over 550, then if its over that it will start going in reverse direction, then repeat itself (so basicly like this)
- - - - - - - > (OBJECT HERE)
<---------------(OBJECT HERE)
basicly running back and forth on the screen lol
Tags: