home *** CD-ROM | disk | FTP | other *** search
- function changeLvl()
- {
- if(_root.fade._currentframe == 1)
- {
- _root.carp1.yvel = 0;
- _root.carp2.yvel = 0;
- fade.gotoAndStop(2);
- }
- }
- function resetLvl()
- {
- if(_root.fade._currentframe == 1)
- {
- fuel = 0;
- HUD.bar.fFuel = 1;
- _root.carp1.yvel = 0;
- _root.carp2.yvel = 0;
- _root.fade.gotoAndStop(2);
- }
- }
- function gravity(type)
- {
- _root.gravityType = type;
- _root.car.dir = type;
- _root.car.flipSide = true;
- _root.wait = true;
- }
- function kill()
- {
- _root.car.dead = true;
- }
- function smoke()
- {
- var _loc2_ = "ball" + depthHolder;
- _root.attachMovie("ball",_loc2_,depthHolder);
- _root[_loc2_]._x = _root.fake._x - 40;
- _root[_loc2_]._y = _root.fake._y - 10;
- depthHolder++;
- }
- function fadeR()
- {
- if(_root.reset)
- {
- _root.gotoAndPlay("reset");
- return undefined;
- }
- _root.gravityType = "normal";
- _root.level += 1;
- _root.fuel = 0;
- _root.score += 100;
- _root.HUD.bar.fFuel = 1;
- _root.fuelCollect = false;
- _root.fuelFade = true;
- _root.starCollect = false;
- _root.details.tutswitch = false;
- _root.tutorialDone = false;
- _root.nextFrame();
- }
- function stopSFX()
- {
- steamSide.stop();
- steamSideB.stop();
- steam.stop();
- _root.boss.ufoS.stop();
- }
- stop();
- ls();
- if(_root.sound)
- {
- carEngine.start(0,999999);
- }
- _root.engineFrame = _root._currentframe - 1;
- depthHolder = 0;
- fuel = 0;
- level = 1;
- score = 0;
- gravityType = "normal";
- paused = false;
- depthHolder = 0;
- car.onEnterFrame = function()
- {
- with(_root.car)
- {
- if(_root.sound)
- {
- if(ySpeed > 2)
- {
- if(_root.bg.hitTest(_x,_y + 10,true))
- {
- _root.cSound();
- }
- }
- if(_root.bg.hitTest(_x - _width / 2 - 5,_y - 20,true))
- {
- if(xSpeed < -5)
- {
- _root.cSound();
- }
- }
- if(xSpeed > 5)
- {
- if(_root.bg.hitTest(_x + _width / 2 + 5,_y - 20,true))
- {
- _root.cSound();
- }
- }
- }
- }
- };
-