Combined Code
frame 1 {
stop();
}
movieClip 3 {
}
movieClip 6 {
}
movieClip 9 {
}
// unknown tag 88 length 64
button 13 {
on (release) {
stopAllSounds();
nextFrame();
}
}
button 15 {
on (press) {
prevFrame();
sound.setVolume(99);
}
}
movieClip 16 {
frame 1 {
stop();
}
}
movieClip 18 {
}
button 21 {
on (press) {
_root.gotoAndPlay(2);
}
}
button 22 {
on (release) {
_root.gotoAndPlay('battle_start');
}
}
button 24 {
on (release) {
_root.gotoAndPlay('title');
}
}
frame 350 {
stop();
}
button 32 {
on (press) {
_root.nextFrame();
}
}
movieClip 35 {
}
movieClip 40 {
frame 1 {
stop();
}
}
movieClip 48 {
}
movieClip 49 {
frame 1 {
stop();
}
}
instance rs_topdown of movieClip 49 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.car_mc)) {
_root.gotoAndStop('carjack');
}
if (Key.isDown(38)) {
this.gotoAndStop(2);
this._y -= 5;
} else {
if (Key.isDown(39)) {
this.gotoAndStop(3);
this._x += 5;
} else {
if (Key.isDown(40)) {
this.gotoAndStop(4);
this._y += 5;
} else {
if (Key.isDown(37)) {
this.gotoAndStop(5);
this._x -= 5;
} else {
this.gotoAndStop(1);
}
}
}
}
}
}
frame 352 {
function runGame() {
if (Key.isDown(38) || Key.isDown(87)) {
if (speed < speedMax) {
speed += speedAcceleration;
if (speed > speedMax) {
speed = speedMax;
}
}
}
if (Key.isDown(40) || Key.isDown(83)) {
if (speed > speedMaxReverse) {
speed -= speedAcceleration;
if (speed < speedMaxReverse) {
speed = speedMaxReverse;
}
}
}
if (Key.isDown(37) || Key.isDown(65)) {
_root.car_mc.gotoAndStop(2);
steering -= steeringAcceleration;
if (steering > steeringMax) {
steering = steeringMax;
}
}
if (Key.isDown(39) || Key.isDown(68)) {
_root.car_mc.gotoAndStop(3);
steering += steeringAcceleration;
if (steering < -steeringMax) {
steering = -steeringMax;
}
}
if (Key.isDown(32)) {
speed *= speedDeceleration;
}
speed *= groundFriction;
if (speed > 0 && speed < 0.05) {
speed = 0;
}
velocityX = Math.sin(car_mc._rotation * Math.PI / 180) * speed;
velocityY = Math.cos(car_mc._rotation * Math.PI / 180) * -speed;
car_mc._x += velocityX;
car_mc._y += velocityY;
if (steering > 0) {
if (steering < 0.05) {
steering = 0;
}
} else {
if (steering < 0) {
if (steering > -0.05) {
steering = 0;
}
}
}
steering *= steeringFriction;
steering -= steering * 0.1;
car_mc._rotation += steering * speed;
}
stop();
var speed = 0;
var speedMax = 20;
var speedMaxReverse = -8;
var speedAcceleration = 0.6;
var speedDeceleration = 0.9;
var groundFriction = 0.95;
var startingRotation = 180;
var steering = 0;
var steeringMax = 8;
var steeringAcceleration = 0.1;
var steeringFriction = 0.98;
var velocityX = 0;
var velocityY = 0;
car_mc.onEnterFrame = function () {
runGame();
};
}
movieClip 65 {
}
movieClip 68 {
}
movieClip 71 {
}
movieClip 74 {
}
movieClip 75 {
frame 99 {
_root.nextFrame();
}
}
frame 354 {
function runGame() {
if (Key.isDown(38) || Key.isDown(87)) {
if (speed < speedMax) {
speed += speedAcceleration;
if (speed > speedMax) {
speed = speedMax;
}
}
}
if (Key.isDown(40) || Key.isDown(83)) {
if (speed > speedMaxReverse) {
speed -= speedAcceleration;
if (speed < speedMaxReverse) {
speed = speedMaxReverse;
}
}
}
if (Key.isDown(37) || Key.isDown(65)) {
_root.car_mc.gotoAndStop(2);
steering -= steeringAcceleration;
if (steering > steeringMax) {
steering = steeringMax;
}
}
if (Key.isDown(39) || Key.isDown(68)) {
_root.car_mc.gotoAndStop(3);
steering += steeringAcceleration;
if (steering < -steeringMax) {
steering = -steeringMax;
}
}
if (Key.isDown(32)) {
speed *= speedDeceleration;
}
speed *= groundFriction;
if (speed > 0 && speed < 0.05) {
speed = 0;
}
velocityX = Math.sin(car_mc._rotation * Math.PI / 180) * speed;
velocityY = Math.cos(car_mc._rotation * Math.PI / 180) * -speed;
car_mc._x += velocityX;
car_mc._y += velocityY;
if (steering > 0) {
if (steering < 0.05) {
steering = 0;
}
} else {
if (steering < 0) {
if (steering > -0.05) {
steering = 0;
}
}
}
steering *= steeringFriction;
steering -= steering * 0.1;
car_mc._rotation += steering * speed;
}
stop();
var speed = 0;
var speedMax = 20;
var speedMaxReverse = -8;
var speedAcceleration = 0.6;
var speedDeceleration = 0.9;
var groundFriction = 0.95;
var startingRotation = 180;
var steering = 0;
var steeringMax = 8;
var steeringAcceleration = 0.1;
var steeringFriction = 0.98;
var velocityX = 0;
var velocityY = 0;
car_mc.onEnterFrame = function () {
runGame();
};
}
instance car_mc of movieClip 40 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.battle_boundary)) {
_root.gotoAndPlay('battle_start');
}
}
}
movieClip 77 {
}
frame 360 {
stopAllSounds();
}
frame 360 {
}
// unknown tag 88 length 73
movieClip 87 {
frame 1 {
stop();
}
}
instance player_special_meter of movieClip 87 {
onClipEvent (enterFrame) {
this._xscale = _root.specialmeter * 1;
}
}
movieClip 94 {
frame 1 {
stop();
}
frame 12 {
root.gotoAndStop('victory');
}
}
instance boss1_health of movieClip 94 {
onClipEvent (load) {
_root.bosshealth = 100;
_root.specialmeter = 0;
_root.playerhealth = 100;
}
onClipEvent (enterFrame) {
this._xscale = _root.bosshealth * 1;
if (_root.playerhealth >= 100) {
_root.playerhealth = 100;
}
if (_root.bosshealth <= 1) {
_root.bosshealth = 0;
_root.gotoAndStop('victory');
}
if (_root.playerhealth <= 1) {
_root.playerhealth = 0;
_root.gotoAndStop('defeat');
}
}
}
movieClip 99 {
frame 1 {
stop();
}
}
instance player_health of movieClip 99 {
onClipEvent (enterFrame) {
this._xscale = _root.playerhealth * 1;
}
}
frame 363 {
function getRandomLabel() {
var v1 = new Array('boss_attack', 'boss_special', 'boss_secret');
var v2 = Math.floor(Math.random() * v1.length);
return v1[v2];
}
this.gotoAndPlay(getRandomLabel());
}
frame 370 {
stop();
}
button 101 {
on (press) {
play();
}
}
button 102 {
on (press) {
gotoAndPlay('player_heal');
}
}
button 103 {
on (press) {
gotoAndPlay('player_special');
}
}
button 108 {
on (press) {
gotoAndPlay('artifact');
}
}
movieClip 117 {
}
// unknown tag 88 length 72
frame 386 {
_root.bosshealth -= 10;
}
frame 435 {
gotoAndPlay('battle_start');
}
frame 453 {
_root.playerhealth += 20;
}
frame 487 {
gotoAndPlay('battle_start');
}
frame 506 {
_root.bosshealth -= 35;
}
frame 532 {
gotoAndPlay('battle_start');
}
frame 559 {
_root.bosshealth -= 35;
_root.playerhealth += 20;
}
frame 597 {
gotoAndPlay('battle_start');
}
frame 635 {
gotoAndPlay('battle_start');
}
button 131 {
on (press) {
_root.playerhealth = 100;
_root.specialmeter = 0;
_root.bosshealth = 100;
gotoAndPlay(1);
}
}
frame 665 {
_root.playerhealth -= 20;
}
frame 689 {
gotoAndStop('battle_ready');
}
frame 714 {
_root.playerhealth -= 20;
}
frame 743 {
gotoAndStop('battle_ready');
}
frame 773 {
_root.playerhealth -= 20;
}
frame 801 {
gotoAndStop('battle_ready');
}
frame 806 {
function runGame() {
if (Key.isDown(38) || Key.isDown(87)) {
if (speed < speedMax) {
speed += speedAcceleration;
if (speed > speedMax) {
speed = speedMax;
}
}
}
if (Key.isDown(40) || Key.isDown(83)) {
if (speed > speedMaxReverse) {
speed -= speedAcceleration;
if (speed < speedMaxReverse) {
speed = speedMaxReverse;
}
}
}
if (Key.isDown(37) || Key.isDown(65)) {
_root.car_mc.gotoAndStop(2);
steering -= steeringAcceleration;
if (steering > steeringMax) {
steering = steeringMax;
}
}
if (Key.isDown(39) || Key.isDown(68)) {
_root.car_mc.gotoAndStop(3);
steering += steeringAcceleration;
if (steering < -steeringMax) {
steering = -steeringMax;
}
}
if (Key.isDown(32)) {
speed *= speedDeceleration;
}
speed *= groundFriction;
if (speed > 0 && speed < 0.05) {
speed = 0;
}
velocityX = Math.sin(car_mc._rotation * Math.PI / 180) * speed;
velocityY = Math.cos(car_mc._rotation * Math.PI / 180) * -speed;
car_mc._x += velocityX;
car_mc._y += velocityY;
if (steering > 0) {
if (steering < 0.05) {
steering = 0;
}
} else {
if (steering < 0) {
if (steering > -0.05) {
steering = 0;
}
}
}
steering *= steeringFriction;
steering -= steering * 0.1;
car_mc._rotation += steering * speed;
}
var speed = 0;
var speedMax = 20;
var speedMaxReverse = -8;
var speedAcceleration = 0.6;
var speedDeceleration = 0.9;
var groundFriction = 0.95;
var startingRotation = 180;
var steering = 0;
var steeringMax = 8;
var steeringAcceleration = 0.1;
var steeringFriction = 0.98;
var velocityX = 0;
var velocityY = 0;
car_mc.onEnterFrame = function () {
runGame();
};
}