Frame 1
stop();
Frame 2
stop();
Instance of Symbol 20 MovieClip "v" in Frame 2
onClipEvent (load) {
oldx = _x;
speed = 10;
go = true;
}
onClipEvent (enterFrame) {
rn = _root.firePower;
_x = (_x + speed);
if (_x > 500) {
_x = oldx;
}
}
Instance of Symbol 48 MovieClip "car" in Frame 2
onClipEvent (load) {
function change_room(dir) {
if (dir == "right") {
_root.gotoAndStop(_root._currentframe + 1);
} else if (dir == "left") {
_root.gotoAndStop(_root._currentframe);
}
}
vel_y = 0;
step = 25;
old_y = _y;
old_x = _x;
tf = _root._totalFrames;
lspeed = (rspeed = 4);
}
onClipEvent (enterFrame) {
if (_y > 500) {
_root.gotoAndStop(2);
_root.shield = _root.shield - 25;
_x = old_x;
_y = old_y;
_root.dead = false;
}
c = _root._currentFrame;
_root.frame = c;
_root.v.world.gotoAndStop(c);
if ((c == tf) and (_x > 500)) {
rspeed = 0;
} else {
rspeed = 4;
}
if ((c == 1) and (_x < 50)) {
lspeed = 0;
} else {
lspeed = 4;
}
if (this._x >= 540) {
this._x = 20;
change_room("right");
} else if (this._x <= 20) {
this._x = 55;
change_room("left");
}
kl = Key.isDown(37);
kr = Key.isDown(39);
if (kl) {
this.gotoAndStop("right");
_xscale = -200;
this._x = this._x - lspeed;
} else if (kr) {
this._x = this._x + rspeed;
this.gotoAndStop("right");
_xscale = 200;
}
if ((!kr) and (!kl)) {
gotoAndStop (1);
}
if (_root.dead) {
gotoAndPlay (3);
jumping = true;
}
if (Key.isDown(38) and (!jumping)) {
vel_y = 10;
jumping = true;
}
if (jumping) {
vel_y = vel_y - 1;
if (vel_y <= -10) {
vel_y = -10;
jumping = false;
}
this._y = this._y - vel_y;
}
if (!_root.dead) {
if (_root.v.world.hitTest(this._x, this._y + step, true)) {
step = 20;
vel_y = 0;
jumping = false;
hit = true;
} else {
hit = false;
}
}
if (!hit) {
jumping = true;
step = 25;
}
}
Instance of Symbol 55 MovieClip "container" in Frame 2
onClipEvent (enterFrame) {
_root.shieldbar._xscale = _root.shield;
if (_root.shield <= 0) {
_root.gotoAndStop("gata");
}
}
Instance of Symbol 65 MovieClip "present2" in Frame 2
onClipEvent (load) {
oldx = _x;
speed = 10;
go = true;
}
onClipEvent (enterFrame) {
rn = _root.firePower;
_x = (_x + speed);
if (_x > 500) {
_x = oldx;
}
}
onClipEvent (load) {
goal = _root.car;
started = false;
radius = _height / 2;
}
onClipEvent (enterFrame) {
if (this.hitTest(goal) && (!goal.jumping)) {
_visible = false;
if (!started) {
_root.ding.start(0, 1);
started = true;
_root.s = _root.s + points;
}
this.removeMovieClip();
}
if (_x < (_root.movieWidth + radius)) {
_x = (_x - _root.objects_speed);
} else {
this.removeMovieClip();
}
}
Instance of Symbol 20 MovieClip "v" in Frame 3
onClipEvent (load) {
oldx = _x;
speed = 15;
go = true;
}
onClipEvent (enterFrame) {
rn = _root.firePower;
_x = (_x + speed);
if (_x > 500) {
_x = oldx;
}
}
Instance of Symbol 55 MovieClip "container" in Frame 3
onClipEvent (enterFrame) {
_root.shieldbar._xscale = _root.shield;
if (_root.shield <= 0) {
_root.gotoAndStop("gata");
}
}
Instance of Symbol 65 MovieClip "present" in Frame 3
onClipEvent (load) {
oldx = _x;
speed = 15;
go = true;
}
onClipEvent (enterFrame) {
rn = _root.firePower;
_x = (_x + speed);
if (_x > 500) {
_x = oldx;
}
}
onClipEvent (load) {
goal = _root.car;
started = false;
radius = _height / 2;
}
onClipEvent (enterFrame) {
if (this.hitTest(goal) && (!goal.jumping)) {
_visible = false;
if (!started) {
_root.ding.start(0, 1);
started = true;
_root.s = _root.s + points;
}
this.removeMovieClip();
}
if (_x < (_root.movieWidth + radius)) {
_x = (_x - _root.objects_speed);
} else {
this.removeMovieClip();
}
}
Instance of Symbol 48 MovieClip "car" in Frame 3
onClipEvent (load) {
function change_room(dir) {
if (dir == "right") {
_root.gotoAndStop(_root._currentframe + 1);
} else if (dir == "left") {
_root.gotoAndStop(_root._currentframe - 1);
}
}
vel_y = 0;
step = 25;
old_y = _y;
old_x = _x;
tf = _root._totalFrames;
lspeed = (rspeed = 4);
}
onClipEvent (enterFrame) {
if (_y > 500) {
_root.gotoAndStop(2);
_root.shield = _root.shield - 25;
_x = old_x;
_y = old_y;
_root.dead = false;
}
c = _root._currentFrame;
_root.frame = c;
_root.v.world.gotoAndStop(c);
if ((c == tf) and (_x > 500)) {
rspeed = 0;
} else {
rspeed = 4;
}
if ((c == 1) and (_x < 50)) {
lspeed = 0;
} else {
lspeed = 4;
}
if (this._x >= 540) {
this._x = 20;
change_room("right");
} else if (this._x <= 20) {
this._x = 535;
change_room("left");
}
kl = Key.isDown(37);
kr = Key.isDown(39);
if (kl) {
this.gotoAndStop("right");
_xscale = -200;
this._x = this._x - lspeed;
} else if (kr) {
this._x = this._x + rspeed;
this.gotoAndStop("right");
_xscale = 200;
}
if ((!kr) and (!kl)) {
gotoAndStop (1);
}
if (_root.dead) {
gotoAndPlay (3);
jumping = true;
}
if (Key.isDown(38) and (!jumping)) {
vel_y = 10;
jumping = true;
}
if (jumping) {
vel_y = vel_y - 1;
if (vel_y <= -10) {
vel_y = -10;
jumping = false;
}
this._y = this._y - vel_y;
}
if (!_root.dead) {
if (_root.v.world.hitTest(this._x, this._y + step, true)) {
step = 20;
vel_y = 0;
jumping = false;
hit = true;
} else {
hit = false;
}
}
if (!hit) {
jumping = true;
step = 25;
}
}
Instance of Symbol 20 MovieClip "v" in Frame 4
onClipEvent (load) {
oldx = _x;
speed = 20;
go = true;
}
onClipEvent (enterFrame) {
rn = _root.firePower;
_x = (_x + speed);
if (_x > 500) {
_x = oldx;
}
}
Instance of Symbol 65 MovieClip "presen" in Frame 4
onClipEvent (load) {
oldx = _x;
speed = 20;
go = true;
}
onClipEvent (enterFrame) {
rn = _root.firePower;
_x = (_x + speed);
if (_x > 500) {
_x = oldx;
}
}
onClipEvent (load) {
goal = _root.car;
started = false;
radius = _height / 2;
}
onClipEvent (enterFrame) {
if (this.hitTest(goal) && (!goal.jumping)) {
_visible = false;
if (!started) {
_root.ding.start(0, 1);
started = true;
_root.s = _root.s + points;
}
this.removeMovieClip();
}
if (_x < (_root.movieWidth + radius)) {
_x = (_x - _root.objects_speed);
} else {
this.removeMovieClip();
}
}
Instance of Symbol 20 MovieClip "v" in Frame 5
onClipEvent (load) {
oldx = _x;
speed = 30;
go = true;
}
onClipEvent (enterFrame) {
rn = _root.firePower;
_x = (_x + speed);
if (_x > 500) {
_x = oldx;
}
}
Instance of Symbol 65 MovieClip "present2" in Frame 5
onClipEvent (load) {
oldx = _x;
speed = -10;
go = true;
}
onClipEvent (enterFrame) {
rn = _root.firePower;
_x = (_x + speed);
if (_x < 0) {
_x = oldx;
}
}
onClipEvent (load) {
goal = _root.car;
started = false;
radius = _height / 2;
}
onClipEvent (enterFrame) {
if (this.hitTest(goal) && (!goal.jumping)) {
_visible = false;
if (!started) {
_root.ding.start(0, 1);
started = true;
_root.s = _root.s + points;
}
this.removeMovieClip();
}
if (_x < (_root.movieWidth + radius)) {
_x = (_x - _root.objects_speed);
} else {
this.removeMovieClip();
}
}
Instance of Symbol 65 MovieClip "present2" in Frame 5
onClipEvent (load) {
oldx = _x;
speed = 30;
go = true;
}
onClipEvent (enterFrame) {
rn = _root.firePower;
_x = (_x + speed);
if (_x > 500) {
_x = oldx;
}
}
onClipEvent (load) {
goal = _root.car;
started = false;
radius = _height / 2;
}
onClipEvent (enterFrame) {
if (this.hitTest(goal) && (!goal.jumping)) {
_visible = false;
if (!started) {
_root.ding.start(0, 1);
started = true;
_root.s = _root.s + points;
}
this.removeMovieClip();
}
if (_x < (_root.movieWidth + radius)) {
_x = (_x - _root.objects_speed);
} else {
this.removeMovieClip();
}
}
Symbol 4 Button
on (release) {
gotoAndPlay (2);
_root.shield = 100;
_root.s = 0;
}
Symbol 29 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 15
gotoAndPlay (1);
Symbol 48 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 1
stop();
points = 20;
Symbol 65 MovieClip Frame 2
stop();
points = 30;
Symbol 65 MovieClip Frame 3
stop();
points = 50;
Symbol 91 Button
on (release) {
gotoAndPlay (1);
_root.shield = 100;
_root.s = 0;
}