Frame 1
function \u0004\u0005() {
Set("\x03", (1044 % 511) * true);
return(\x03);
}
var \x01 = (515 + \x04\x05());
// swfAction0x03 // Unknown action
Instance of Symbol 70 MovieClip in Frame 1
on (release) {
getURL ("http://www.gamescop.com", "_blank");
}
Frame 2
function \u0004\u0005() {
Set("\x03", (2746 % 511) * true);
return(\x03);
}
var \x01 = (9 + \x04\x05());
// swfAction0x03 // Unknown action
Instance of Symbol 87 MovieClip in Frame 2
on (release) {
getURL ("http://www.gamescop.com", "_blank");
}
Frame 3
function \u0004\u0005() {
Set("\x03", (528 % 511) * true);
return(\x03);
}
var \x01 = (938 + \x04\x05());
// swfAction0x03 // Unknown action
Frame 4
stopAllSounds();
stop();
gotoAndStop ("menu");
Frame 5
function \u0004\u0005() {
Set("\x03", (441 % 511) * true);
return(\x03);
}
var \x01 = (-171 + \x04\x05());
// swfAction0x03 // Unknown action
Frame 7
function \u0004\u0005() {
Set("\x03", (309 % 511) * true);
return(\x03);
}
var \x01 = (-171 + \x04\x05());
// swfAction0x03 // Unknown action
Frame 9
function \u0004\u0005() {
Set("\x03", (2361 % 511) * true);
return(\x03);
}
var \x01 = (269 + \x04\x05());
// swfAction0x03 // Unknown action
Instance of Symbol 489 MovieClip "game" in Frame 9
onClipEvent (load) {
function \u0004\u0005() {
Set("\x03", (1540 % 511) * true);
return(\x03);
}
var \x01 = (987 + \x04\x05());
// swfAction0x03 // Unknown action
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 531 MovieClip "hud" in Frame 9
onClipEvent (load) {
timer = 0;
timesLogged = 0;
totalSpeed = 0;
averageSpeed = 0;
fader.swapDepths(3000);
}
onClipEvent (enterFrame) {
!!!ERROR
Frame 14
!!!ERROR
Frame 21
_root.levelPlay = "story2";
stopAllSounds();
stop();
Frame 22
!!!ERROR
Instance of Symbol 577 MovieClip "game" in Frame 22
onClipEvent (load) {
!!!ERROR
Instance of Symbol 531 MovieClip "hud" in Frame 22
onClipEvent (load) {
timer = 0;
timesLogged = 0;
totalSpeed = 0;
averageSpeed = 0;
fader.swapDepths(3000);
}
onClipEvent (enterFrame) {
!!!ERROR
Frame 28
!!!ERROR
Frame 34
stopAllSounds();
stop();
Frame 35
!!!ERROR
Instance of Symbol 595 MovieClip "game" in Frame 35
onClipEvent (load) {
!!!ERROR
Instance of Symbol 531 MovieClip "hud" in Frame 35
onClipEvent (load) {
timer = 0;
timesLogged = 0;
totalSpeed = 0;
averageSpeed = 0;
fader.swapDepths(3000);
}
onClipEvent (enterFrame) {
!!!ERROR
Frame 41
!!!ERROR
Frame 44
_root.levelPlay = "story4";
stopAllSounds();
stop();
Frame 45
!!!ERROR
Instance of Symbol 614 MovieClip "game" in Frame 45
onClipEvent (load) {
!!!ERROR
Instance of Symbol 531 MovieClip "hud" in Frame 45
onClipEvent (load) {
timer = 0;
timesLogged = 0;
totalSpeed = 0;
averageSpeed = 0;
fader.swapDepths(3000);
}
onClipEvent (enterFrame) {
!!!ERROR
Frame 51
!!!ERROR
Frame 55
_root.levelPlay = "story5";
stopAllSounds();
stop();
Frame 56
!!!ERROR
Instance of Symbol 629 MovieClip "game" in Frame 56
onClipEvent (load) {
!!!ERROR
Instance of Symbol 531 MovieClip "hud" in Frame 56
onClipEvent (load) {
timer = 0;
timesLogged = 0;
totalSpeed = 0;
averageSpeed = 0;
fader.swapDepths(3000);
}
onClipEvent (enterFrame) {
!!!ERROR
Frame 64
!!!ERROR
Frame 81
stop();
Frame 98
!!!ERROR
Frame 99
!!!ERROR
Symbol 25 MovieClip Frame 59
stop();
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 100
stop();
Symbol 70 MovieClip Frame 1
gotoAndStop (130);
Symbol 70 MovieClip Frame 130
stop();
Symbol 651 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
!!!ERROR
Symbol 652 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
!!!ERROR
Symbol 653 MovieClip [__Packages.mx.transitions.Tween] Frame 0
!!!ERROR
Symbol 654 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
!!!ERROR
Symbol 87 MovieClip Frame 130
stop();
Symbol 94 MovieClip [bullet] Frame 1
!!!ERROR
Symbol 105 MovieClip Frame 1
stop();
Symbol 199 Button
on (rollOver) {
_root.btnsnd.start();
}
on (release) {
!!!ERROR
Symbol 200 Button
on (release) {
!!!ERROR
Symbol 201 Button
on (release) {
_root.moregames();
}
on (rollOver) {
_root.btnsnd.start();
}
Symbol 202 Button
on (release) {
_root.gotoAndStop("help");
}
on (rollOver) {
_root.btnsnd.start();
}
Instance of Symbol 70 MovieClip in Symbol 204 MovieClip Frame 1
on (release) {
getURL ("http://www.gamescop.com", "_blank");
}
Symbol 204 MovieClip Frame 60
stop();
Symbol 212 Button
on (release) {
!!!ERROR
Symbol 214 Button
on (release) {
!!!ERROR
Symbol 215 MovieClip Frame 1
!!!ERROR
Symbol 215 MovieClip Frame 2
stop();
_root.btnsnd.setVolume(0);
trace("offffffff");
Symbol 319 Button
on (release) {
_root.moregames();
}
on (rollOver) {
_root.btnsnd.start();
}
Symbol 320 Button
on (release) {
!!!ERROR
Instance of Symbol 70 MovieClip in Symbol 322 MovieClip Frame 1
on (release) {
getURL ("http://www.gamescop.com", "_blank");
}
Symbol 322 MovieClip Frame 59
stop();
Symbol 355 Button
on (release) {
_root.moregames();
}
on (rollOver) {
_root.btnsnd.start();
}
Symbol 356 Button
on (rollOver) {
_root.btnsnd.start();
}
on (release) {
_root.gotoandplaylevel();
}
Instance of Symbol 70 MovieClip in Symbol 357 MovieClip Frame 1
on (release) {
getURL ("http://www.gamescop.com", "_blank");
}
Symbol 357 MovieClip Frame 78
stop();
Instance of Symbol 375 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
origY = _y;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 377 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
origY = _y;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 375 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
origY = _y;
}
onClipEvent (enterFrame) {
!!!ERROR
Symbol 386 MovieClip Frame 1
stop();
Symbol 391 MovieClip Frame 1
stop();
Symbol 391 MovieClip Frame 2
!!!ERROR
Symbol 391 MovieClip Frame 3
Symbol 391 MovieClip Frame 20
!!!ERROR
Symbol 391 MovieClip Frame 28
!!!ERROR
Symbol 391 MovieClip Frame 215
!!!ERROR
Symbol 416 MovieClip Frame 1
stop();
Instance of Symbol 386 MovieClip "damage1" in Symbol 416 MovieClip Frame 1
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 391 MovieClip "hhh" in Symbol 416 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 386 MovieClip "damage3" in Symbol 416 MovieClip Frame 3
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 386 MovieClip "damage4" in Symbol 416 MovieClip Frame 4
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 386 MovieClip "damage6" in Symbol 416 MovieClip Frame 6
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 386 MovieClip "damage7" in Symbol 416 MovieClip Frame 7
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 386 MovieClip "damage8" in Symbol 416 MovieClip Frame 8
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 386 MovieClip "damage9" in Symbol 416 MovieClip Frame 9
onClipEvent (enterFrame) {
!!!ERROR
Symbol 417 MovieClip Frame 1
onEnterFrame = function () {
if (targetCar == true) {
ene.gotoAndStop(9);
trace("nawaz" + _name);
}
};
Instance of Symbol 416 MovieClip "ene" in Symbol 417 MovieClip Frame 1
onClipEvent (load) {
_root.myname = this._parent._name;
gotoAndStop(1 + random(8));
}
Symbol 424 MovieClip Frame 1
stop();
Symbol 424 MovieClip Frame 10
gotoAndPlay (1);
Symbol 424 MovieClip Frame 20
gotoAndPlay ("loop");
Symbol 427 MovieClip Frame 1
!!!ERROR
Instance of Symbol 426 MovieClip "tracker" in Symbol 427 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Symbol 430 MovieClip Frame 1
stop();
Symbol 437 MovieClip Frame 1
stop();
Symbol 438 MovieClip Frame 1
!!!ERROR
Instance of Symbol 437 MovieClip in Symbol 438 MovieClip Frame 1
onClipEvent (enterFrame) {
!!!ERROR
Symbol 438 MovieClip Frame 2
stop();
Symbol 438 MovieClip Frame 3
!!!ERROR
Symbol 438 MovieClip Frame 4
gotoAndStop (1);
Symbol 438 MovieClip Frame 5
stop();
Instance of Symbol 442 MovieClip "trail" in Symbol 443 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Symbol 447 MovieClip Frame 16
stop();
Symbol 451 MovieClip Frame 21
stop();
Instance of Symbol 443 MovieClip "spark" in Symbol 461 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 445 MovieClip "skid" in Symbol 461 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 447 MovieClip "paint" in Symbol 461 MovieClip Frame 1
onClipEvent (load) {
var xspeed = ((-200 + random(400)) / 100);
var yspeed = random(5);
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 451 MovieClip "smokekk" in Symbol 461 MovieClip Frame 1
onClipEvent (load) {
var xspeed = ((-200 + random(400)) / 100);
var yspeed = random(5);
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 451 MovieClip "smoke2kk" in Symbol 461 MovieClip Frame 1
onClipEvent (load) {
var xspeed = ((-200 + random(400)) / 100);
var yspeed = random(5);
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 460 MovieClip "tire" in Symbol 461 MovieClip Frame 1
onClipEvent (load) {
var xspeed = ((-200 + random(400)) / 20);
var yspeed = (-20 + random(40));
gotoAndStop(1 + random(8));
}
onClipEvent (enterFrame) {
xspeed = xspeed * 0.94;
yspeed = yspeed * 0.94;
_x = (_x + xspeed);
_y = (_y + (yspeed + _root.game.player.yspeed));
_rotation = (_rotation + xspeed);
if (_name != "tire") {
if ((_y > 400) || (_y < -1500)) {
removeMovieClip(this);
}
}
}
Symbol 471 MovieClip Frame 1
!!!ERROR
Symbol 471 MovieClip Frame 14
if (_name != "explosion") {
removeMovieClip(this);
}
Symbol 474 MovieClip Frame 1
!!!ERROR
Symbol 474 MovieClip Frame 32
if (_name != "explosion") {
removeMovieClip(this);
}
Symbol 484 MovieClip Frame 1
stop();
Symbol 484 MovieClip Frame 2
_root.bonussnd.start();
play();
Symbol 489 MovieClip Frame 1
!!!ERROR
Instance of Symbol 363 MovieClip "track" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 369 MovieClip "lane1" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 35;
targetX = _x;
id = 1;
}
Instance of Symbol 369 MovieClip "lane2" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 30;
targetX = _x;
id = 2;
}
Instance of Symbol 369 MovieClip "lane3" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 25;
targetX = _x;
id = 3;
}
Instance of Symbol 369 MovieClip "lane4" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 20;
targetX = _x;
id = 4;
}
Instance of Symbol 371 MovieClip "slower" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 378 MovieClip "walls" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
mass = 1000;
}
onClipEvent (enterFrame) {
xspeed = 0;
yspeed = 0;
}
Instance of Symbol 417 MovieClip "car" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 424 MovieClip "targetShow" in Symbol 489 MovieClip Frame 1
onClipEvent (enterFrame) {
this.swapDepths(501);
}
Instance of Symbol 429 MovieClip in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 430 MovieClip "prop" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
startY = _y;
yspeed = 0;
xspeed = 0;
hitTimes = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 438 MovieClip "player" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
_root.reloadComplete = true;
maxSpeed = 50;
yspeed = 50;
xspeed = 0;
mass = ((_height + _width) / 33) * 5;
maxLife = 400;
life = maxLife;
slowTimer = 0;
origWidth = _width;
this.swapDepths(2);
yspeed = 60;
exploded = false;
smokeTime = 0;
hitTime = 0;
skidPlaying = false;
rev = true;
revLength = 0;
explodeTimer = 10;
colorArr = ["0x339999", "0x99CC66", "0x993333", "0xCCCC66"];
}
onClipEvent (enterFrame) {
if (_root.hud.speed >= 200) {
skidActive = true;
}
if (Key.isDown(40)) {
}
if (skidActive == true) {
if (Key.isDown(40)) {
} else {
skidActive = false;
}
}
if ((skidActive == true) && (_root.hud.speed <= 30)) {
_root.skidDone = true;
}
if (_root.game.cars.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) && (yspeed > 30)) {
hitTime = hitTime + 1;
} else if (hitTime > 0) {
hitTime = 0;
} else {
hitTime = 0;
}
if (yspeed < 0) {
yspeed = yspeed - (yspeed / 2);
}
if ((yspeed / 5) < 3.5) {
var turnSpeed = (yspeed / 5);
} else {
turnSpeed = 3.5;
}
if ((_root.gocar && (yspeed < maxSpeed)) && (life > 0)) {
}
if ((Key.isDown(38) && (yspeed < maxSpeed)) && (life > 0)) {
yspeed = yspeed + 0.8;
if (_root.game._xscale < 200) {
trace("this is if condition..");
_root.game._xscale = _root.game._xscale - 1;
_root.game._yscale = _root.game._yscale - 1;
}
} else if (_root.game._xscale > 10) {
trace("this is else condition...");
_root.game._xscale = _root.game._xscale + 2;
_root.game._yscale = _root.game._yscale + 2;
}
if ((Key.isDown(32) && (yspeed > 0)) && (life > 0)) {
_root.pressspace = true;
} else {
if (turnSpeed > 3.5) {
turnSpeed = turnSpeed - 0.1;
}
skidPlaying = false;
skidSound.stop();
}
if (Key.isDown(39) && (life > 0)) {
xspeed = xspeed + turnSpeed;
}
if (Key.isDown(37) && (life > 0)) {
xspeed = xspeed - turnSpeed;
}
_rotation = (xspeed / 2);
xspeed = xspeed * 0.8;
_x = (_x + xspeed);
yspeed = yspeed * 0.99;
showx = _x;
showy = _y;
if (life < 0) {
explodeTimer = explodeTimer + 1;
}
if ((life < 0) && (explodeTimer > 20)) {
explodeTimer = 0;
exploded = true;
_root.id = _root.id + 1;
_root.game.expTargetX = _x;
_root.game.expTargetY = _y;
_root.game.expSize = _height;
_root.game.expSize = _height;
duplicateMovieClip (_root.game.explosion, "explosion" + _root.id, _root.id + 1);
_root.game["explosion" + _root.id]._x = _x;
_root.game["explosion" + _root.id]._y = _y;
_root.game["explosion" + _root.id]._height = _root.game.expSize / 3;
_root.game["explosion" + _root.id]._width = _root.game.expSize / 3;
_root.game["explosion" + _root.id].sizeE = _root.game.expSize * 2;
}
if (life < 40) {
smokeTime = smokeTime + (yspeed / 5);
if (smokeTime > 5) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.smoke, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = _x;
_root.game.effects["spark" + _root.game.effects.id]._y = _y - (_height / 2);
_root.game.effects["spark" + _root.game.effects.id]._height = _root.game.effects["spark" + _root.game.effects.id]._height + yspeed;
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = yspeed;
_root.game.effects.id = _root.game.effects.id + 1;
smokeTime = 0;
}
}
var target = _parent.walls;
if ((target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 3)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 3)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
if (yspeed > 0) {
life = life - yspeed;
} else {
life = life + yspeed;
}
yspeed = (-yspeed) * 1;
}
if (target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) && (yspeed + _root.game.player.yspeed)) {
if (yspeed > 0) {
life = life - yspeed;
} else {
life = life + yspeed;
}
_y = (_y - yspeed);
yspeed = (-yspeed) * 1;
}
if (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) && (xspeed < 0)) {
_x = (_x - xspeed);
xspeed = (-xspeed) * 0.2;
var sparkNo = ((yspeed / 5) - 2);
life = life - (sparkNo / 5);
i = 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.spark, "spark" + _root.game.effects.id, _root.game.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
i = 0;
while (i < (sparkNo / 4)) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.paint, "spark" + _root.game.effects.id, _root.game.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = yspeed * 1.5;
i = i + 1;
}
}
if (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) && (xspeed > 0)) {
_x = (_x - xspeed);
xspeed = (-xspeed) * 0.2;
var sparkNo = ((yspeed / 5) - 2);
life = life - (sparkNo / 5);
i = 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.spark, "spark" + _root.game.effects.id, _parent.effects.id + 1);
var pColor = new Color(_root.game.effects["spark" + _root.game.effects.id]);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
i = 0;
while (i < (sparkNo / 4)) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.paint, "spark" + _root.game.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = yspeed * 1.5;
i = i + 1;
}
}
if (_root.game.slower.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
if ((_x * (1 / (100 / _root.game._xscale))) < 0) {
_root.pavementTime = _root.pavementTime + 1;
}
if (slowTimer < 20) {
slowTimer = slowTimer + 1;
} else {
yspeed = yspeed * 0.98;
}
} else if (slowTimer > 0) {
slowTimer = slowTimer - 1;
}
if (_root.game.sound.type == 2) {
var dist = Math.sqrt(((_x - _root.game.sound._x) * (_x - _root.game.sound._x)) + ((_y - _root.game.sound._y) * (_y - _root.game.sound._y)));
if (dist < 300) {
interestX = _root.game.sound._x;
interestY = _root.game.sound._y;
interestLevel = interestLevel + 50;
}
if (dist < (_root.game.sound.size * 2)) {
life = life - (((_root.game.sound.size * 2) - dist) / 50);
var adjside = (_root.game.sound._x - _x);
var oppside = (-1 * (_root.game.sound._y - _y));
var angle = Math.atan2(oppside, adjside);
angle = (angle / 3.141593) * 180;
var throwRot = (-1 * angle);
xspeed = xspeed - (Math.cos(throwRot * 0.01745329) * (((_root.game.sound.size * 2) - dist) / (5 * mass)));
yspeed = yspeed + (Math.sin(throwRot * 0.01745329) * (((_root.game.sound.size * 2) - dist) / (5 * mass)));
}
}
}
Instance of Symbol 440 MovieClip "gun" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
targetC = _parent.targetShow;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 461 MovieClip "effects" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
id = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 474 MovieClip "explosion" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 461 MovieClip "effects2" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 476 MovieClip in Symbol 489 MovieClip Frame 1
onClipEvent (enterFrame) {
this.swapDepths(1001);
}
Instance of Symbol 488 MovieClip in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
targetC = _parent.targetShow;
}
onClipEvent (enterFrame) {
!!!ERROR
Symbol 490 MovieClip Frame 1
stop();
Symbol 490 MovieClip Frame 11
gotoAndPlay ("start");
Instance of Symbol 492 MovieClip "targetDisplay" in Symbol 531 MovieClip Frame 1
onClipEvent (load) {
timeSoFar = 1200;
secs = 0;
mins = 8;
targetDist = 5;
told = false;
pDist = 0;
_parent.aheadMc._visible = false;
}
onClipEvent (enterFrame) {
if (((targetDist - Math.round(_root.distTrav)) < 1) && (told == false)) {
if (_root.levelPlay == "story4") {
if (_root.totalTargetCar < 6) {
_root.nextCar = true;
told = true;
}
} else {
_root.nextCar = true;
told = true;
}
}
if (told == false) {
_alpha = 100;
}
pDist = targetDist - Math.round(_root.distTrav);
dist = pDist + "Km";
timeSoFar = timeSoFar + 1;
if (Math.round(timeSoFar / 25) < 10) {
secs = "0" + Math.round(timeSoFar / 25);
} else {
secs = Math.round(timeSoFar / 25);
}
if (secs == 60) {
mins = mins + 1;
timeSoFar = 0;
}
time = (("8:5" + mins) + ".") + secs;
}
Instance of Symbol 70 MovieClip in Symbol 531 MovieClip Frame 1
on (release) {
getURL ("http://www.gamescop.com", "_blank");
}
Symbol 535 MovieClip Frame 1
Symbol 535 MovieClip Frame 25
!!!ERROR
Symbol 546 MovieClip Frame 2
stop();
Symbol 552 Button
on (release) {
_root.gotoandplaylevel();
}
on (rollOver) {
_root.btnsnd.start();
}
Instance of Symbol 70 MovieClip in Symbol 553 MovieClip Frame 1
on (release) {
getURL ("http://www.gamescop.com", "_blank");
}
Symbol 553 MovieClip Frame 58
stop();
Symbol 561 Button
on (release) {
gotoandplaylevel();
}
Instance of Symbol 572 MovieClip in Symbol 575 MovieClip Frame 1
onClipEvent (load) {
origY = _y;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 574 MovieClip in Symbol 575 MovieClip Frame 1
onClipEvent (load) {
origY = _y;
}
onClipEvent (enterFrame) {
!!!ERROR
Symbol 576 MovieClip Frame 1
stop();
Symbol 576 MovieClip Frame 10
gotoAndPlay (1);
Symbol 576 MovieClip Frame 20
gotoAndPlay ("loop");
Symbol 577 MovieClip Frame 1
!!!ERROR
Instance of Symbol 568 MovieClip "track" in Symbol 577 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 488 MovieClip in Symbol 577 MovieClip Frame 1
onClipEvent (load) {
targetC = _parent.targetShow;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 369 MovieClip "lane1" in Symbol 577 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 35;
targetX = _x;
id = 1;
}
Instance of Symbol 369 MovieClip "lane2" in Symbol 577 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 30;
targetX = _x;
id = 2;
}
Instance of Symbol 369 MovieClip "lane3" in Symbol 577 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 25;
targetX = _x;
id = 3;
}
Instance of Symbol 369 MovieClip "lane4" in Symbol 577 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 20;
targetX = _x;
id = 4;
}
Instance of Symbol 371 MovieClip "slower" in Symbol 577 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 575 MovieClip "walls" in Symbol 577 MovieClip Frame 1
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
mass = 1000;
}
onClipEvent (enterFrame) {
xspeed = 0;
yspeed = 0;
}
Instance of Symbol 417 MovieClip "car" in Symbol 577 MovieClip Frame 1
onClipEvent (load) {
this.nofhittimes = 0;
var lane;
var laneId;
var truckLikely = (1 + random(10));
if (truckLikely == 5) {
gotoAndStop(1 + random(4));
} else {
gotoAndStop(1 + random(3));
}
startY = _y;
yspeed = 0;
xspeed = 0;
hitTimes = 0;
spin = 0;
sironBool = false;
targetX = lane.targetX;
if (_x > 0) {
up = false;
_rotation = (_rotation + 180);
yspeed = -lane.maxSpeed;
maxSpeed = lane.maxSpeed;
} else {
up = true;
_rotation = 0;
yspeed = lane.maxSpeed;
maxSpeed = lane.maxSpeed;
}
life = 100;
target = _parent.player;
mass = (_height + _width) / 33;
exploded = false;
timerSmoke = 0;
sparkNo = 0;
var targetCar;
messageShown = false;
engineStarted = false;
playerHitted = false;
sDiff = 0;
deadCar = false;
_root.targetcarinload = true;
}
onClipEvent (enterFrame) {
function hitSounds() {
var _local2 = 1 + random(3);
hitSound = new Sound(this);
if (_local2 == 1) {
hitSound.attachSound("hit1");
} else if (_local2 == 2) {
hitSound.attachSound("hit2");
} else {
hitSound.attachSound("hit3");
}
hitSound.setVolume(sparkNo * 5);
hitSound.start(0, 0);
}
if (_root.targetsLeft <= 0) {
}
if (targetCar == true) {
_root.game.targetShow._x = _x;
_root.game.targetShow._y = _y;
_root.game.targetShow.play();
lane = _root.game.lane1;
targetX = lane.targetX;
maxSpeed = lane.maxSpeed;
if (!sironBool) {
sironSound = new Sound(this);
sironSound.attachSound("siron");
sironSound.start(0, 100);
sironBool = true;
}
sironSound.setVolume(100);
if ((life < 1) && (messageShown == false)) {
_root.score = _root.score + 1000;
if (_root.targetsLeft == 0) {
_root.extraCar = true;
}
sironSound.stop();
_root.targetsLeft = _root.targetsLeft - 1;
messageShown = true;
targetCar = false;
_root.game.targetShow._x = -2000;
deadCar = true;
}
} else if ((life < 1) && (deadCar != true)) {
_root.carsBlownUp = _root.carsBlownUp + 1;
if (_currentframe == 4) {
_root.trucksKilled = _root.trucksKilled + 1;
}
deadCar = true;
}
if (_name != "car") {
_parent.showMc._x = _x;
_parent.showMc._y = passY;
i = 0;
while (i < (_root.maxCars + 2)) {
if (_root.game["car" + i]._x != undefined) {
bullettarget = _root.game["car" + i];
if (_root.game["car" + i] != this) {
target = _root.game["car" + i];
} else {
target = _parent.player;
}
if (bullettarget.hitTest(_root.bulletmc)) {
bullettarget.ene.hhh.gotoAndStop(2);
_root.reloadComplete = true;
removeMovieClip(_root.bulletmc);
} else if (_root.game.car.hitTest(_root.bulletmc)) {
this.ene.hhh.gotoAndStop(2);
_root.reloadComplete = true;
removeMovieClip(_root.bulletmc);
}
var adjside = (target._x - _x);
var oppside = (-1 * (target._y - _y));
var dist = Math.sqrt((adjside * adjside) + (oppside * oppside));
var distMax = (_height + (target._height / 2));
if (dist < distMax) {
if ((target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
_root.cardashsnd.start();
xspeed = xspeed + (((_x - target._x) / 40) + (target.xspeed / 5));
if ((target._x > (_x - ((_width / 2) + (target._width / 2.2)))) && (target._x < (_x + ((_width / 2) + (target._width / 2.2))))) {
var s1 = yspeed;
var s2 = target.yspeed;
var sDiff = 0;
if (((s1 < 0) && (s2 >= 0)) || ((s2 < 0) && (s1 >= 0))) {
if (s1 < 0) {
var sDiff = (s2 - s1);
} else {
var sDiff = (s1 - s2);
}
} else if ((s1 >= 0) && (s2 >= 0)) {
if (s1 > s2) {
var sDiff = (s1 - s2);
} else {
var sDiff = (s2 - s1);
}
} else {
var sDiff = (s1 - s2);
}
if (sDiff < 0) {
sDiff = -sDiff;
}
if (sDiff > 6) {
sDiff = sDiff - 5;
life = life - (((sDiff * 12) / mass) / 2);
target.life = target.life - (((sDiff * 12) / mass) / 4);
sparkNo = sDiff;
}
if (sDiff > 3) {
hitSounds();
}
if (((target == _parent.player) && (targetCar == false)) && (life > 1)) {
_parent.player.hitTime = 0;
playerHitted = true;
} else if ((target != _parent.player) && (targetCar == false)) {
playerHitted = false;
}
i == 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height / 2);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + 5;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
maxSpeed = maxSpeed - random(2);
var v1 = yspeed;
var m1 = mass;
var v2 = target.yspeed;
var m2 = target.mass;
var newV1 = ((((m1 - m2) / (m1 + m2)) * v1) + (((2 * m2) / (m1 + m2)) * v2));
var newV2 = ((((2 * m1) / (m1 + m2)) * v1) - (((m1 - m2) / (m1 + m2)) * v2));
if ((_y > target._y) && (newV1 < v1)) {
yspeed = newV1;
target.yspeed = newV2;
}
}
}
if ((target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
_root.cardashsnd.start();
xspeed = xspeed + (((_x - target._x) / 40) + (target.xspeed / 5));
if ((target._x > (_x - ((_width / 2) + (target._width / 2)))) && (target._x < (_x + ((_width / 2) + (target._width / 2))))) {
var s1 = yspeed;
var s2 = target.yspeed;
var sDiff = 0;
if (((s1 < 0) && (s2 >= 0)) || ((s2 < 0) && (s1 >= 0))) {
if (s1 < 0) {
var sDiff = (s2 - s1);
} else {
var sDiff = (s1 - s2);
}
} else if ((s1 >= 0) && (s2 >= 0)) {
if (s1 > s2) {
var sDiff = (s1 - s2);
} else {
var sDiff = (s2 - s1);
}
} else {
var sDiff = (s1 - s2);
}
if (sDiff < 0) {
sDiff = -sDiff;
}
if (sDiff > 6) {
sDiff = sDiff - 5;
life = life - (((sDiff * 12) / mass) / 2);
target.life = target.life - (((sDiff * 12) / mass) / 4);
sparkNo = sDiff;
}
if (sDiff > 3) {
hitSounds();
}
if (((target == _parent.player) && (targetCar == false)) && (life > 1)) {
_parent.player.hitTime = 0;
playerHitted = true;
} else if ((target != _parent.player) && (targetCar == false)) {
playerHitted = false;
}
i == 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y + (_height / 2)) - random(_height / 2);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + 5;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
var v1 = yspeed;
var m1 = mass;
var v2 = target.yspeed;
var m2 = target.mass;
var newV1 = ((((m1 - m2) / (m1 + m2)) * v1) + (((2 * m2) / (m1 + m2)) * v2));
var newV2 = ((((2 * m1) / (m1 + m2)) * v1) - (((m1 - m2) / (m1 + m2)) * v2));
if ((_y < target._y) && (newV1 > v1)) {
yspeed = newV1;
target.yspeed = newV2;
}
maxSpeed = maxSpeed + random(2);
}
}
if (((target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 3)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (height / 3)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
var speedDiff = ((xspeed - target.xspeed) + (yspeed - target.yspeed));
if (speedDiff > 0) {
var sparkNo = speedDiff;
} else {
var sparkNo = (-speedDiff);
}
hitTimes = hitTimes + 1;
var v1 = xspeed;
var m1 = mass;
var v2 = target.xspeed;
var m2 = target.mass;
var newV1 = ((((m1 - m2) / (m1 + m2)) * v1) + (((2 * m2) / (m1 + m2)) * v2));
var newV2 = ((((2 * m1) / (m1 + m2)) * v1) - (((m1 - m2) / (m1 + m2)) * v2));
if (((target == _parent.player) && (targetCar == false)) && (life > 1)) {
_parent.player.hitTime = 0;
playerHitted = true;
} else if ((target != _parent.player) && (targetCar == false)) {
playerHitted = false;
}
if ((_x > target._x) && (newV1 > v1)) {
i = 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
xspeed = newV1;
target.xspeed = newV2;
}
if ((_x < target._x) && (newV1 < v1)) {
i = 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
xspeed = newV1;
target.xspeed = newV2;
}
life = life - (((sparkNo * 12) / mass) / 8);
}
}
}
i = i + 1;
}
var target = _parent.walls;
if ((target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2.4)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2.4)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
if (yspeed > 0) {
var sparkNo = yspeed;
}
if (yspeed < 0) {
var sparkNo = (-yspeed);
}
hitSounds();
i = 0;
while (i < (sparkNo / 4)) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
life = life - (((sparkNo * 12) / mass) / 2);
yspeed = (-yspeed) * 0.5;
}
if ((target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2.2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2.2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
var s1 = yspeed;
var s2 = target.yspeed;
var sDiff = 0;
if (((s1 < 0) && (s2 >= 0)) || ((s2 < 0) && (s1 >= 0))) {
if (s1 < 0) {
sDiff = s2 - s1;
} else {
sDiff = s1 - s2;
}
} else if ((s1 >= 0) && (s2 >= 0)) {
if (s1 > s2) {
sDiff = s1 - s2;
} else {
sDiff = s2 - s1;
}
} else {
sDiff = s1 - s2;
}
if (sDiff < 0) {
sDiff = -sDiff;
}
sparksNo = sDiff;
hitSounds();
i = 0;
while (i < (sparkNo / 4)) {
hitSounds();
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
life = life - (((sparkNo * 12) / mass) / 2);
yspeed = (-yspeed) * 0.5;
}
if (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
_x = (_x - (xspeed / 3));
xspeed = (-xspeed) * 0.2;
if (yspeed > 0) {
var sparkNo = yspeed;
}
if (yspeed < 0) {
var sparkNo = (-yspeed);
}
if ((sparkNo / 4) > 1) {
hitSounds();
}
hitSounds();
i = 0;
while (i < (sparkNo / 4)) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
life = life - (((sparkNo * 12) / mass) / 6);
}
if (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
_x = (_x - (xspeed / 3));
xspeed = (-xspeed) * 0.2;
if (yspeed > 0) {
var sparkNo = yspeed;
}
if (yspeed < 0) {
var sparkNo = (-yspeed);
}
if ((sparkNo / 4) > 1) {
hitSounds();
}
i = 0;
while (i < (sparkNo / 4)) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
life = life - (((sparkNo * 12) / mass) / 6);
}
if (_root.game.sound.type == 2) {
var dist = Math.sqrt(((_x - _root.game.sound._x) * (_x - _root.game.sound._x)) + ((_y - _root.game.sound._y) * (_y - _root.game.sound._y)));
if (dist < 300) {
interestX = _root.game.sound._x;
interestY = _root.game.sound._y;
interestLevel = interestLevel + 50;
}
if (dist < (_root.game.sound.size * 2)) {
life = life - (((_root.game.sound.size * 2) - dist) / 8);
var adjside = (_root.game.sound._x - _x);
var oppside = (-1 * (_root.game.sound._y - _y));
var angle = Math.atan2(oppside, adjside);
angle = (angle / 3.141593) * 180;
var throwRot = (-1 * angle);
xspeed = xspeed - (Math.cos(throwRot * 0.01745329) * (((_root.game.sound.size * 2) - dist) / (10 * mass)));
yspeed = yspeed + (Math.sin(throwRot * 0.01745329) * (((_root.game.sound.size * 2) - dist) / (10 * mass)));
}
}
if ((life < -75) && (exploded == false)) {
trace(_name);
exploded = true;
_root.id = _root.id + 1;
_root.game.expTargetX = _x;
_root.game.expTargetY = _y;
_root.game.expSize = _height;
_root.game.expSize = _height;
trace("exp22");
_root.blastsnd.start();
duplicateMovieClip (_root.game.explosion, "explosion" + _root.id, _root.id + 300);
_root.game["explosion" + _root.id]._x = _x;
_root.game["explosion" + _root.id]._y = _y;
_root.game["explosion" + _root.id]._height = _root.game.expSize / 2.5;
_root.game["explosion" + _root.id]._width = _root.game.expSize / 2.5;
_root.game["explosion" + _root.id].sizeE = _root.game.expSize * 2;
i = 0;
while (i < 4) {
_root.game.effects2.id = _root.game.effects2.id + 1;
duplicateMovieClip (_parent.effects2.tire, "spark" + _parent.effects2.id, _parent.effects2.id + 1);
_root.game.effects2["spark" + _root.game.effects2.id]._x = _x;
_root.game.effects2["spark" + _root.game.effects2.id]._y = _y;
i = i + 1;
}
}
if ((life < 50) && (life > -75)) {
timerSmoke = timerSmoke + 1;
if (timerSmoke > 1) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.smoke, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = _x;
_root.game.effects["spark" + _root.game.effects.id]._y = _y;
_root.game.effects["spark" + _root.game.effects.id]._height = _root.game.effects["spark" + _root.game.effects.id]._height + _root.game.player.yspeed;
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
timerSmoke = 0;
}
}
if (life < -75) {
timerSmoke = timerSmoke + 1;
if (timerSmoke > 1) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.smoke2, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = _x;
_root.game.effects["spark" + _root.game.effects.id]._y = _y;
_root.game.effects["spark" + _root.game.effects.id]._height = _root.game.effects["spark" + _root.game.effects.id]._height + _root.game.player.yspeed;
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
timerSmoke = 0;
}
}
if (life > 0) {
if ((_x + xspeed) < targetX) {
xspeed = xspeed + 0.2;
} else if ((_x < targetX) && (xspeed > 0)) {
xspeed = xspeed * 0.97;
}
if ((_x + xspeed) > targetX) {
xspeed = xspeed - 0.2;
}
if ((_x > targetX) && (xspeed < 0)) {
xspeed = xspeed * 0.97;
}
if (up == false) {
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - (maxSpeed / 30);
}
_rotation = (((xspeed * 3) + spin) + 180);
} else {
var laneChange = random(500);
if (laneChange == 10) {
var chooseLane = (1 + random(3));
lane = _root.game["lane" + chooseLane];
targetX = lane.targetX;
maxSpeed = lane.maxSpeed;
}
if (yspeed < maxSpeed) {
yspeed = yspeed + (maxSpeed / 30);
}
_rotation = ((xspeed * 6) / mass);
}
} else {
_rotation = (_rotation + ((xspeed * 10) / mass));
}
if ((life < 0) && (targetCar != true)) {
if (playerHitted == true) {
playerHitted = false;
}
}
if ((_name != "car") && (targetCar != true)) {
if ((_y > 600) || (_y < -1700)) {
_root.carsAlive = _root.carsAlive - 1;
engineSound.stop();
removeMovieClip(this);
}
}
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
showy = _y;
showx = _x;
_x = (_x + xspeed);
_y = (_y - ((-_parent.player.yspeed) + yspeed));
if (targetCar == true) {
_root.game.targetShow._x = _x;
_root.game.targetShow._y = _y;
var pScore = (10 - Math.ceil(life / 10));
if (pScore < 1) {
pScore = 1;
}
_root.game.targetShow.arrowMc.arrowSubMc.gotoAndStop(pScore);
}
}
}
Instance of Symbol 576 MovieClip "targetShow" in Symbol 577 MovieClip Frame 1
onClipEvent (enterFrame) {
this.swapDepths(501);
}
Instance of Symbol 429 MovieClip in Symbol 577 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 430 MovieClip "prop" in Symbol 577 MovieClip Frame 1
onClipEvent (load) {
startY = _y;
yspeed = 0;
xspeed = 0;
hitTimes = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 438 MovieClip "player" in Symbol 577 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
_root.reloadComplete = true;
maxSpeed = 50;
yspeed = 50;
xspeed = 0;
mass = ((_height + _width) / 33) * 5;
maxLife = 400;
life = maxLife;
slowTimer = 0;
origWidth = _width;
this.swapDepths(2);
yspeed = 60;
exploded = false;
smokeTime = 0;
hitTime = 0;
skidPlaying = false;
rev = true;
revLength = 0;
explodeTimer = 10;
colorArr = ["0x339999", "0x99CC66", "0x993333", "0xCCCC66"];
}
onClipEvent (enterFrame) {
if (_root.hud.speed >= 200) {
skidActive = true;
}
if (Key.isDown(40)) {
}
if (skidActive == true) {
if (Key.isDown(40)) {
} else {
skidActive = false;
}
}
if ((skidActive == true) && (_root.hud.speed <= 30)) {
_root.skidDone = true;
}
if (_root.game.cars.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) && (yspeed > 30)) {
hitTime = hitTime + 1;
} else if (hitTime > 0) {
hitTime = 0;
} else {
hitTime = 0;
}
if (yspeed < 0) {
yspeed = yspeed - (yspeed / 2);
}
if ((yspeed / 5) < 3.5) {
var turnSpeed = (yspeed / 5);
} else {
turnSpeed = 3.5;
}
if ((_root.gocar && (yspeed < maxSpeed)) && (life > 0)) {
}
if ((Key.isDown(38) && (yspeed < maxSpeed)) && (life > 0)) {
yspeed = yspeed + 0.8;
if (_root.game._xscale < 200) {
trace("this is if condition..");
_root.game._xscale = _root.game._xscale - 1;
_root.game._yscale = _root.game._yscale - 1;
}
} else if (_root.game._xscale > 10) {
trace("this is else condition...");
_root.game._xscale = _root.game._xscale + 2;
_root.game._yscale = _root.game._yscale + 2;
}
if ((Key.isDown(32) && (yspeed > 0)) && (life > 0)) {
_root.pressspace = true;
} else {
if (turnSpeed > 3.5) {
turnSpeed = turnSpeed - 0.1;
}
skidPlaying = false;
skidSound.stop();
}
if (Key.isDown(39) && (life > 0)) {
xspeed = xspeed + turnSpeed;
}
if (Key.isDown(37) && (life > 0)) {
xspeed = xspeed - turnSpeed;
}
_rotation = (xspeed / 2);
xspeed = xspeed * 0.8;
_x = (_x + xspeed);
yspeed = yspeed * 0.99;
showx = _x;
showy = _y;
if (life < 0) {
explodeTimer = explodeTimer + 1;
}
if ((life < 0) && (explodeTimer > 20)) {
explodeTimer = 0;
exploded = true;
_root.id = _root.id + 1;
_root.game.expTargetX = _x;
_root.game.expTargetY = _y;
_root.game.expSize = _height;
_root.game.expSize = _height;
duplicateMovieClip (_root.game.explosion, "explosion" + _root.id, _root.id + 1);
_root.game["explosion" + _root.id]._x = _x;
_root.game["explosion" + _root.id]._y = _y;
_root.game["explosion" + _root.id]._height = _root.game.expSize / 3;
_root.game["explosion" + _root.id]._width = _root.game.expSize / 3;
_root.game["explosion" + _root.id].sizeE = _root.game.expSize * 2;
}
if (life < 40) {
smokeTime = smokeTime + (yspeed / 5);
if (smokeTime > 5) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.smoke, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = _x;
_root.game.effects["spark" + _root.game.effects.id]._y = _y - (_height / 2);
_root.game.effects["spark" + _root.game.effects.id]._height = _root.game.effects["spark" + _root.game.effects.id]._height + yspeed;
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = yspeed;
_root.game.effects.id = _root.game.effects.id + 1;
smokeTime = 0;
}
}
var target = _parent.walls;
if ((target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 3)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 3)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
if (yspeed > 0) {
life = life - yspeed;
} else {
life = life + yspeed;
}
yspeed = (-yspeed) * 1;
}
if (target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) && (yspeed + _root.game.player.yspeed)) {
if (yspeed > 0) {
life = life - yspeed;
} else {
life = life + yspeed;
}
_y = (_y - yspeed);
yspeed = (-yspeed) * 1;
}
if (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) && (xspeed < 0)) {
_x = (_x - xspeed);
xspeed = (-xspeed) * 0.2;
var sparkNo = ((yspeed / 5) - 2);
life = life - (sparkNo / 5);
i = 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.spark, "spark" + _root.game.effects.id, _root.game.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
i = 0;
while (i < (sparkNo / 4)) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.paint, "spark" + _root.game.effects.id, _root.game.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = yspeed * 1.5;
i = i + 1;
}
}
if (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) && (xspeed > 0)) {
_x = (_x - xspeed);
xspeed = (-xspeed) * 0.2;
var sparkNo = ((yspeed / 5) - 2);
life = life - (sparkNo / 5);
i = 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.spark, "spark" + _root.game.effects.id, _parent.effects.id + 1);
var pColor = new Color(_root.game.effects["spark" + _root.game.effects.id]);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
i = 0;
while (i < (sparkNo / 4)) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.paint, "spark" + _root.game.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = yspeed * 1.5;
i = i + 1;
}
}
if (_root.game.slower.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
if ((_x * (1 / (100 / _root.game._xscale))) < 0) {
_root.pavementTime = _root.pavementTime + 1;
}
if (slowTimer < 20) {
slowTimer = slowTimer + 1;
} else {
yspeed = yspeed * 0.98;
}
} else if (slowTimer > 0) {
slowTimer = slowTimer - 1;
}
if (_root.game.sound.type == 2) {
var dist = Math.sqrt(((_x - _root.game.sound._x) * (_x - _root.game.sound._x)) + ((_y - _root.game.sound._y) * (_y - _root.game.sound._y)));
if (dist < 300) {
interestX = _root.game.sound._x;
interestY = _root.game.sound._y;
interestLevel = interestLevel + 50;
}
if (dist < (_root.game.sound.size * 2)) {
life = life - (((_root.game.sound.size * 2) - dist) / 50);
var adjside = (_root.game.sound._x - _x);
var oppside = (-1 * (_root.game.sound._y - _y));
var angle = Math.atan2(oppside, adjside);
angle = (angle / 3.141593) * 180;
var throwRot = (-1 * angle);
xspeed = xspeed - (Math.cos(throwRot * 0.01745329) * (((_root.game.sound.size * 2) - dist) / (5 * mass)));
yspeed = yspeed + (Math.sin(throwRot * 0.01745329) * (((_root.game.sound.size * 2) - dist) / (5 * mass)));
}
}
}
Instance of Symbol 440 MovieClip "gun" in Symbol 577 MovieClip Frame 1
onClipEvent (load) {
targetC = _parent.targetShow;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 461 MovieClip "effects" in Symbol 577 MovieClip Frame 1
onClipEvent (load) {
id = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 474 MovieClip "explosion" in Symbol 577 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 461 MovieClip "effects2" in Symbol 577 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 476 MovieClip in Symbol 577 MovieClip Frame 1
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 589 MovieClip in Symbol 592 MovieClip Frame 1
onClipEvent (load) {
origY = _y;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 591 MovieClip in Symbol 592 MovieClip Frame 1
onClipEvent (load) {
origY = _y;
}
onClipEvent (enterFrame) {
!!!ERROR
Symbol 593 MovieClip Frame 1
!!!ERROR
Instance of Symbol 437 MovieClip in Symbol 593 MovieClip Frame 1
onClipEvent (enterFrame) {
!!!ERROR
Symbol 593 MovieClip Frame 2
stop();
Symbol 593 MovieClip Frame 3
!!!ERROR
Symbol 593 MovieClip Frame 4
gotoAndStop (1);
Symbol 593 MovieClip Frame 5
stop();
Symbol 595 MovieClip Frame 1
!!!ERROR
Instance of Symbol 584 MovieClip "track" in Symbol 595 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 369 MovieClip "lane1" in Symbol 595 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 35;
targetX = _x;
id = 1;
}
Instance of Symbol 369 MovieClip "lane2" in Symbol 595 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 30;
targetX = _x;
id = 2;
}
Instance of Symbol 369 MovieClip "lane3" in Symbol 595 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 25;
targetX = _x;
id = 3;
}
Instance of Symbol 369 MovieClip "lane4" in Symbol 595 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 20;
targetX = _x;
id = 4;
}
Instance of Symbol 371 MovieClip "slower" in Symbol 595 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 592 MovieClip "walls" in Symbol 595 MovieClip Frame 1
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
mass = 1000;
}
onClipEvent (enterFrame) {
xspeed = 0;
yspeed = 0;
}
Instance of Symbol 417 MovieClip "car" in Symbol 595 MovieClip Frame 1
onClipEvent (load) {
this.nofhittimes = 0;
var lane;
var laneId;
var truckLikely = (1 + random(10));
if (truckLikely == 5) {
gotoAndStop(1 + random(4));
} else {
gotoAndStop(1 + random(3));
}
startY = _y;
yspeed = 0;
xspeed = 0;
hitTimes = 0;
spin = 0;
sironBool = false;
targetX = lane.targetX;
if (_x > 0) {
up = false;
_rotation = (_rotation + 180);
yspeed = -lane.maxSpeed;
maxSpeed = lane.maxSpeed;
} else {
up = true;
_rotation = 0;
yspeed = lane.maxSpeed;
maxSpeed = lane.maxSpeed;
}
life = 100;
target = _parent.player;
mass = (_height + _width) / 33;
exploded = false;
timerSmoke = 0;
sparkNo = 0;
var targetCar;
messageShown = false;
engineStarted = false;
playerHitted = false;
sDiff = 0;
deadCar = false;
_root.targetcarinload = true;
}
onClipEvent (enterFrame) {
function hitSounds() {
var _local2 = 1 + random(3);
hitSound = new Sound(this);
if (_local2 == 1) {
hitSound.attachSound("hit1");
} else if (_local2 == 2) {
hitSound.attachSound("hit2");
} else {
hitSound.attachSound("hit3");
}
hitSound.setVolume(sparkNo * 5);
hitSound.start(0, 0);
}
if (_root.targetsLeft <= 0) {
}
if (targetCar == true) {
_root.game.targetShow._x = _x;
_root.game.targetShow._y = _y;
_root.game.targetShow.play();
lane = _root.game.lane1;
targetX = lane.targetX;
maxSpeed = lane.maxSpeed;
if (!sironBool) {
sironSound = new Sound(this);
sironSound.attachSound("siron");
sironSound.start(0, 100);
sironBool = true;
}
sironSound.setVolume(100);
if ((life < 1) && (messageShown == false)) {
_root.score = _root.score + 1000;
if (_root.targetsLeft == 0) {
_root.extraCar = true;
}
sironSound.stop();
_root.targetsLeft = _root.targetsLeft - 1;
messageShown = true;
targetCar = false;
_root.game.targetShow._x = -2000;
deadCar = true;
}
} else if ((life < 1) && (deadCar != true)) {
_root.carsBlownUp = _root.carsBlownUp + 1;
if (_currentframe == 4) {
_root.trucksKilled = _root.trucksKilled + 1;
}
deadCar = true;
}
if (_name != "car") {
_parent.showMc._x = _x;
_parent.showMc._y = passY;
i = 0;
while (i < (_root.maxCars + 2)) {
if (_root.game["car" + i]._x != undefined) {
bullettarget = _root.game["car" + i];
if (_root.game["car" + i] != this) {
target = _root.game["car" + i];
} else {
target = _parent.player;
}
if (bullettarget.hitTest(_root.bulletmc)) {
bullettarget.ene.hhh.gotoAndStop(2);
_root.reloadComplete = true;
removeMovieClip(_root.bulletmc);
} else if (_root.game.car.hitTest(_root.bulletmc)) {
this.ene.hhh.gotoAndStop(2);
_root.reloadComplete = true;
removeMovieClip(_root.bulletmc);
}
var adjside = (target._x - _x);
var oppside = (-1 * (target._y - _y));
var dist = Math.sqrt((adjside * adjside) + (oppside * oppside));
var distMax = (_height + (target._height / 2));
if (dist < distMax) {
if ((target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
_root.cardashsnd.start();
xspeed = xspeed + (((_x - target._x) / 40) + (target.xspeed / 5));
if ((target._x > (_x - ((_width / 2) + (target._width / 2.2)))) && (target._x < (_x + ((_width / 2) + (target._width / 2.2))))) {
var s1 = yspeed;
var s2 = target.yspeed;
var sDiff = 0;
if (((s1 < 0) && (s2 >= 0)) || ((s2 < 0) && (s1 >= 0))) {
if (s1 < 0) {
var sDiff = (s2 - s1);
} else {
var sDiff = (s1 - s2);
}
} else if ((s1 >= 0) && (s2 >= 0)) {
if (s1 > s2) {
var sDiff = (s1 - s2);
} else {
var sDiff = (s2 - s1);
}
} else {
var sDiff = (s1 - s2);
}
if (sDiff < 0) {
sDiff = -sDiff;
}
if (sDiff > 6) {
sDiff = sDiff - 5;
life = life - (((sDiff * 12) / mass) / 2);
target.life = target.life - (((sDiff * 12) / mass) / 4);
sparkNo = sDiff;
}
if (sDiff > 3) {
hitSounds();
}
if (((target == _parent.player) && (targetCar == false)) && (life > 1)) {
_parent.player.hitTime = 0;
playerHitted = true;
} else if ((target != _parent.player) && (targetCar == false)) {
playerHitted = false;
}
i == 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height / 2);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + 5;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
maxSpeed = maxSpeed - random(2);
var v1 = yspeed;
var m1 = mass;
var v2 = target.yspeed;
var m2 = target.mass;
var newV1 = ((((m1 - m2) / (m1 + m2)) * v1) + (((2 * m2) / (m1 + m2)) * v2));
var newV2 = ((((2 * m1) / (m1 + m2)) * v1) - (((m1 - m2) / (m1 + m2)) * v2));
if ((_y > target._y) && (newV1 < v1)) {
yspeed = newV1;
target.yspeed = newV2;
}
}
}
if ((target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
_root.cardashsnd.start();
xspeed = xspeed + (((_x - target._x) / 40) + (target.xspeed / 5));
if ((target._x > (_x - ((_width / 2) + (target._width / 2)))) && (target._x < (_x + ((_width / 2) + (target._width / 2))))) {
var s1 = yspeed;
var s2 = target.yspeed;
var sDiff = 0;
if (((s1 < 0) && (s2 >= 0)) || ((s2 < 0) && (s1 >= 0))) {
if (s1 < 0) {
var sDiff = (s2 - s1);
} else {
var sDiff = (s1 - s2);
}
} else if ((s1 >= 0) && (s2 >= 0)) {
if (s1 > s2) {
var sDiff = (s1 - s2);
} else {
var sDiff = (s2 - s1);
}
} else {
var sDiff = (s1 - s2);
}
if (sDiff < 0) {
sDiff = -sDiff;
}
if (sDiff > 6) {
sDiff = sDiff - 5;
life = life - (((sDiff * 12) / mass) / 2);
target.life = target.life - (((sDiff * 12) / mass) / 4);
sparkNo = sDiff;
}
if (sDiff > 3) {
hitSounds();
}
if (((target == _parent.player) && (targetCar == false)) && (life > 1)) {
_parent.player.hitTime = 0;
playerHitted = true;
} else if ((target != _parent.player) && (targetCar == false)) {
playerHitted = false;
}
i == 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y + (_height / 2)) - random(_height / 2);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + 5;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
var v1 = yspeed;
var m1 = mass;
var v2 = target.yspeed;
var m2 = target.mass;
var newV1 = ((((m1 - m2) / (m1 + m2)) * v1) + (((2 * m2) / (m1 + m2)) * v2));
var newV2 = ((((2 * m1) / (m1 + m2)) * v1) - (((m1 - m2) / (m1 + m2)) * v2));
if ((_y < target._y) && (newV1 > v1)) {
yspeed = newV1;
target.yspeed = newV2;
}
maxSpeed = maxSpeed + random(2);
}
}
if (((target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 3)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (height / 3)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
var speedDiff = ((xspeed - target.xspeed) + (yspeed - target.yspeed));
if (speedDiff > 0) {
var sparkNo = speedDiff;
} else {
var sparkNo = (-speedDiff);
}
hitTimes = hitTimes + 1;
var v1 = xspeed;
var m1 = mass;
var v2 = target.xspeed;
var m2 = target.mass;
var newV1 = ((((m1 - m2) / (m1 + m2)) * v1) + (((2 * m2) / (m1 + m2)) * v2));
var newV2 = ((((2 * m1) / (m1 + m2)) * v1) - (((m1 - m2) / (m1 + m2)) * v2));
if (((target == _parent.player) && (targetCar == false)) && (life > 1)) {
_parent.player.hitTime = 0;
playerHitted = true;
} else if ((target != _parent.player) && (targetCar == false)) {
playerHitted = false;
}
if ((_x > target._x) && (newV1 > v1)) {
i = 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
xspeed = newV1;
target.xspeed = newV2;
}
if ((_x < target._x) && (newV1 < v1)) {
i = 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
xspeed = newV1;
target.xspeed = newV2;
}
life = life - (((sparkNo * 12) / mass) / 8);
}
}
}
i = i + 1;
}
var target = _parent.walls;
if ((target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2.4)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2.4)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
if (yspeed > 0) {
var sparkNo = yspeed;
}
if (yspeed < 0) {
var sparkNo = (-yspeed);
}
hitSounds();
i = 0;
while (i < (sparkNo / 4)) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
life = life - (((sparkNo * 12) / mass) / 2);
yspeed = (-yspeed) * 0.5;
}
if ((target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2.2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2.2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
var s1 = yspeed;
var s2 = target.yspeed;
var sDiff = 0;
if (((s1 < 0) && (s2 >= 0)) || ((s2 < 0) && (s1 >= 0))) {
if (s1 < 0) {
sDiff = s2 - s1;
} else {
sDiff = s1 - s2;
}
} else if ((s1 >= 0) && (s2 >= 0)) {
if (s1 > s2) {
sDiff = s1 - s2;
} else {
sDiff = s2 - s1;
}
} else {
sDiff = s1 - s2;
}
if (sDiff < 0) {
sDiff = -sDiff;
}
sparksNo = sDiff;
hitSounds();
i = 0;
while (i < (sparkNo / 4)) {
hitSounds();
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
life = life - (((sparkNo * 12) / mass) / 2);
yspeed = (-yspeed) * 0.5;
}
if (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
_x = (_x - (xspeed / 3));
xspeed = (-xspeed) * 0.2;
if (yspeed > 0) {
var sparkNo = yspeed;
}
if (yspeed < 0) {
var sparkNo = (-yspeed);
}
if ((sparkNo / 4) > 1) {
hitSounds();
}
hitSounds();
i = 0;
while (i < (sparkNo / 4)) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
life = life - (((sparkNo * 12) / mass) / 6);
}
if (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
_x = (_x - (xspeed / 3));
xspeed = (-xspeed) * 0.2;
if (yspeed > 0) {
var sparkNo = yspeed;
}
if (yspeed < 0) {
var sparkNo = (-yspeed);
}
if ((sparkNo / 4) > 1) {
hitSounds();
}
i = 0;
while (i < (sparkNo / 4)) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
life = life - (((sparkNo * 12) / mass) / 6);
}
if (_root.game.sound.type == 2) {
var dist = Math.sqrt(((_x - _root.game.sound._x) * (_x - _root.game.sound._x)) + ((_y - _root.game.sound._y) * (_y - _root.game.sound._y)));
if (dist < 300) {
interestX = _root.game.sound._x;
interestY = _root.game.sound._y;
interestLevel = interestLevel + 50;
}
if (dist < (_root.game.sound.size * 2)) {
life = life - (((_root.game.sound.size * 2) - dist) / 8);
var adjside = (_root.game.sound._x - _x);
var oppside = (-1 * (_root.game.sound._y - _y));
var angle = Math.atan2(oppside, adjside);
angle = (angle / 3.141593) * 180;
var throwRot = (-1 * angle);
xspeed = xspeed - (Math.cos(throwRot * 0.01745329) * (((_root.game.sound.size * 2) - dist) / (10 * mass)));
yspeed = yspeed + (Math.sin(throwRot * 0.01745329) * (((_root.game.sound.size * 2) - dist) / (10 * mass)));
}
}
if ((life < -75) && (exploded == false)) {
trace(_name);
exploded = true;
_root.id = _root.id + 1;
_root.game.expTargetX = _x;
_root.game.expTargetY = _y;
_root.game.expSize = _height;
_root.game.expSize = _height;
trace("exp33");
_root.blastsnd.setVolume(80);
_root.blastsnd.start();
duplicateMovieClip (_root.game.explosion, "explosion" + _root.id, _root.id + 300);
_root.game["explosion" + _root.id]._x = _x;
_root.game["explosion" + _root.id]._y = _y;
_root.game["explosion" + _root.id]._height = _root.game.expSize / 2.5;
_root.game["explosion" + _root.id]._width = _root.game.expSize / 2.5;
_root.game["explosion" + _root.id].sizeE = _root.game.expSize * 2;
i = 0;
while (i < 4) {
_root.game.effects2.id = _root.game.effects2.id + 1;
duplicateMovieClip (_parent.effects2.tire, "spark" + _parent.effects2.id, _parent.effects2.id + 1);
_root.game.effects2["spark" + _root.game.effects2.id]._x = _x;
_root.game.effects2["spark" + _root.game.effects2.id]._y = _y;
i = i + 1;
}
}
if ((life < 50) && (life > -75)) {
timerSmoke = timerSmoke + 1;
if (timerSmoke > 1) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.smoke, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = _x;
_root.game.effects["spark" + _root.game.effects.id]._y = _y;
_root.game.effects["spark" + _root.game.effects.id]._height = _root.game.effects["spark" + _root.game.effects.id]._height + _root.game.player.yspeed;
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
timerSmoke = 0;
}
}
if (life < -75) {
timerSmoke = timerSmoke + 1;
if (timerSmoke > 1) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.smoke2, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = _x;
_root.game.effects["spark" + _root.game.effects.id]._y = _y;
_root.game.effects["spark" + _root.game.effects.id]._height = _root.game.effects["spark" + _root.game.effects.id]._height + _root.game.player.yspeed;
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
timerSmoke = 0;
}
}
if (life > 0) {
if ((_x + xspeed) < targetX) {
xspeed = xspeed + 0.2;
} else if ((_x < targetX) && (xspeed > 0)) {
xspeed = xspeed * 0.97;
}
if ((_x + xspeed) > targetX) {
xspeed = xspeed - 0.2;
}
if ((_x > targetX) && (xspeed < 0)) {
xspeed = xspeed * 0.97;
}
if (up == false) {
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - (maxSpeed / 30);
}
_rotation = (((xspeed * 3) + spin) + 180);
} else {
var laneChange = random(500);
if (laneChange == 10) {
var chooseLane = (1 + random(3));
lane = _root.game["lane" + chooseLane];
targetX = lane.targetX;
maxSpeed = lane.maxSpeed;
}
if (yspeed < maxSpeed) {
yspeed = yspeed + (maxSpeed / 30);
}
_rotation = ((xspeed * 6) / mass);
}
} else {
_rotation = (_rotation + ((xspeed * 10) / mass));
}
if ((life < 0) && (targetCar != true)) {
if (playerHitted == true) {
playerHitted = false;
}
}
if ((_name != "car") && (targetCar != true)) {
if ((_y > 600) || (_y < -1700)) {
_root.carsAlive = _root.carsAlive - 1;
engineSound.stop();
removeMovieClip(this);
}
}
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
showy = _y;
showx = _x;
_x = (_x + xspeed);
_y = (_y - ((-_parent.player.yspeed) + yspeed));
if (targetCar == true) {
_root.game.targetShow._x = _x;
_root.game.targetShow._y = _y;
var pScore = (10 - Math.ceil(life / 10));
if (pScore < 1) {
pScore = 1;
}
_root.game.targetShow.arrowMc.arrowSubMc.gotoAndStop(pScore);
}
}
}
Instance of Symbol 576 MovieClip "targetShow" in Symbol 595 MovieClip Frame 1
onClipEvent (enterFrame) {
this.swapDepths(501);
}
Instance of Symbol 429 MovieClip in Symbol 595 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 430 MovieClip "prop" in Symbol 595 MovieClip Frame 1
onClipEvent (load) {
startY = _y;
yspeed = 0;
xspeed = 0;
hitTimes = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 593 MovieClip "player" in Symbol 595 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
_root.reloadComplete = true;
maxSpeed = 50;
yspeed = 50;
xspeed = 0;
mass = ((_height + _width) / 33) * 5;
maxLife = 400;
life = maxLife;
slowTimer = 0;
origWidth = _width;
this.swapDepths(2);
yspeed = 60;
exploded = false;
smokeTime = 0;
hitTime = 0;
skidPlaying = false;
rev = true;
revLength = 0;
explodeTimer = 10;
colorArr = ["0x339999", "0x99CC66", "0x993333", "0xCCCC66"];
}
onClipEvent (enterFrame) {
if (_root.hud.speed >= 200) {
skidActive = true;
}
if (Key.isDown(40)) {
}
if (skidActive == true) {
if (Key.isDown(40)) {
} else {
skidActive = false;
}
}
if ((skidActive == true) && (_root.hud.speed <= 30)) {
_root.skidDone = true;
}
if (_root.game.cars.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) && (yspeed > 30)) {
hitTime = hitTime + 1;
} else if (hitTime > 0) {
hitTime = 0;
} else {
hitTime = 0;
}
if (yspeed < 0) {
yspeed = yspeed - (yspeed / 2);
}
if ((yspeed / 5) < 3.5) {
var turnSpeed = (yspeed / 5);
} else {
turnSpeed = 3.5;
}
if ((_root.gocar && (yspeed < maxSpeed)) && (life > 0)) {
}
if ((Key.isDown(38) && (yspeed < maxSpeed)) && (life > 0)) {
yspeed = yspeed + 0.8;
if (_root.game._xscale < 200) {
trace("this is if condition..");
_root.game._xscale = _root.game._xscale - 1;
_root.game._yscale = _root.game._yscale - 1;
}
} else if (_root.game._xscale > 10) {
trace("this is else condition...");
_root.game._xscale = _root.game._xscale + 2;
_root.game._yscale = _root.game._yscale + 2;
}
if ((Key.isDown(32) && (yspeed > 0)) && (life > 0)) {
_root.pressspace = true;
} else {
if (turnSpeed > 3.5) {
turnSpeed = turnSpeed - 0.1;
}
skidPlaying = false;
skidSound.stop();
}
if (Key.isDown(39) && (life > 0)) {
xspeed = xspeed + turnSpeed;
}
if (Key.isDown(37) && (life > 0)) {
xspeed = xspeed - turnSpeed;
}
_rotation = (xspeed / 2);
xspeed = xspeed * 0.8;
_x = (_x + xspeed);
yspeed = yspeed * 0.99;
showx = _x;
showy = _y;
if (life < 0) {
explodeTimer = explodeTimer + 1;
}
if ((life < 0) && (explodeTimer > 20)) {
explodeTimer = 0;
exploded = true;
_root.id = _root.id + 1;
_root.game.expTargetX = _x;
_root.game.expTargetY = _y;
_root.game.expSize = _height;
_root.game.expSize = _height;
duplicateMovieClip (_root.game.explosion, "explosion" + _root.id, _root.id + 1);
_root.game["explosion" + _root.id]._x = _x;
_root.game["explosion" + _root.id]._y = _y;
_root.game["explosion" + _root.id]._height = _root.game.expSize / 3;
_root.game["explosion" + _root.id]._width = _root.game.expSize / 3;
_root.game["explosion" + _root.id].sizeE = _root.game.expSize * 2;
}
if (life < 40) {
smokeTime = smokeTime + (yspeed / 5);
if (smokeTime > 5) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.smoke, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = _x;
_root.game.effects["spark" + _root.game.effects.id]._y = _y - (_height / 2);
_root.game.effects["spark" + _root.game.effects.id]._height = _root.game.effects["spark" + _root.game.effects.id]._height + yspeed;
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = yspeed;
_root.game.effects.id = _root.game.effects.id + 1;
smokeTime = 0;
}
}
var target = _parent.walls;
if ((target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 3)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 3)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
if (yspeed > 0) {
life = life - yspeed;
} else {
life = life + yspeed;
}
yspeed = (-yspeed) * 1;
}
if (target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) && (yspeed + _root.game.player.yspeed)) {
if (yspeed > 0) {
life = life - yspeed;
} else {
life = life + yspeed;
}
_y = (_y - yspeed);
yspeed = (-yspeed) * 1;
}
if (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) && (xspeed < 0)) {
_x = (_x - xspeed);
xspeed = (-xspeed) * 0.2;
var sparkNo = ((yspeed / 5) - 2);
life = life - (sparkNo / 5);
i = 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.spark, "spark" + _root.game.effects.id, _root.game.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
i = 0;
while (i < (sparkNo / 4)) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.paint, "spark" + _root.game.effects.id, _root.game.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = yspeed * 1.5;
i = i + 1;
}
}
if (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) && (xspeed > 0)) {
_x = (_x - xspeed);
xspeed = (-xspeed) * 0.2;
var sparkNo = ((yspeed / 5) - 2);
life = life - (sparkNo / 5);
i = 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.spark, "spark" + _root.game.effects.id, _parent.effects.id + 1);
var pColor = new Color(_root.game.effects["spark" + _root.game.effects.id]);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
i = 0;
while (i < (sparkNo / 4)) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.paint, "spark" + _root.game.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = yspeed * 1.5;
i = i + 1;
}
}
if (_root.game.slower.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
if ((_x * (1 / (100 / _root.game._xscale))) < 0) {
_root.pavementTime = _root.pavementTime + 1;
}
if (slowTimer < 20) {
slowTimer = slowTimer + 1;
} else {
yspeed = yspeed * 0.98;
}
} else if (slowTimer > 0) {
slowTimer = slowTimer - 1;
}
if (_root.game.sound.type == 2) {
var dist = Math.sqrt(((_x - _root.game.sound._x) * (_x - _root.game.sound._x)) + ((_y - _root.game.sound._y) * (_y - _root.game.sound._y)));
if (dist < 300) {
interestX = _root.game.sound._x;
interestY = _root.game.sound._y;
interestLevel = interestLevel + 50;
}
if (dist < (_root.game.sound.size * 2)) {
life = life - (((_root.game.sound.size * 2) - dist) / 50);
var adjside = (_root.game.sound._x - _x);
var oppside = (-1 * (_root.game.sound._y - _y));
var angle = Math.atan2(oppside, adjside);
angle = (angle / 3.141593) * 180;
var throwRot = (-1 * angle);
xspeed = xspeed - (Math.cos(throwRot * 0.01745329) * (((_root.game.sound.size * 2) - dist) / (5 * mass)));
yspeed = yspeed + (Math.sin(throwRot * 0.01745329) * (((_root.game.sound.size * 2) - dist) / (5 * mass)));
}
}
}
Instance of Symbol 440 MovieClip "gun" in Symbol 595 MovieClip Frame 1
onClipEvent (load) {
targetC = _parent.targetShow;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 461 MovieClip "effects" in Symbol 595 MovieClip Frame 1
onClipEvent (load) {
id = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 474 MovieClip "explosion" in Symbol 595 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 461 MovieClip "effects2" in Symbol 595 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 476 MovieClip in Symbol 595 MovieClip Frame 1
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 488 MovieClip in Symbol 595 MovieClip Frame 1
onClipEvent (load) {
targetC = _parent.targetShow;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 611 MovieClip in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
origY = _y;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 612 MovieClip in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
origY = _y;
}
onClipEvent (enterFrame) {
!!!ERROR
Symbol 614 MovieClip Frame 1
!!!ERROR
Instance of Symbol 603 MovieClip "track" in Symbol 614 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 369 MovieClip "lane1" in Symbol 614 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 35;
targetX = _x;
id = 1;
}
Instance of Symbol 369 MovieClip "lane2" in Symbol 614 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 30;
targetX = _x;
id = 2;
}
Instance of Symbol 369 MovieClip "lane3" in Symbol 614 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 25;
targetX = _x;
id = 3;
}
Instance of Symbol 369 MovieClip "lane4" in Symbol 614 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 20;
targetX = _x;
id = 4;
}
Instance of Symbol 371 MovieClip "slower" in Symbol 614 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 613 MovieClip "walls" in Symbol 614 MovieClip Frame 1
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
mass = 1000;
}
onClipEvent (enterFrame) {
xspeed = 0;
yspeed = 0;
}
Instance of Symbol 417 MovieClip "car" in Symbol 614 MovieClip Frame 1
onClipEvent (load) {
this.nofhittimes = 0;
var lane;
var laneId;
var truckLikely = (1 + random(10));
if (truckLikely == 5) {
gotoAndStop(1 + random(4));
} else {
gotoAndStop(1 + random(3));
}
startY = _y;
yspeed = 0;
xspeed = 0;
hitTimes = 0;
spin = 0;
sironBool = false;
targetX = lane.targetX;
if (_x > 0) {
up = false;
_rotation = (_rotation + 180);
yspeed = -lane.maxSpeed;
maxSpeed = lane.maxSpeed;
} else {
up = true;
_rotation = 0;
yspeed = lane.maxSpeed;
maxSpeed = lane.maxSpeed;
}
life = 100;
target = _parent.player;
mass = (_height + _width) / 33;
exploded = false;
timerSmoke = 0;
sparkNo = 0;
var targetCar;
messageShown = false;
engineStarted = false;
playerHitted = false;
sDiff = 0;
deadCar = false;
_root.targetcarinload = true;
}
onClipEvent (enterFrame) {
function hitSounds() {
var _local2 = 1 + random(3);
hitSound = new Sound(this);
if (_local2 == 1) {
hitSound.attachSound("hit1");
} else if (_local2 == 2) {
hitSound.attachSound("hit2");
} else {
hitSound.attachSound("hit3");
}
hitSound.setVolume(sparkNo * 5);
hitSound.start(0, 0);
}
if (_root.targetsLeft <= 0) {
}
if (targetCar == true) {
_root.game.targetShow._x = _x;
_root.game.targetShow._y = _y;
_root.game.targetShow.play();
lane = _root.game.lane1;
targetX = lane.targetX;
maxSpeed = lane.maxSpeed;
if (!sironBool) {
sironSound = new Sound(this);
sironSound.attachSound("siron");
sironSound.start(0, 100);
sironBool = true;
}
sironSound.setVolume(100);
if ((life < 1) && (messageShown == false)) {
_root.score = _root.score + 1000;
if (_root.targetsLeft == 0) {
_root.extraCar = true;
}
sironSound.stop();
_root.targetsLeft = _root.targetsLeft - 1;
messageShown = true;
targetCar = false;
_root.game.targetShow._x = -2000;
deadCar = true;
}
} else if ((life < 1) && (deadCar != true)) {
_root.carsBlownUp = _root.carsBlownUp + 1;
if (_currentframe == 4) {
_root.trucksKilled = _root.trucksKilled + 1;
}
deadCar = true;
}
if (_name != "car") {
_parent.showMc._x = _x;
_parent.showMc._y = passY;
i = 0;
while (i < (_root.maxCars + 2)) {
if (_root.game["car" + i]._x != undefined) {
bullettarget = _root.game["car" + i];
if (_root.game["car" + i] != this) {
target = _root.game["car" + i];
} else {
target = _parent.player;
}
if (bullettarget.hitTest(_root.bulletmc)) {
bullettarget.ene.hhh.gotoAndStop(2);
_root.reloadComplete = true;
removeMovieClip(_root.bulletmc);
} else if (_root.game.car.hitTest(_root.bulletmc)) {
this.ene.hhh.gotoAndStop(2);
_root.reloadComplete = true;
removeMovieClip(_root.bulletmc);
}
var adjside = (target._x - _x);
var oppside = (-1 * (target._y - _y));
var dist = Math.sqrt((adjside * adjside) + (oppside * oppside));
var distMax = (_height + (target._height / 2));
if (dist < distMax) {
if ((target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
_root.cardashsnd.start();
xspeed = xspeed + (((_x - target._x) / 40) + (target.xspeed / 5));
if ((target._x > (_x - ((_width / 2) + (target._width / 2.2)))) && (target._x < (_x + ((_width / 2) + (target._width / 2.2))))) {
var s1 = yspeed;
var s2 = target.yspeed;
var sDiff = 0;
if (((s1 < 0) && (s2 >= 0)) || ((s2 < 0) && (s1 >= 0))) {
if (s1 < 0) {
var sDiff = (s2 - s1);
} else {
var sDiff = (s1 - s2);
}
} else if ((s1 >= 0) && (s2 >= 0)) {
if (s1 > s2) {
var sDiff = (s1 - s2);
} else {
var sDiff = (s2 - s1);
}
} else {
var sDiff = (s1 - s2);
}
if (sDiff < 0) {
sDiff = -sDiff;
}
if (sDiff > 6) {
sDiff = sDiff - 5;
life = life - (((sDiff * 12) / mass) / 2);
target.life = target.life - (((sDiff * 12) / mass) / 4);
sparkNo = sDiff;
}
if (sDiff > 3) {
hitSounds();
}
if (((target == _parent.player) && (targetCar == false)) && (life > 1)) {
_parent.player.hitTime = 0;
playerHitted = true;
} else if ((target != _parent.player) && (targetCar == false)) {
playerHitted = false;
}
i == 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height / 2);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + 5;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
maxSpeed = maxSpeed - random(2);
var v1 = yspeed;
var m1 = mass;
var v2 = target.yspeed;
var m2 = target.mass;
var newV1 = ((((m1 - m2) / (m1 + m2)) * v1) + (((2 * m2) / (m1 + m2)) * v2));
var newV2 = ((((2 * m1) / (m1 + m2)) * v1) - (((m1 - m2) / (m1 + m2)) * v2));
if ((_y > target._y) && (newV1 < v1)) {
yspeed = newV1;
target.yspeed = newV2;
}
}
}
if ((target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
_root.cardashsnd.start();
xspeed = xspeed + (((_x - target._x) / 40) + (target.xspeed / 5));
if ((target._x > (_x - ((_width / 2) + (target._width / 2)))) && (target._x < (_x + ((_width / 2) + (target._width / 2))))) {
var s1 = yspeed;
var s2 = target.yspeed;
var sDiff = 0;
if (((s1 < 0) && (s2 >= 0)) || ((s2 < 0) && (s1 >= 0))) {
if (s1 < 0) {
var sDiff = (s2 - s1);
} else {
var sDiff = (s1 - s2);
}
} else if ((s1 >= 0) && (s2 >= 0)) {
if (s1 > s2) {
var sDiff = (s1 - s2);
} else {
var sDiff = (s2 - s1);
}
} else {
var sDiff = (s1 - s2);
}
if (sDiff < 0) {
sDiff = -sDiff;
}
if (sDiff > 6) {
sDiff = sDiff - 5;
life = life - (((sDiff * 12) / mass) / 2);
target.life = target.life - (((sDiff * 12) / mass) / 4);
sparkNo = sDiff;
}
if (sDiff > 3) {
hitSounds();
}
if (((target == _parent.player) && (targetCar == false)) && (life > 1)) {
_parent.player.hitTime = 0;
playerHitted = true;
} else if ((target != _parent.player) && (targetCar == false)) {
playerHitted = false;
}
i == 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y + (_height / 2)) - random(_height / 2);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + 5;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
var v1 = yspeed;
var m1 = mass;
var v2 = target.yspeed;
var m2 = target.mass;
var newV1 = ((((m1 - m2) / (m1 + m2)) * v1) + (((2 * m2) / (m1 + m2)) * v2));
var newV2 = ((((2 * m1) / (m1 + m2)) * v1) - (((m1 - m2) / (m1 + m2)) * v2));
if ((_y < target._y) && (newV1 > v1)) {
yspeed = newV1;
target.yspeed = newV2;
}
maxSpeed = maxSpeed + random(2);
}
}
if (((target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 3)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (height / 3)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
var speedDiff = ((xspeed - target.xspeed) + (yspeed - target.yspeed));
if (speedDiff > 0) {
var sparkNo = speedDiff;
} else {
var sparkNo = (-speedDiff);
}
hitTimes = hitTimes + 1;
var v1 = xspeed;
var m1 = mass;
var v2 = target.xspeed;
var m2 = target.mass;
var newV1 = ((((m1 - m2) / (m1 + m2)) * v1) + (((2 * m2) / (m1 + m2)) * v2));
var newV2 = ((((2 * m1) / (m1 + m2)) * v1) - (((m1 - m2) / (m1 + m2)) * v2));
if (((target == _parent.player) && (targetCar == false)) && (life > 1)) {
_parent.player.hitTime = 0;
playerHitted = true;
} else if ((target != _parent.player) && (targetCar == false)) {
playerHitted = false;
}
if ((_x > target._x) && (newV1 > v1)) {
i = 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
xspeed = newV1;
target.xspeed = newV2;
}
if ((_x < target._x) && (newV1 < v1)) {
i = 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
xspeed = newV1;
target.xspeed = newV2;
}
life = life - (((sparkNo * 12) / mass) / 8);
}
}
}
i = i + 1;
}
var target = _parent.walls;
if ((target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2.4)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2.4)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
if (yspeed > 0) {
var sparkNo = yspeed;
}
if (yspeed < 0) {
var sparkNo = (-yspeed);
}
hitSounds();
i = 0;
while (i < (sparkNo / 4)) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
life = life - (((sparkNo * 12) / mass) / 2);
yspeed = (-yspeed) * 0.5;
}
if ((target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2.2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2.2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
var s1 = yspeed;
var s2 = target.yspeed;
var sDiff = 0;
if (((s1 < 0) && (s2 >= 0)) || ((s2 < 0) && (s1 >= 0))) {
if (s1 < 0) {
sDiff = s2 - s1;
} else {
sDiff = s1 - s2;
}
} else if ((s1 >= 0) && (s2 >= 0)) {
if (s1 > s2) {
sDiff = s1 - s2;
} else {
sDiff = s2 - s1;
}
} else {
sDiff = s1 - s2;
}
if (sDiff < 0) {
sDiff = -sDiff;
}
sparksNo = sDiff;
hitSounds();
i = 0;
while (i < (sparkNo / 4)) {
hitSounds();
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
life = life - (((sparkNo * 12) / mass) / 2);
yspeed = (-yspeed) * 0.5;
}
if (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
_x = (_x - (xspeed / 3));
xspeed = (-xspeed) * 0.2;
if (yspeed > 0) {
var sparkNo = yspeed;
}
if (yspeed < 0) {
var sparkNo = (-yspeed);
}
if ((sparkNo / 4) > 1) {
hitSounds();
}
hitSounds();
i = 0;
while (i < (sparkNo / 4)) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
life = life - (((sparkNo * 12) / mass) / 6);
}
if (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
_x = (_x - (xspeed / 3));
xspeed = (-xspeed) * 0.2;
if (yspeed > 0) {
var sparkNo = yspeed;
}
if (yspeed < 0) {
var sparkNo = (-yspeed);
}
if ((sparkNo / 4) > 1) {
hitSounds();
}
i = 0;
while (i < (sparkNo / 4)) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
life = life - (((sparkNo * 12) / mass) / 6);
}
if (_root.game.sound.type == 2) {
var dist = Math.sqrt(((_x - _root.game.sound._x) * (_x - _root.game.sound._x)) + ((_y - _root.game.sound._y) * (_y - _root.game.sound._y)));
if (dist < 300) {
interestX = _root.game.sound._x;
interestY = _root.game.sound._y;
interestLevel = interestLevel + 50;
}
if (dist < (_root.game.sound.size * 2)) {
life = life - (((_root.game.sound.size * 2) - dist) / 8);
var adjside = (_root.game.sound._x - _x);
var oppside = (-1 * (_root.game.sound._y - _y));
var angle = Math.atan2(oppside, adjside);
angle = (angle / 3.141593) * 180;
var throwRot = (-1 * angle);
xspeed = xspeed - (Math.cos(throwRot * 0.01745329) * (((_root.game.sound.size * 2) - dist) / (10 * mass)));
yspeed = yspeed + (Math.sin(throwRot * 0.01745329) * (((_root.game.sound.size * 2) - dist) / (10 * mass)));
}
}
if ((life < -75) && (exploded == false)) {
exploded = true;
_root.id = _root.id + 1;
_root.game.expTargetX = _x;
_root.game.expTargetY = _y;
_root.game.expSize = _height;
_root.game.expSize = _height;
trace("exp44");
_root.blastsnd.setVolume(80);
_root.blastsnd.start();
duplicateMovieClip (_root.game.explosion, "explosion" + _root.id, _root.id + 300);
_root.game["explosion" + _root.id]._x = _x;
_root.game["explosion" + _root.id]._y = _y;
_root.game["explosion" + _root.id]._height = _root.game.expSize / 2.5;
_root.game["explosion" + _root.id]._width = _root.game.expSize / 2.5;
_root.game["explosion" + _root.id].sizeE = _root.game.expSize * 2;
i = 0;
while (i < 4) {
_root.game.effects2.id = _root.game.effects2.id + 1;
duplicateMovieClip (_parent.effects2.tire, "spark" + _parent.effects2.id, _parent.effects2.id + 1);
_root.game.effects2["spark" + _root.game.effects2.id]._x = _x;
_root.game.effects2["spark" + _root.game.effects2.id]._y = _y;
i = i + 1;
}
}
if ((life < 50) && (life > -75)) {
timerSmoke = timerSmoke + 1;
if (timerSmoke > 1) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.smoke, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = _x;
_root.game.effects["spark" + _root.game.effects.id]._y = _y;
_root.game.effects["spark" + _root.game.effects.id]._height = _root.game.effects["spark" + _root.game.effects.id]._height + _root.game.player.yspeed;
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
timerSmoke = 0;
}
}
if (life < -75) {
timerSmoke = timerSmoke + 1;
if (timerSmoke > 1) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.smoke2, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = _x;
_root.game.effects["spark" + _root.game.effects.id]._y = _y;
_root.game.effects["spark" + _root.game.effects.id]._height = _root.game.effects["spark" + _root.game.effects.id]._height + _root.game.player.yspeed;
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
timerSmoke = 0;
}
}
if (life > 0) {
if ((_x + xspeed) < targetX) {
xspeed = xspeed + 0.2;
} else if ((_x < targetX) && (xspeed > 0)) {
xspeed = xspeed * 0.97;
}
if ((_x + xspeed) > targetX) {
xspeed = xspeed - 0.2;
}
if ((_x > targetX) && (xspeed < 0)) {
xspeed = xspeed * 0.97;
}
if (up == false) {
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - (maxSpeed / 30);
}
_rotation = (((xspeed * 3) + spin) + 180);
} else {
var laneChange = random(500);
if (laneChange == 10) {
var chooseLane = (1 + random(3));
lane = _root.game["lane" + chooseLane];
targetX = lane.targetX;
maxSpeed = lane.maxSpeed;
}
if (yspeed < maxSpeed) {
yspeed = yspeed + (maxSpeed / 30);
}
_rotation = ((xspeed * 6) / mass);
}
} else {
_rotation = (_rotation + ((xspeed * 10) / mass));
}
if ((life < 0) && (targetCar != true)) {
if (playerHitted == true) {
playerHitted = false;
}
}
if ((_name != "car") && (targetCar != true)) {
if ((_y > 600) || (_y < -1700)) {
_root.carsAlive = _root.carsAlive - 1;
engineSound.stop();
removeMovieClip(this);
}
}
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
showy = _y;
showx = _x;
_x = (_x + xspeed);
_y = (_y - ((-_parent.player.yspeed) + yspeed));
if (targetCar == true) {
_root.game.targetShow._x = _x;
_root.game.targetShow._y = _y;
var pScore = (10 - Math.ceil(life / 10));
if (pScore < 1) {
pScore = 1;
}
_root.game.targetShow.arrowMc.arrowSubMc.gotoAndStop(pScore);
}
}
}
Instance of Symbol 576 MovieClip "targetShow" in Symbol 614 MovieClip Frame 1
onClipEvent (enterFrame) {
this.swapDepths(501);
}
Instance of Symbol 429 MovieClip in Symbol 614 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 430 MovieClip "prop" in Symbol 614 MovieClip Frame 1
onClipEvent (load) {
startY = _y;
yspeed = 0;
xspeed = 0;
hitTimes = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 593 MovieClip "player" in Symbol 614 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
_root.reloadComplete = true;
maxSpeed = 50;
yspeed = 50;
xspeed = 0;
mass = ((_height + _width) / 33) * 5;
maxLife = 400;
life = maxLife;
slowTimer = 0;
origWidth = _width;
this.swapDepths(2);
yspeed = 60;
exploded = false;
smokeTime = 0;
hitTime = 0;
skidPlaying = false;
rev = true;
revLength = 0;
explodeTimer = 10;
colorArr = ["0x339999", "0x99CC66", "0x993333", "0xCCCC66"];
}
onClipEvent (enterFrame) {
if (_root.hud.speed >= 200) {
skidActive = true;
}
if (Key.isDown(40)) {
}
if (skidActive == true) {
if (Key.isDown(40)) {
} else {
skidActive = false;
}
}
if ((skidActive == true) && (_root.hud.speed <= 30)) {
_root.skidDone = true;
}
if (_root.game.cars.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) && (yspeed > 30)) {
hitTime = hitTime + 1;
} else if (hitTime > 0) {
hitTime = 0;
} else {
hitTime = 0;
}
if (yspeed < 0) {
yspeed = yspeed - (yspeed / 2);
}
if ((yspeed / 5) < 3.5) {
var turnSpeed = (yspeed / 5);
} else {
turnSpeed = 3.5;
}
if ((_root.gocar && (yspeed < maxSpeed)) && (life > 0)) {
}
if ((Key.isDown(38) && (yspeed < maxSpeed)) && (life > 0)) {
yspeed = yspeed + 0.8;
if (_root.game._xscale < 200) {
trace("this is if condition..");
_root.game._xscale = _root.game._xscale - 1;
_root.game._yscale = _root.game._yscale - 1;
}
} else if (_root.game._xscale > 10) {
trace("this is else condition...");
_root.game._xscale = _root.game._xscale + 2;
_root.game._yscale = _root.game._yscale + 2;
}
if ((Key.isDown(32) && (yspeed > 0)) && (life > 0)) {
_root.pressspace = true;
} else {
if (turnSpeed > 3.5) {
turnSpeed = turnSpeed - 0.1;
}
skidPlaying = false;
skidSound.stop();
}
if (Key.isDown(39) && (life > 0)) {
xspeed = xspeed + turnSpeed;
}
if (Key.isDown(37) && (life > 0)) {
xspeed = xspeed - turnSpeed;
}
_rotation = (xspeed / 2);
xspeed = xspeed * 0.8;
_x = (_x + xspeed);
yspeed = yspeed * 0.99;
showx = _x;
showy = _y;
if (life < 0) {
explodeTimer = explodeTimer + 1;
}
if ((life < 0) && (explodeTimer > 20)) {
explodeTimer = 0;
exploded = true;
_root.id = _root.id + 1;
_root.game.expTargetX = _x;
_root.game.expTargetY = _y;
_root.game.expSize = _height;
_root.game.expSize = _height;
duplicateMovieClip (_root.game.explosion, "explosion" + _root.id, _root.id + 1);
_root.game["explosion" + _root.id]._x = _x;
_root.game["explosion" + _root.id]._y = _y;
_root.game["explosion" + _root.id]._height = _root.game.expSize / 3;
_root.game["explosion" + _root.id]._width = _root.game.expSize / 3;
_root.game["explosion" + _root.id].sizeE = _root.game.expSize * 2;
}
if (life < 40) {
smokeTime = smokeTime + (yspeed / 5);
if (smokeTime > 5) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.smoke, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = _x;
_root.game.effects["spark" + _root.game.effects.id]._y = _y - (_height / 2);
_root.game.effects["spark" + _root.game.effects.id]._height = _root.game.effects["spark" + _root.game.effects.id]._height + yspeed;
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = yspeed;
_root.game.effects.id = _root.game.effects.id + 1;
smokeTime = 0;
}
}
var target = _parent.walls;
if ((target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 3)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 3)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
if (yspeed > 0) {
life = life - yspeed;
} else {
life = life + yspeed;
}
yspeed = (-yspeed) * 1;
}
if (target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) && (yspeed + _root.game.player.yspeed)) {
if (yspeed > 0) {
life = life - yspeed;
} else {
life = life + yspeed;
}
_y = (_y - yspeed);
yspeed = (-yspeed) * 1;
}
if (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) && (xspeed < 0)) {
_x = (_x - xspeed);
xspeed = (-xspeed) * 0.2;
var sparkNo = ((yspeed / 5) - 2);
life = life - (sparkNo / 5);
i = 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.spark, "spark" + _root.game.effects.id, _root.game.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
i = 0;
while (i < (sparkNo / 4)) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.paint, "spark" + _root.game.effects.id, _root.game.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = yspeed * 1.5;
i = i + 1;
}
}
if (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) && (xspeed > 0)) {
_x = (_x - xspeed);
xspeed = (-xspeed) * 0.2;
var sparkNo = ((yspeed / 5) - 2);
life = life - (sparkNo / 5);
i = 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.spark, "spark" + _root.game.effects.id, _parent.effects.id + 1);
var pColor = new Color(_root.game.effects["spark" + _root.game.effects.id]);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
i = 0;
while (i < (sparkNo / 4)) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.paint, "spark" + _root.game.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = yspeed * 1.5;
i = i + 1;
}
}
if (_root.game.slower.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
if ((_x * (1 / (100 / _root.game._xscale))) < 0) {
_root.pavementTime = _root.pavementTime + 1;
}
if (slowTimer < 20) {
slowTimer = slowTimer + 1;
} else {
yspeed = yspeed * 0.98;
}
} else if (slowTimer > 0) {
slowTimer = slowTimer - 1;
}
if (_root.game.sound.type == 2) {
var dist = Math.sqrt(((_x - _root.game.sound._x) * (_x - _root.game.sound._x)) + ((_y - _root.game.sound._y) * (_y - _root.game.sound._y)));
if (dist < 300) {
interestX = _root.game.sound._x;
interestY = _root.game.sound._y;
interestLevel = interestLevel + 50;
}
if (dist < (_root.game.sound.size * 2)) {
life = life - (((_root.game.sound.size * 2) - dist) / 50);
var adjside = (_root.game.sound._x - _x);
var oppside = (-1 * (_root.game.sound._y - _y));
var angle = Math.atan2(oppside, adjside);
angle = (angle / 3.141593) * 180;
var throwRot = (-1 * angle);
xspeed = xspeed - (Math.cos(throwRot * 0.01745329) * (((_root.game.sound.size * 2) - dist) / (5 * mass)));
yspeed = yspeed + (Math.sin(throwRot * 0.01745329) * (((_root.game.sound.size * 2) - dist) / (5 * mass)));
}
}
}
Instance of Symbol 440 MovieClip "gun" in Symbol 614 MovieClip Frame 1
onClipEvent (load) {
targetC = _parent.targetShow;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 461 MovieClip "effects" in Symbol 614 MovieClip Frame 1
onClipEvent (load) {
id = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 474 MovieClip "explosion" in Symbol 614 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 461 MovieClip "effects2" in Symbol 614 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 476 MovieClip in Symbol 614 MovieClip Frame 1
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 488 MovieClip in Symbol 614 MovieClip Frame 1
onClipEvent (load) {
targetC = _parent.targetShow;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 620 MovieClip in Symbol 623 MovieClip Frame 1
onClipEvent (load) {
origY = _y;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 622 MovieClip in Symbol 623 MovieClip Frame 1
onClipEvent (load) {
origY = _y;
}
onClipEvent (enterFrame) {
!!!ERROR
Symbol 629 MovieClip Frame 1
!!!ERROR
Instance of Symbol 369 MovieClip "lane1" in Symbol 629 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 35;
targetX = _x;
id = 1;
}
Instance of Symbol 369 MovieClip "lane2" in Symbol 629 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 30;
targetX = _x;
id = 2;
}
Instance of Symbol 369 MovieClip "lane3" in Symbol 629 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 25;
targetX = _x;
id = 3;
}
Instance of Symbol 369 MovieClip "lane4" in Symbol 629 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 20;
targetX = _x;
id = 4;
}
Instance of Symbol 371 MovieClip "slower" in Symbol 629 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 623 MovieClip "walls" in Symbol 629 MovieClip Frame 1
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
mass = 1000;
}
onClipEvent (enterFrame) {
xspeed = 0;
yspeed = 0;
}
Instance of Symbol 628 MovieClip "track" in Symbol 629 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 417 MovieClip "car" in Symbol 629 MovieClip Frame 1
onClipEvent (load) {
this.nofhittimes = 0;
var lane;
var laneId;
var truckLikely = (1 + random(10));
if (truckLikely == 5) {
gotoAndStop(1 + random(4));
} else {
gotoAndStop(1 + random(3));
}
startY = _y;
yspeed = 0;
xspeed = 0;
hitTimes = 0;
spin = 0;
sironBool = false;
targetX = lane.targetX;
if (_x > 0) {
up = false;
_rotation = (_rotation + 180);
yspeed = -lane.maxSpeed;
maxSpeed = lane.maxSpeed;
} else {
up = true;
_rotation = 0;
yspeed = lane.maxSpeed;
maxSpeed = lane.maxSpeed;
}
life = 100;
target = _parent.player;
mass = (_height + _width) / 33;
exploded = false;
timerSmoke = 0;
sparkNo = 0;
var targetCar;
messageShown = false;
engineStarted = false;
playerHitted = false;
sDiff = 0;
deadCar = false;
_root.targetcarinload = true;
}
onClipEvent (enterFrame) {
function hitSounds() {
var _local2 = 1 + random(3);
hitSound = new Sound(this);
if (_local2 == 1) {
hitSound.attachSound("hit1");
} else if (_local2 == 2) {
hitSound.attachSound("hit2");
} else {
hitSound.attachSound("hit3");
}
hitSound.setVolume(sparkNo * 5);
hitSound.start(0, 0);
}
if (_root.targetsLeft <= 0) {
}
if (targetCar == true) {
_root.game.targetShow._x = _x;
_root.game.targetShow._y = _y;
_root.game.targetShow.play();
lane = _root.game.lane1;
targetX = lane.targetX;
maxSpeed = lane.maxSpeed;
if (!sironBool) {
sironSound = new Sound(this);
sironSound.attachSound("siron");
sironSound.start(0, 100);
sironBool = true;
}
sironSound.setVolume(100);
if ((life < 1) && (messageShown == false)) {
_root.score = _root.score + 1000;
if (_root.targetsLeft == 0) {
_root.extraCar = true;
}
sironSound.stop();
_root.targetsLeft = _root.targetsLeft - 1;
messageShown = true;
targetCar = false;
_root.game.targetShow._x = -2000;
deadCar = true;
}
} else if ((life < 1) && (deadCar != true)) {
_root.carsBlownUp = _root.carsBlownUp + 1;
if (_currentframe == 4) {
_root.trucksKilled = _root.trucksKilled + 1;
}
deadCar = true;
}
if (_name != "car") {
_parent.showMc._x = _x;
_parent.showMc._y = passY;
i = 0;
while (i < (_root.maxCars + 2)) {
if (_root.game["car" + i]._x != undefined) {
bullettarget = _root.game["car" + i];
if (_root.game["car" + i] != this) {
target = _root.game["car" + i];
} else {
target = _parent.player;
}
if (bullettarget.hitTest(_root.bulletmc)) {
bullettarget.ene.hhh.gotoAndStop(2);
_root.reloadComplete = true;
removeMovieClip(_root.bulletmc);
} else if (_root.game.car.hitTest(_root.bulletmc)) {
this.ene.hhh.gotoAndStop(2);
_root.reloadComplete = true;
removeMovieClip(_root.bulletmc);
}
var adjside = (target._x - _x);
var oppside = (-1 * (target._y - _y));
var dist = Math.sqrt((adjside * adjside) + (oppside * oppside));
var distMax = (_height + (target._height / 2));
if (dist < distMax) {
if ((target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
_root.cardashsnd.start();
xspeed = xspeed + (((_x - target._x) / 40) + (target.xspeed / 5));
if ((target._x > (_x - ((_width / 2) + (target._width / 2.2)))) && (target._x < (_x + ((_width / 2) + (target._width / 2.2))))) {
var s1 = yspeed;
var s2 = target.yspeed;
var sDiff = 0;
if (((s1 < 0) && (s2 >= 0)) || ((s2 < 0) && (s1 >= 0))) {
if (s1 < 0) {
var sDiff = (s2 - s1);
} else {
var sDiff = (s1 - s2);
}
} else if ((s1 >= 0) && (s2 >= 0)) {
if (s1 > s2) {
var sDiff = (s1 - s2);
} else {
var sDiff = (s2 - s1);
}
} else {
var sDiff = (s1 - s2);
}
if (sDiff < 0) {
sDiff = -sDiff;
}
if (sDiff > 6) {
sDiff = sDiff - 5;
life = life - (((sDiff * 12) / mass) / 2);
target.life = target.life - (((sDiff * 12) / mass) / 4);
sparkNo = sDiff;
}
if (sDiff > 3) {
hitSounds();
}
if (((target == _parent.player) && (targetCar == false)) && (life > 1)) {
_parent.player.hitTime = 0;
playerHitted = true;
} else if ((target != _parent.player) && (targetCar == false)) {
playerHitted = false;
}
i == 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height / 2);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + 5;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
maxSpeed = maxSpeed - random(2);
var v1 = yspeed;
var m1 = mass;
var v2 = target.yspeed;
var m2 = target.mass;
var newV1 = ((((m1 - m2) / (m1 + m2)) * v1) + (((2 * m2) / (m1 + m2)) * v2));
var newV2 = ((((2 * m1) / (m1 + m2)) * v1) - (((m1 - m2) / (m1 + m2)) * v2));
if ((_y > target._y) && (newV1 < v1)) {
yspeed = newV1;
target.yspeed = newV2;
}
}
}
if ((target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
_root.cardashsnd.start();
xspeed = xspeed + (((_x - target._x) / 40) + (target.xspeed / 5));
if ((target._x > (_x - ((_width / 2) + (target._width / 2)))) && (target._x < (_x + ((_width / 2) + (target._width / 2))))) {
var s1 = yspeed;
var s2 = target.yspeed;
var sDiff = 0;
if (((s1 < 0) && (s2 >= 0)) || ((s2 < 0) && (s1 >= 0))) {
if (s1 < 0) {
var sDiff = (s2 - s1);
} else {
var sDiff = (s1 - s2);
}
} else if ((s1 >= 0) && (s2 >= 0)) {
if (s1 > s2) {
var sDiff = (s1 - s2);
} else {
var sDiff = (s2 - s1);
}
} else {
var sDiff = (s1 - s2);
}
if (sDiff < 0) {
sDiff = -sDiff;
}
if (sDiff > 6) {
sDiff = sDiff - 5;
life = life - (((sDiff * 12) / mass) / 2);
target.life = target.life - (((sDiff * 12) / mass) / 4);
sparkNo = sDiff;
}
if (sDiff > 3) {
hitSounds();
}
if (((target == _parent.player) && (targetCar == false)) && (life > 1)) {
_parent.player.hitTime = 0;
playerHitted = true;
} else if ((target != _parent.player) && (targetCar == false)) {
playerHitted = false;
}
i == 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y + (_height / 2)) - random(_height / 2);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + 5;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
var v1 = yspeed;
var m1 = mass;
var v2 = target.yspeed;
var m2 = target.mass;
var newV1 = ((((m1 - m2) / (m1 + m2)) * v1) + (((2 * m2) / (m1 + m2)) * v2));
var newV2 = ((((2 * m1) / (m1 + m2)) * v1) - (((m1 - m2) / (m1 + m2)) * v2));
if ((_y < target._y) && (newV1 > v1)) {
yspeed = newV1;
target.yspeed = newV2;
}
maxSpeed = maxSpeed + random(2);
}
}
if (((target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 3)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (height / 3)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
var speedDiff = ((xspeed - target.xspeed) + (yspeed - target.yspeed));
if (speedDiff > 0) {
var sparkNo = speedDiff;
} else {
var sparkNo = (-speedDiff);
}
hitTimes = hitTimes + 1;
var v1 = xspeed;
var m1 = mass;
var v2 = target.xspeed;
var m2 = target.mass;
var newV1 = ((((m1 - m2) / (m1 + m2)) * v1) + (((2 * m2) / (m1 + m2)) * v2));
var newV2 = ((((2 * m1) / (m1 + m2)) * v1) - (((m1 - m2) / (m1 + m2)) * v2));
if (((target == _parent.player) && (targetCar == false)) && (life > 1)) {
_parent.player.hitTime = 0;
playerHitted = true;
} else if ((target != _parent.player) && (targetCar == false)) {
playerHitted = false;
}
if ((_x > target._x) && (newV1 > v1)) {
i = 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
xspeed = newV1;
target.xspeed = newV2;
}
if ((_x < target._x) && (newV1 < v1)) {
i = 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
xspeed = newV1;
target.xspeed = newV2;
}
life = life - (((sparkNo * 12) / mass) / 8);
}
}
}
i = i + 1;
}
var target = _parent.walls;
if ((target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2.4)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2.4)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
if (yspeed > 0) {
var sparkNo = yspeed;
}
if (yspeed < 0) {
var sparkNo = (-yspeed);
}
hitSounds();
i = 0;
while (i < (sparkNo / 4)) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
life = life - (((sparkNo * 12) / mass) / 2);
yspeed = (-yspeed) * 0.5;
}
if ((target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2.2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2.2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
var s1 = yspeed;
var s2 = target.yspeed;
var sDiff = 0;
if (((s1 < 0) && (s2 >= 0)) || ((s2 < 0) && (s1 >= 0))) {
if (s1 < 0) {
sDiff = s2 - s1;
} else {
sDiff = s1 - s2;
}
} else if ((s1 >= 0) && (s2 >= 0)) {
if (s1 > s2) {
sDiff = s1 - s2;
} else {
sDiff = s2 - s1;
}
} else {
sDiff = s1 - s2;
}
if (sDiff < 0) {
sDiff = -sDiff;
}
sparksNo = sDiff;
hitSounds();
i = 0;
while (i < (sparkNo / 4)) {
hitSounds();
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
life = life - (((sparkNo * 12) / mass) / 2);
yspeed = (-yspeed) * 0.5;
}
if (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
_x = (_x - (xspeed / 3));
xspeed = (-xspeed) * 0.2;
if (yspeed > 0) {
var sparkNo = yspeed;
}
if (yspeed < 0) {
var sparkNo = (-yspeed);
}
if ((sparkNo / 4) > 1) {
hitSounds();
}
hitSounds();
i = 0;
while (i < (sparkNo / 4)) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
life = life - (((sparkNo * 12) / mass) / 6);
}
if (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
_x = (_x - (xspeed / 3));
xspeed = (-xspeed) * 0.2;
if (yspeed > 0) {
var sparkNo = yspeed;
}
if (yspeed < 0) {
var sparkNo = (-yspeed);
}
if ((sparkNo / 4) > 1) {
hitSounds();
}
i = 0;
while (i < (sparkNo / 4)) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.spark, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
life = life - (((sparkNo * 12) / mass) / 6);
}
if (_root.game.sound.type == 2) {
var dist = Math.sqrt(((_x - _root.game.sound._x) * (_x - _root.game.sound._x)) + ((_y - _root.game.sound._y) * (_y - _root.game.sound._y)));
if (dist < 300) {
interestX = _root.game.sound._x;
interestY = _root.game.sound._y;
interestLevel = interestLevel + 50;
}
if (dist < (_root.game.sound.size * 2)) {
life = life - (((_root.game.sound.size * 2) - dist) / 8);
var adjside = (_root.game.sound._x - _x);
var oppside = (-1 * (_root.game.sound._y - _y));
var angle = Math.atan2(oppside, adjside);
angle = (angle / 3.141593) * 180;
var throwRot = (-1 * angle);
xspeed = xspeed - (Math.cos(throwRot * 0.01745329) * (((_root.game.sound.size * 2) - dist) / (10 * mass)));
yspeed = yspeed + (Math.sin(throwRot * 0.01745329) * (((_root.game.sound.size * 2) - dist) / (10 * mass)));
}
}
if ((life < -75) && (exploded == false)) {
exploded = true;
_root.id = _root.id + 1;
_root.game.expTargetX = _x;
_root.game.expTargetY = _y;
_root.game.expSize = _height;
_root.game.expSize = _height;
trace("exp552");
_root.blastsnd.setVolume(80);
_root.blastsnd.start();
duplicateMovieClip (_root.game.explosion, "explosion" + _root.id, _root.id + 300);
_root.game["explosion" + _root.id]._x = _x;
_root.game["explosion" + _root.id]._y = _y;
_root.game["explosion" + _root.id]._height = _root.game.expSize / 2.5;
_root.game["explosion" + _root.id]._width = _root.game.expSize / 2.5;
_root.game["explosion" + _root.id].sizeE = _root.game.expSize * 2;
i = 0;
while (i < 4) {
_root.game.effects2.id = _root.game.effects2.id + 1;
duplicateMovieClip (_parent.effects2.tire, "spark" + _parent.effects2.id, _parent.effects2.id + 1);
_root.game.effects2["spark" + _root.game.effects2.id]._x = _x;
_root.game.effects2["spark" + _root.game.effects2.id]._y = _y;
i = i + 1;
}
}
if ((life < 50) && (life > -75)) {
timerSmoke = timerSmoke + 1;
if (timerSmoke > 1) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.smoke, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = _x;
_root.game.effects["spark" + _root.game.effects.id]._y = _y;
_root.game.effects["spark" + _root.game.effects.id]._height = _root.game.effects["spark" + _root.game.effects.id]._height + _root.game.player.yspeed;
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
timerSmoke = 0;
}
}
if (life < -75) {
timerSmoke = timerSmoke + 1;
if (timerSmoke > 1) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.smoke2, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = _x;
_root.game.effects["spark" + _root.game.effects.id]._y = _y;
_root.game.effects["spark" + _root.game.effects.id]._height = _root.game.effects["spark" + _root.game.effects.id]._height + _root.game.player.yspeed;
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
timerSmoke = 0;
}
}
if (life > 0) {
if ((_x + xspeed) < targetX) {
xspeed = xspeed + 0.2;
} else if ((_x < targetX) && (xspeed > 0)) {
xspeed = xspeed * 0.97;
}
if ((_x + xspeed) > targetX) {
xspeed = xspeed - 0.2;
}
if ((_x > targetX) && (xspeed < 0)) {
xspeed = xspeed * 0.97;
}
if (up == false) {
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - (maxSpeed / 30);
}
_rotation = (((xspeed * 3) + spin) + 180);
} else {
var laneChange = random(500);
if (laneChange == 10) {
var chooseLane = (1 + random(3));
lane = _root.game["lane" + chooseLane];
targetX = lane.targetX;
maxSpeed = lane.maxSpeed;
}
if (yspeed < maxSpeed) {
yspeed = yspeed + (maxSpeed / 30);
}
_rotation = ((xspeed * 6) / mass);
}
} else {
_rotation = (_rotation + ((xspeed * 10) / mass));
}
if ((life < 0) && (targetCar != true)) {
if (playerHitted == true) {
playerHitted = false;
}
}
if ((_name != "car") && (targetCar != true)) {
if ((_y > 600) || (_y < -1700)) {
_root.carsAlive = _root.carsAlive - 1;
engineSound.stop();
removeMovieClip(this);
}
}
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
showy = _y;
showx = _x;
_x = (_x + xspeed);
_y = (_y - ((-_parent.player.yspeed) + yspeed));
if (targetCar == true) {
_root.game.targetShow._x = _x;
_root.game.targetShow._y = _y;
var pScore = (10 - Math.ceil(life / 10));
if (pScore < 1) {
pScore = 1;
}
_root.game.targetShow.arrowMc.arrowSubMc.gotoAndStop(pScore);
}
}
}
Instance of Symbol 576 MovieClip "targetShow" in Symbol 629 MovieClip Frame 1
onClipEvent (enterFrame) {
this.swapDepths(501);
}
Instance of Symbol 429 MovieClip in Symbol 629 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 430 MovieClip "prop" in Symbol 629 MovieClip Frame 1
onClipEvent (load) {
startY = _y;
yspeed = 0;
xspeed = 0;
hitTimes = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 593 MovieClip "player" in Symbol 629 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
_root.reloadComplete = true;
maxSpeed = 50;
yspeed = 50;
xspeed = 0;
mass = ((_height + _width) / 33) * 5;
maxLife = 400;
life = maxLife;
slowTimer = 0;
origWidth = _width;
this.swapDepths(2);
yspeed = 60;
exploded = false;
smokeTime = 0;
hitTime = 0;
skidPlaying = false;
rev = true;
revLength = 0;
explodeTimer = 10;
colorArr = ["0x339999", "0x99CC66", "0x993333", "0xCCCC66"];
}
onClipEvent (enterFrame) {
if (_root.hud.speed >= 200) {
skidActive = true;
}
if (Key.isDown(40)) {
}
if (skidActive == true) {
if (Key.isDown(40)) {
} else {
skidActive = false;
}
}
if ((skidActive == true) && (_root.hud.speed <= 30)) {
_root.skidDone = true;
}
if (_root.game.cars.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) && (yspeed > 30)) {
hitTime = hitTime + 1;
} else if (hitTime > 0) {
hitTime = 0;
} else {
hitTime = 0;
}
if (yspeed < 0) {
yspeed = yspeed - (yspeed / 2);
}
if ((yspeed / 5) < 3.5) {
var turnSpeed = (yspeed / 5);
} else {
turnSpeed = 3.5;
}
if ((_root.gocar && (yspeed < maxSpeed)) && (life > 0)) {
}
if ((Key.isDown(38) && (yspeed < maxSpeed)) && (life > 0)) {
yspeed = yspeed + 0.8;
if (_root.game._xscale < 200) {
trace("this is if condition..");
_root.game._xscale = _root.game._xscale - 1;
_root.game._yscale = _root.game._yscale - 1;
}
} else if (_root.game._xscale > 10) {
trace("this is else condition...");
_root.game._xscale = _root.game._xscale + 2;
_root.game._yscale = _root.game._yscale + 2;
}
if ((Key.isDown(32) && (yspeed > 0)) && (life > 0)) {
_root.pressspace = true;
} else {
if (turnSpeed > 3.5) {
turnSpeed = turnSpeed - 0.1;
}
skidPlaying = false;
skidSound.stop();
}
if (Key.isDown(39) && (life > 0)) {
xspeed = xspeed + turnSpeed;
}
if (Key.isDown(37) && (life > 0)) {
xspeed = xspeed - turnSpeed;
}
_rotation = (xspeed / 2);
xspeed = xspeed * 0.8;
_x = (_x + xspeed);
yspeed = yspeed * 0.99;
showx = _x;
showy = _y;
if (life < 0) {
explodeTimer = explodeTimer + 1;
}
if ((life < 0) && (explodeTimer > 20)) {
explodeTimer = 0;
exploded = true;
_root.id = _root.id + 1;
_root.game.expTargetX = _x;
_root.game.expTargetY = _y;
_root.game.expSize = _height;
_root.game.expSize = _height;
duplicateMovieClip (_root.game.explosion, "explosion" + _root.id, _root.id + 1);
_root.game["explosion" + _root.id]._x = _x;
_root.game["explosion" + _root.id]._y = _y;
_root.game["explosion" + _root.id]._height = _root.game.expSize / 3;
_root.game["explosion" + _root.id]._width = _root.game.expSize / 3;
_root.game["explosion" + _root.id].sizeE = _root.game.expSize * 2;
}
if (life < 40) {
smokeTime = smokeTime + (yspeed / 5);
if (smokeTime > 5) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_parent.effects.smoke, "spark" + _parent.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = _x;
_root.game.effects["spark" + _root.game.effects.id]._y = _y - (_height / 2);
_root.game.effects["spark" + _root.game.effects.id]._height = _root.game.effects["spark" + _root.game.effects.id]._height + yspeed;
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = yspeed;
_root.game.effects.id = _root.game.effects.id + 1;
smokeTime = 0;
}
}
var target = _parent.walls;
if ((target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 3)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 3)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
if (yspeed > 0) {
life = life - yspeed;
} else {
life = life + yspeed;
}
yspeed = (-yspeed) * 1;
}
if (target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) && (yspeed + _root.game.player.yspeed)) {
if (yspeed > 0) {
life = life - yspeed;
} else {
life = life + yspeed;
}
_y = (_y - yspeed);
yspeed = (-yspeed) * 1;
}
if (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) && (xspeed < 0)) {
_x = (_x - xspeed);
xspeed = (-xspeed) * 0.2;
var sparkNo = ((yspeed / 5) - 2);
life = life - (sparkNo / 5);
i = 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.spark, "spark" + _root.game.effects.id, _root.game.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
i = 0;
while (i < (sparkNo / 4)) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.paint, "spark" + _root.game.effects.id, _root.game.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = yspeed * 1.5;
i = i + 1;
}
}
if (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) && (xspeed > 0)) {
_x = (_x - xspeed);
xspeed = (-xspeed) * 0.2;
var sparkNo = ((yspeed / 5) - 2);
life = life - (sparkNo / 5);
i = 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.spark, "spark" + _root.game.effects.id, _parent.effects.id + 1);
var pColor = new Color(_root.game.effects["spark" + _root.game.effects.id]);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
i = 0;
while (i < (sparkNo / 4)) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.paint, "spark" + _root.game.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = yspeed * 1.5;
i = i + 1;
}
}
if (_root.game.slower.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
if ((_x * (1 / (100 / _root.game._xscale))) < 0) {
_root.pavementTime = _root.pavementTime + 1;
}
if (slowTimer < 20) {
slowTimer = slowTimer + 1;
} else {
yspeed = yspeed * 0.98;
}
} else if (slowTimer > 0) {
slowTimer = slowTimer - 1;
}
if (_root.game.sound.type == 2) {
var dist = Math.sqrt(((_x - _root.game.sound._x) * (_x - _root.game.sound._x)) + ((_y - _root.game.sound._y) * (_y - _root.game.sound._y)));
if (dist < 300) {
interestX = _root.game.sound._x;
interestY = _root.game.sound._y;
interestLevel = interestLevel + 50;
}
if (dist < (_root.game.sound.size * 2)) {
life = life - (((_root.game.sound.size * 2) - dist) / 50);
var adjside = (_root.game.sound._x - _x);
var oppside = (-1 * (_root.game.sound._y - _y));
var angle = Math.atan2(oppside, adjside);
angle = (angle / 3.141593) * 180;
var throwRot = (-1 * angle);
xspeed = xspeed - (Math.cos(throwRot * 0.01745329) * (((_root.game.sound.size * 2) - dist) / (5 * mass)));
yspeed = yspeed + (Math.sin(throwRot * 0.01745329) * (((_root.game.sound.size * 2) - dist) / (5 * mass)));
}
}
}
Instance of Symbol 440 MovieClip "gun" in Symbol 629 MovieClip Frame 1
onClipEvent (load) {
targetC = _parent.targetShow;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 461 MovieClip "effects" in Symbol 629 MovieClip Frame 1
onClipEvent (load) {
id = 0;
}
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 474 MovieClip "explosion" in Symbol 629 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 461 MovieClip "effects2" in Symbol 629 MovieClip Frame 1
onClipEvent (load) {
!!!ERROR
Instance of Symbol 476 MovieClip in Symbol 629 MovieClip Frame 1
onClipEvent (enterFrame) {
!!!ERROR
Instance of Symbol 488 MovieClip in Symbol 629 MovieClip Frame 1
onClipEvent (load) {
targetC = _parent.targetShow;
}
onClipEvent (enterFrame) {
!!!ERROR
Symbol 638 Button
on (release) {
_root.gotoAndStop("menu");
}
on (rollOver) {
_root.btnsnd.start();
}
Instance of Symbol 70 MovieClip in Symbol 639 MovieClip Frame 1
on (release) {
getURL ("http://www.gamescop.com", "_blank");
}
Symbol 639 MovieClip Frame 57
stop();
Symbol 648 Button
on (release) {
_root.moregames();
}
on (rollOver) {
_root.btnsnd.start();
}
Symbol 649 Button
on (release) {
_root.gotoAndStop("menuanimation");
}
on (rollOver) {
_root.btnsnd.start();
}
Instance of Symbol 70 MovieClip in Symbol 650 MovieClip Frame 1
on (release) {
getURL ("http://www.gamescop.com", "_blank");
}
Symbol 650 MovieClip Frame 58
stop();