Frame 29
stop();
Frame 30
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
_quality = "HIGH";
_root.IncrementoVelocidad = 0.8;
_root.LimiteVelocidadAcelera = 15;
_root.LimiteVelocidadDeacelera = -4;
_root.ResistenciaGiro = 0;
_root.FactorResistenciaCocheAcelerando = 0.9;
_root.FactorResistenciaCocheSinAcelerar = 0.95;
_root.LimiteGiroMaximo = 10;
_root.minSegundos1 = 30;
_root.minSegundos2 = 45;
_root.minSegundos3 = 60;
var txtFormatoRojo = new TextFormat();
txtFormatoRojo.color = 16711680 /* 0xFF0000 */;
Instance of Symbol 48 MovieClip in Frame 30
on (release) {
getURL ("http://www.dailygames.com", "_top");
}
on (rollOver) {
this.gotoAndPlay("2");
}
on (rollOut) {
this.gotoAndPlay("1");
}
Instance of Symbol 52 MovieClip in Frame 30
on (rollOver) {
this.gotoAndPlay("2");
}
on (rollOut) {
this.gotoAndPlay("1");
}
on (release) {
_root.gotoAndPlay("nivel1");
}
Instance of Symbol 55 MovieClip in Frame 30
on (release) {
getURL ("http://www.dailygames.com", "_top");
}
on (rollOver) {
this.gotoAndPlay("2");
}
on (rollOut) {
this.gotoAndPlay("1");
}
Instance of Symbol 57 MovieClip in Frame 30
on (rollOver) {
this.gotoAndPlay("2");
}
on (rollOut) {
this.gotoAndPlay("1");
}
on (release) {
getURL ("http://www.dailygames.com/kartracing.zip", "_blank");
}
Instance of Symbol 48 MovieClip in Frame 30
on (release) {
getURL ("http://www.dailygames.com", "_top");
}
on (rollOver) {
this.gotoAndPlay("2");
}
on (rollOut) {
this.gotoAndPlay("1");
}
Frame 59
stop();
Frame 60
stopAllSounds();
Frame 69
stopAllSounds();
_root.tiempoMejor = (_root.tiempo = 0);
_root.canMove = false;
if (_root.minSegundos1 <= 5) {
_root.gotoAndPlay("menu");
}
Instance of Symbol 115 MovieClip "car" in Frame 70
onClipEvent (load) {
function sndMotor() {
if (_root.mcMotor._currentframe == 1) {
_root.mcMotor.gotoAndPlay(1);
}
}
function sndDerrape() {
_root.mcDerrape.gotoAndPlay(1);
}
function sndChoque() {
if (_root.mcChoque._currentframe == 1) {
_root.mcChoque.gotoAndPlay(1);
}
}
function puedeMover(x, y) {
h = false;
if (!_root.map.colFijo.hitTest(_x, _y, true)) {
h = true;
}
if (!h) {
this.nChoques++;
} else {
this.nChoques = 0;
}
if (this.nChoques > 10) {
_root.irA = "iniciaNivel1";
this.gotoAndPlay("choque");
}
return(h);
}
function compruebaCheckPoints() {
if (!_root.canMove) {
return(undefined);
}
if (this.hitTest(_root.map.cp1)) {
if (this.ultCheckPoint == this.nCheckPoints) {
this.ultCheckPoint = 0;
if ((_root.tiempo < _root.tiempoMejor) or (_root.tiempoMejor == 0)) {
_root.tiempoMejor = _root.tiempo;
}
_ttemp = Math.round(this.tiempo) / 1000;
_ttemp = Math.round(_ttemp * 10) / 10;
this.tiempoIni = getTimer();
if (_ttemp <= _root.minSegundos1) {
_root.minSegundos1 = _root.minSegundos1 - 5;
_root.tiempoNivel = _ttemp;
_root.gotoAndPlay("finNivel1");
_root.stop();
} else {
_root.mcVueltaRapida.gotoAndPlay(1);
}
}
this.checkPoint = 1;
}
if (this.hitTest(_root.map.cp2)) {
this.checkPoint = 2;
}
if (this.hitTest(_root.map.cp3)) {
this.checkPoint = 3;
}
if (this.hitTest(_root.map.cp4)) {
this.checkPoint = 4;
}
if (this.hitTest(_root.map.cp5)) {
this.checkPoint = 5;
}
if (this.hitTest(_root.map.cp6)) {
this.checkPoint = 6;
}
if (this.hitTest(_root.map.cp7)) {
this.checkPoint = 7;
}
if (this.hitTest(_root.map.cp8)) {
this.checkPoint = 8;
}
if (this.hitTest(_root.map.cp9)) {
this.checkPoint = 9;
}
if (this.hitTest(_root.map.cp10)) {
this.checkPoint = 10;
}
if (this.hitTest(_root.map.cp11)) {
this.checkPoint = 11;
}
if (this.ultCheckPoint == (this.checkPoint - 1)) {
this.ultCheckPoint = this.checkPoint;
}
}
var speed = 0;
var ar = 0;
var tGirando = 0;
var derrapando = false;
var rotacion = 0;
var tiempo = 0;
var tiempoIni = 0;
var tiempoMejor = 0;
var nCheckPoints = 11;
var nChoques = 0;
var ultCheckPoint = 0;
var checkPoint = 0;
this.tiempoIni = getTimer();
_root.tiempoMejor = _root.minSegundos1;
}
onClipEvent (enterFrame) {
if (_root.canMove == false) {
this.tiempoIni = getTimer();
return(undefined);
}
sndMotor();
compruebaCheckPoints();
this.tiempo = getTimer() - this.tiempoIni;
_rotation = rotacion;
if (Key.isDown(38)) {
this.speed = this.speed + _root.IncrementoVelocidad;
if (this.speed >= _root.LimiteVelocidadAcelera) {
this.speed = _root.LimiteVelocidadAcelera;
}
}
if (Key.isDown(40)) {
this.speed = this.speed - _root.IncrementoVelocidad;
if (this.speed <= _root.LimiteVelocidadDeacelera) {
this.speed = _root.LimiteVelocidadDeacelera;
}
}
if (Key.isDown(37)) {
if (this.derrapando) {
rotacion = rotacion - (this.speed / 4);
_rotation = (_rotation - 20);
} else if (this.speed > 7) {
rotacion = rotacion - (this.speed / 2);
} else if (this.speed > 0) {
rotacion = rotacion - 5;
} else if (this.speed < 0) {
rotacion = rotacion + 5;
}
if (this.speed) {
this.ar = this.ar + (this.speed / 1.5);
this.speed = this.speed - _root.ResistenciaGiro;
} else {
this.ar = this.ar - 0.5;
}
}
if (Key.isDown(39)) {
if (this.derrapando) {
rotacion = rotacion + (this.speed / 4);
_rotation = (_rotation + 20);
} else if (this.speed > 7) {
rotacion = rotacion + (this.speed / 2);
} else if (this.speed > 0) {
rotacion = rotacion + 5;
} else if (this.speed < 0) {
rotacion = rotacion - 5;
}
if (this.speed) {
this.ar = this.ar - (this.speed / 1.5);
this.speed = this.speed - _root.ResistenciaGiro;
} else {
this.ar = this.ar - 0.5;
}
}
if ((!Key.isDown(37)) & (!Key.isDown(39))) {
if (this.speed) {
this.ar = 0;
} else {
if (this.ar > 0) {
this.ar = this.ar - 0.5;
}
if (this.ar < 0) {
this.ar = this.ar + 0.5;
}
}
}
if ((this.ar > 15) and (this.ar > 0)) {
this.ar = 15;
this.tGirando = this.tGirando + 1;
}
if ((this.ar < -15) and (this.ar < 0)) {
this.ar = -15;
this.tGirando = this.tGirando + 1;
}
if (this.ar == 0) {
this.tGirando = 0;
}
r1.rotacion = -this.ar;
r2.rotacion = -this.ar;
if (Key.isDown(UP)) {
this.speed = this.speed * _root.FactorResistenciaCocheAcelerando;
} else {
this.speed = this.speed * _root.FactorResistenciaCocheSinAcelerar;
}
if ((this.speed < 0.3) and (this.speed > 0)) {
this.speed = 0;
}
if ((this.speed > -0.3) and (this.speed < 0)) {
this.speed = 0;
}
if ((this.tGirando > _root.LimiteGiroMaximo) and (this.speed > 12)) {
this.derrapando = true;
sndDerrape();
} else {
this.derrapando = false;
}
x = Math.sin(rotacion * (Math.PI/180)) * this.speed;
y = (Math.cos(rotacion * (Math.PI/180)) * this.speed) * -1;
h = puedeMover(x, y);
if (h == true) {
_root.map._x = _root.map._x - x;
_root.map._y = _root.map._y - y;
} else {
this.speed = -this.speed;
x = Math.sin(rotacion * (Math.PI/180)) * this.speed;
y = (Math.cos(rotacion * (Math.PI/180)) * this.speed) * -1;
_root.map._x = _root.map._x - x;
_root.map._y = _root.map._y - y;
_root.crashSound.gotoAndPlay(2);
this.tGirando = 0;
this.rotando = false;
if (this.mcHumoDerrape._currentframe == 1) {
this.mcHumoDerrape.gotoAndPlay("inicio");
}
sndChoque();
}
if (this.derrapando) {
if (this.mcHumoDerrape._currentframe == 1) {
this.mcHumoDerrape.gotoAndPlay("inicio");
}
}
_ttemp = Math.round(this.tiempo) / 1000;
_ttemp = Math.round(_ttemp * 10) / 10;
_ttemp1 = String(_ttemp * 10);
_ttemp1 = substring(_ttemp1, 0, length(_ttemp1) - 1);
if (_ttemp1 == String(_ttemp)) {
_root.tiempo = String(_ttemp1 + ".0");
} else {
_root.tiempo = String(_ttemp);
}
if (_ttemp > _root.minSegundos1) {
_root.txtTiempo.setTextFormat(_root.txtFormatoRojo);
}
}
Frame 79
stop();
Frame 80
_root.irA = "iniciaNivel2";
_root.canMove = false;
stop();
Frame 89
stopAllSounds();
Instance of Symbol 48 MovieClip in Frame 89
on (rollOver) {
this.gotoAndPlay("2");
}
on (rollOut) {
this.gotoAndPlay("1");
}
on (release) {
getURL ("http://www.juegosdiarios.com", "_self");
}
Instance of Symbol 52 MovieClip in Frame 89
on (rollOver) {
this.gotoAndPlay("2");
}
on (rollOut) {
this.gotoAndPlay("1");
}
on (release) {
_root.gotoAndPlay("nivel1");
}
Instance of Symbol 55 MovieClip in Frame 89
on (rollOver) {
this.gotoAndPlay("2");
}
on (rollOut) {
this.gotoAndPlay("1");
}
on (release) {
getURL ("http://www.juegosdiarios.com", "_self");
}
Instance of Symbol 57 MovieClip in Frame 89
on (rollOver) {
this.gotoAndPlay("2");
}
on (rollOut) {
this.gotoAndPlay("1");
}
on (release) {
getURL ("http://www.juegosdiarios.com/kartracing.zip", "_blank");
}
Instance of Symbol 48 MovieClip in Frame 89
on (release) {
getURL ("http://www.dailygames.com", "_top");
}
on (rollOver) {
this.gotoAndPlay("2");
}
on (rollOut) {
this.gotoAndPlay("1");
}
Frame 98
stopAllSounds();
_root.tiempoMejor = (_root.tiempo = 0);
_root.canMove = false;
Instance of Symbol 115 MovieClip "car" in Frame 99
onClipEvent (load) {
function sndMotor() {
if (_root.mcMotor._currentframe == 1) {
_root.mcMotor.gotoAndPlay(1);
}
}
function sndDerrape() {
_root.mcDerrape.gotoAndPlay(1);
}
function sndChoque() {
if (_root.mcChoque._currentframe == 1) {
_root.mcChoque.gotoAndPlay(1);
}
}
function puedeMover(x, y) {
h = false;
if (!_root.map.colFijo.hitTest(_x, _y, true)) {
h = true;
}
if (!h) {
this.nChoques++;
} else {
this.nChoques = 0;
}
if (this.nChoques > 10) {
_root.irA = "iniciaNivel2";
this.gotoAndPlay("choque");
}
return(h);
}
function compruebaCheckPoints() {
if (!_root.canMove) {
return(undefined);
}
if (this.hitTest(_root.map.cp1)) {
if (this.ultCheckPoint == this.nCheckPoints) {
this.ultCheckPoint = 0;
if ((_root.tiempo < _root.tiempoMejor) or (_root.tiempoMejor == 0)) {
_root.tiempoMejor = _root.tiempo;
}
_ttemp = Math.round(this.tiempo) / 1000;
_ttemp = Math.round(_ttemp * 10) / 10;
this.tiempoIni = getTimer();
if (_ttemp <= _root.minSegundos2) {
_root.minSegundos2 = _root.minSegundos2 - 5;
_root.tiempoNivel = _ttemp;
_root.gotoAndPlay("finNivel2");
_root.stop();
} else {
_root.mcVueltaRapida.gotoAndPlay(1);
}
}
this.checkPoint = 1;
}
if (this.hitTest(_root.map.cp2)) {
this.checkPoint = 2;
}
if (this.hitTest(_root.map.cp3)) {
this.checkPoint = 3;
}
if (this.hitTest(_root.map.cp4)) {
this.checkPoint = 4;
}
if (this.hitTest(_root.map.cp5)) {
this.checkPoint = 5;
}
if (this.hitTest(_root.map.cp6)) {
this.checkPoint = 6;
}
if (this.hitTest(_root.map.cp7)) {
this.checkPoint = 7;
}
if (this.hitTest(_root.map.cp8)) {
this.checkPoint = 8;
}
if (this.hitTest(_root.map.cp9)) {
this.checkPoint = 9;
}
if (this.hitTest(_root.map.cp10)) {
this.checkPoint = 10;
}
if (this.hitTest(_root.map.cp11)) {
this.checkPoint = 11;
}
if (this.ultCheckPoint == (this.checkPoint - 1)) {
this.ultCheckPoint = this.checkPoint;
}
}
var speed = 0;
var ar = 0;
var tGirando = 0;
var derrapando = false;
var rotacion = 0;
var tiempo = 0;
var tiempoIni = 0;
var tiempoMejor = 0;
var nCheckPoints = 11;
var nChoques = 0;
var ultCheckPoint = 0;
var checkPoint = 0;
this.tiempoIni = getTimer();
_root.tiempoMejor = _root.minSegundos2;
}
onClipEvent (enterFrame) {
if (_root.canMove == false) {
this.tiempoIni = getTimer();
return(undefined);
}
sndMotor();
compruebaCheckPoints();
this.tiempo = getTimer() - this.tiempoIni;
_rotation = rotacion;
if (Key.isDown(38)) {
this.speed = this.speed + _root.IncrementoVelocidad;
if (this.speed >= _root.LimiteVelocidadAcelera) {
this.speed = _root.LimiteVelocidadAcelera;
}
}
if (Key.isDown(40)) {
this.speed = this.speed - _root.IncrementoVelocidad;
if (this.speed <= _root.LimiteVelocidadDeacelera) {
this.speed = _root.LimiteVelocidadDeacelera;
}
}
if (Key.isDown(37)) {
if (this.derrapando) {
rotacion = rotacion - (this.speed / 4);
_rotation = (_rotation - 20);
} else if (this.speed > 7) {
rotacion = rotacion - (this.speed / 2);
} else if (this.speed > 0) {
rotacion = rotacion - 5;
} else if (this.speed < 0) {
rotacion = rotacion + 5;
}
if (this.speed) {
this.ar = this.ar + (this.speed / 1.5);
this.speed = this.speed - _root.ResistenciaGiro;
} else {
this.ar = this.ar - 0.5;
}
}
if (Key.isDown(39)) {
if (this.derrapando) {
rotacion = rotacion + (this.speed / 4);
_rotation = (_rotation + 20);
} else if (this.speed > 7) {
rotacion = rotacion + (this.speed / 2);
} else if (this.speed > 0) {
rotacion = rotacion + 5;
} else if (this.speed < 0) {
rotacion = rotacion - 5;
}
if (this.speed) {
this.ar = this.ar - (this.speed / 1.5);
this.speed = this.speed - _root.ResistenciaGiro;
} else {
this.ar = this.ar - 0.5;
}
}
if ((!Key.isDown(37)) & (!Key.isDown(39))) {
if (this.speed) {
this.ar = 0;
} else {
if (this.ar > 0) {
this.ar = this.ar - 0.5;
}
if (this.ar < 0) {
this.ar = this.ar + 0.5;
}
}
}
if ((this.ar > 15) and (this.ar > 0)) {
this.ar = 15;
this.tGirando = this.tGirando + 1;
}
if ((this.ar < -15) and (this.ar < 0)) {
this.ar = -15;
this.tGirando = this.tGirando + 1;
}
if (this.ar == 0) {
this.tGirando = 0;
}
r1.rotacion = -this.ar;
r2.rotacion = -this.ar;
if (Key.isDown(UP)) {
this.speed = this.speed * _root.FactorResistenciaCocheAcelerando;
} else {
this.speed = this.speed * _root.FactorResistenciaCocheSinAcelerar;
}
if ((this.speed < 0.3) and (this.speed > 0)) {
this.speed = 0;
}
if ((this.speed > -0.3) and (this.speed < 0)) {
this.speed = 0;
}
if ((this.tGirando > _root.LimiteGiroMaximo) and (this.speed > 12)) {
this.derrapando = true;
sndDerrape();
} else {
this.derrapando = false;
}
x = Math.sin(rotacion * (Math.PI/180)) * this.speed;
y = (Math.cos(rotacion * (Math.PI/180)) * this.speed) * -1;
h = puedeMover(x, y);
if (h == true) {
_root.map._x = _root.map._x - x;
_root.map._y = _root.map._y - y;
} else {
this.speed = -this.speed;
x = Math.sin(rotacion * (Math.PI/180)) * this.speed;
y = (Math.cos(rotacion * (Math.PI/180)) * this.speed) * -1;
_root.map._x = _root.map._x - x;
_root.map._y = _root.map._y - y;
_root.crashSound.gotoAndPlay(2);
this.tGirando = 0;
this.rotando = false;
if (this.mcHumoDerrape._currentframe == 1) {
this.mcHumoDerrape.gotoAndPlay("inicio");
}
sndChoque();
}
if (this.derrapando) {
if (this.mcHumoDerrape._currentframe == 1) {
this.mcHumoDerrape.gotoAndPlay("inicio");
}
}
_ttemp = Math.round(this.tiempo) / 1000;
_ttemp = Math.round(_ttemp * 10) / 10;
_ttemp1 = String(_ttemp * 10);
_ttemp1 = substring(_ttemp1, 0, length(_ttemp1) - 1);
if (_ttemp1 == String(_ttemp)) {
_root.tiempo = String(_ttemp1 + ".0");
} else {
_root.tiempo = String(_ttemp);
}
if (_ttemp > _root.minSegundos2) {
_root.txtTiempo.setTextFormat(_root.txtFormatoRojo);
}
}
Frame 108
stop();
Frame 109
_root.irA = "iniciaNivel3";
_root.canMove = false;
_root.mcTiempoNivel.gotoAndPlay("inicio");
stop();
Frame 119
stopAllSounds();
Instance of Symbol 48 MovieClip in Frame 119
on (rollOver) {
this.gotoAndPlay("2");
}
on (rollOut) {
this.gotoAndPlay("1");
}
on (release) {
getURL ("http://www.juegosdiarios.com", "_self");
}
Instance of Symbol 52 MovieClip in Frame 119
on (rollOver) {
this.gotoAndPlay("2");
}
on (rollOut) {
this.gotoAndPlay("1");
}
on (release) {
_root.gotoAndPlay("nivel1");
}
Instance of Symbol 55 MovieClip in Frame 119
on (rollOver) {
this.gotoAndPlay("2");
}
on (rollOut) {
this.gotoAndPlay("1");
}
on (release) {
getURL ("http://www.juegosdiarios.com", "_self");
}
Instance of Symbol 57 MovieClip in Frame 119
on (rollOver) {
this.gotoAndPlay("2");
}
on (rollOut) {
this.gotoAndPlay("1");
}
on (release) {
getURL ("http://www.juegosdiarios.com/kartracing.zip", "_blank");
}
Instance of Symbol 48 MovieClip in Frame 119
on (release) {
getURL ("http://www.dailygames.com", "_top");
}
on (rollOver) {
this.gotoAndPlay("2");
}
on (rollOut) {
this.gotoAndPlay("1");
}
Frame 128
stopAllSounds();
_root.tiempoMejor = (_root.tiempo = 0);
_root.canMove = false;
Instance of Symbol 115 MovieClip "car" in Frame 129
onClipEvent (load) {
function sndMotor() {
if (_root.mcMotor._currentframe == 1) {
_root.mcMotor.gotoAndPlay(1);
}
}
function sndDerrape() {
_root.mcDerrape.gotoAndPlay(1);
}
function sndChoque() {
if (_root.mcChoque._currentframe == 1) {
_root.mcChoque.gotoAndPlay(1);
}
}
function puedeMover(x, y) {
h = false;
if (!_root.map.colFijo.hitTest(_x, _y, true)) {
h = true;
}
if (!h) {
this.nChoques++;
} else {
this.nChoques = 0;
}
if (this.nChoques > 10) {
_root.irA = "iniciaNivel3";
this.gotoAndPlay("choque");
}
return(h);
}
function compruebaCheckPoints() {
if (!_root.canMove) {
return(undefined);
}
if (this.hitTest(_root.map.cp1)) {
if (this.ultCheckPoint == this.nCheckPoints) {
this.ultCheckPoint = 0;
_ttemp = Math.round(this.tiempo) / 1000;
_ttemp = Math.round(_ttemp * 10) / 10;
this.tiempoIni = getTimer();
if (_ttemp <= _root.minSegundos3) {
_root.minSegundos3 = _root.minSegundos3 - 5;
_root.tiempoNivel = _ttemp;
_root.gotoAndPlay("finNivel3");
_root.stop();
} else {
_root.mcVueltaRapida.gotoAndPlay(1);
}
}
this.checkPoint = 1;
}
if (this.hitTest(_root.map.cp2)) {
this.checkPoint = 2;
}
if (this.hitTest(_root.map.cp3)) {
this.checkPoint = 3;
}
if (this.hitTest(_root.map.cp4)) {
this.checkPoint = 4;
}
if (this.hitTest(_root.map.cp5)) {
this.checkPoint = 5;
}
if (this.hitTest(_root.map.cp6)) {
this.checkPoint = 6;
}
if (this.hitTest(_root.map.cp7)) {
this.checkPoint = 7;
}
if (this.hitTest(_root.map.cp8)) {
this.checkPoint = 8;
}
if (this.hitTest(_root.map.cp9)) {
this.checkPoint = 9;
}
if (this.hitTest(_root.map.cp10)) {
this.checkPoint = 10;
}
if (this.hitTest(_root.map.cp11)) {
this.checkPoint = 11;
}
if (this.ultCheckPoint == (this.checkPoint - 1)) {
this.ultCheckPoint = this.checkPoint;
}
}
var speed = 0;
var ar = 0;
var tGirando = 0;
var derrapando = false;
var rotacion = 90;
var tiempo = 0;
var tiempoIni = 0;
var tiempoMejor = 0;
var nCheckPoints = 11;
var nChoques = 0;
var ultCheckPoint = 0;
var checkPoint = 0;
this.tiempoIni = getTimer();
_root.tiempoMejor = _root.minSegundos3;
}
onClipEvent (enterFrame) {
if (_root.canMove == false) {
this.tiempoIni = getTimer();
return(undefined);
}
sndMotor();
compruebaCheckPoints();
this.tiempo = getTimer() - this.tiempoIni;
_rotation = rotacion;
if (Key.isDown(38)) {
this.speed = this.speed + _root.IncrementoVelocidad;
if (this.speed >= _root.LimiteVelocidadAcelera) {
this.speed = _root.LimiteVelocidadAcelera;
}
}
if (Key.isDown(40)) {
this.speed = this.speed - _root.IncrementoVelocidad;
if (this.speed <= _root.LimiteVelocidadDeacelera) {
this.speed = _root.LimiteVelocidadDeacelera;
}
}
if (Key.isDown(37)) {
if (this.derrapando) {
rotacion = rotacion - (this.speed / 4);
_rotation = (_rotation - 20);
} else if (this.speed > 7) {
rotacion = rotacion - (this.speed / 2);
} else if (this.speed > 0) {
rotacion = rotacion - 5;
} else if (this.speed < 0) {
rotacion = rotacion + 5;
}
if (this.speed) {
this.ar = this.ar + (this.speed / 1.5);
this.speed = this.speed - _root.ResistenciaGiro;
} else {
this.ar = this.ar - 0.5;
}
}
if (Key.isDown(39)) {
if (this.derrapando) {
rotacion = rotacion + (this.speed / 4);
_rotation = (_rotation + 20);
} else if (this.speed > 7) {
rotacion = rotacion + (this.speed / 2);
} else if (this.speed > 0) {
rotacion = rotacion + 5;
} else if (this.speed < 0) {
rotacion = rotacion - 5;
}
if (this.speed) {
this.ar = this.ar - (this.speed / 1.5);
this.speed = this.speed - _root.ResistenciaGiro;
} else {
this.ar = this.ar - 0.5;
}
}
if ((!Key.isDown(37)) & (!Key.isDown(39))) {
if (this.speed) {
this.ar = 0;
} else {
if (this.ar > 0) {
this.ar = this.ar - 0.5;
}
if (this.ar < 0) {
this.ar = this.ar + 0.5;
}
}
}
if ((this.ar > 15) and (this.ar > 0)) {
this.ar = 15;
this.tGirando = this.tGirando + 1;
}
if ((this.ar < -15) and (this.ar < 0)) {
this.ar = -15;
this.tGirando = this.tGirando + 1;
}
if (this.ar == 0) {
this.tGirando = 0;
}
r1.rotacion = -this.ar;
r2.rotacion = -this.ar;
if (Key.isDown(UP)) {
this.speed = this.speed * _root.FactorResistenciaCocheAcelerando;
} else {
this.speed = this.speed * _root.FactorResistenciaCocheSinAcelerar;
}
if ((this.speed < 0.3) and (this.speed > 0)) {
this.speed = 0;
}
if ((this.speed > -0.3) and (this.speed < 0)) {
this.speed = 0;
}
if ((this.tGirando > _root.LimiteGiroMaximo) and (this.speed > 12)) {
this.derrapando = true;
sndDerrape();
} else {
this.derrapando = false;
}
x = Math.sin(rotacion * (Math.PI/180)) * this.speed;
y = (Math.cos(rotacion * (Math.PI/180)) * this.speed) * -1;
h = puedeMover(x, y);
if (h == true) {
_root.map._x = _root.map._x - x;
_root.map._y = _root.map._y - y;
} else {
this.speed = -this.speed;
x = Math.sin(rotacion * (Math.PI/180)) * this.speed;
y = (Math.cos(rotacion * (Math.PI/180)) * this.speed) * -1;
_root.map._x = _root.map._x - x;
_root.map._y = _root.map._y - y;
_root.crashSound.gotoAndPlay(2);
this.tGirando = 0;
this.rotando = false;
if (this.mcHumoDerrape._currentframe == 1) {
this.mcHumoDerrape.gotoAndPlay("inicio");
}
sndChoque();
}
if (this.derrapando) {
if (this.mcHumoDerrape._currentframe == 1) {
this.mcHumoDerrape.gotoAndPlay("inicio");
}
}
_ttemp = Math.round(this.tiempo) / 1000;
_ttemp = Math.round(_ttemp * 10) / 10;
_ttemp1 = String(_ttemp * 10);
_ttemp1 = substring(_ttemp1, 0, length(_ttemp1) - 1);
if (_ttemp1 == String(_ttemp)) {
_root.tiempo = String(_ttemp1 + ".0");
} else {
_root.tiempo = String(_ttemp);
}
if (_ttemp > _root.minSegundos3) {
_root.txtTiempo.setTextFormat(_root.txtFormatoRojo);
}
}
Frame 138
stop();
Frame 139
_root.canMove = false;
if (_root.minSegundos1 < 10) {
_root.irA = "finJuego";
_root.mcTiempoNivel.gotoAndPlay("inicio");
} else {
_root.irA = "iniciaNivel1";
_root.mcTiempoNivel.gotoAndPlay("inicio");
}
stop();
Frame 599
_root.gotoAndPlay(1);
Symbol 24 MovieClip Frame 1
trace("cambiar los fps y/o el tiempo de espera");
var frames_to_wait = 180;
var count_frames = 0;
onEnterFrame = function () {
var _local5 = Math.round(_root.getBytesLoaded());
var _local4 = Math.round(_root.getBytesTotal());
var _local3 = Math.round((count_frames / frames_to_wait) * 100);
var _local2 = Math.round((_local5 / _local4) * _local3);
trace((_local3 + ":") + _local2);
if (count_frames < frames_to_wait) {
count_frames++;
}
if (_local2 >= 100) {
delete onEnterFrame;
gotoAndPlay ("finLoader");
} else {
gotoAndStop(_local2);
}
};
Symbol 24 MovieClip Frame 99
stop();
Symbol 24 MovieClip Frame 122
_parent.gotoAndPlay("cargado");
stop();
Instance of Symbol 11 MovieClip in Symbol 25 MovieClip Frame 53
on (release) {
getURL ("http://www.dailygames.com", "_top");
}
Symbol 25 MovieClip Frame 57
stop();
Symbol 25 MovieClip Frame 106
_parent.play();
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 15
stop();
Symbol 52 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 15
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 15
stop();
Symbol 57 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 15
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 2
gotoAndStop (10);
Symbol 105 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 40
stop();
Symbol 109 MovieClip Frame 19
stop();
Symbol 111 MovieClip Frame 30
stop();
Symbol 113 MovieClip Frame 20
stop();
Symbol 114 MovieClip Frame 15
_root.gotoAndPlay(_root.irA);
stop();
Symbol 115 MovieClip Frame 9
gotoAndPlay (1);
Symbol 115 MovieClip Frame 25
_root.gotoAndPlay(_root.irA);
Symbol 117 MovieClip Frame 1
stop();
Instance of Symbol 128 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.car.speed != 0) {
_rotation = ((Math.abs(_root.car.speed) * 20) + random(_root.car.speed));
}
}
Symbol 142 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 210
_root.canMove = true;
Symbol 161 MovieClip Frame 240
stop();
Symbol 162 MovieClip Frame 245
stop();
Symbol 174 MovieClip Frame 131
gotoAndStop (1);
_root.gotoAndPlay(_root.irA);
Symbol 197 MovieClip Frame 25
stop();
Symbol 199 Button
on (release) {
_root.gotoAndPlay(1);
}