home *** CD-ROM | disk | FTP | other *** search
- _root.crashcount += 1;
- if(_root.crashcount == 1)
- {
- _root.crashone._visible = 0;
- }
- if(_root.crashcount == 2)
- {
- _root.crashtwo._visible = 0;
- }
- if(_root.crashcount == 3)
- {
- _root.crashthre._visible = 0;
- _root.gotoAndPlay("end");
- }
- _root.petrol = 500;
- _root.ship.percentage = 100;
- _root.ship.dim = _root.petrol / 500;
- _root.ship.percentage = 100 * dim;
- if(_root.level == 1)
- {
- trace("level1");
- _root.ship._x = 50;
- _root.ship._y = 106;
- dy = 0.5;
- dx = 0;
- }
- else if(_root.level == 2)
- {
- trace("level2");
- _root.ship._x = 391;
- _root.ship._y = 365;
- dy = 0.5;
- dx = 0;
- }
- else if(_root.level == 3)
- {
- trace("level3");
- _root.ship._x = 59;
- _root.ship._y = 365;
- dy = 0.5;
- dx = 0;
- }
- else if(_root.level == 4)
- {
- trace("level4");
- _root.ship._x = 390;
- _root.ship._y = 365;
- dy = 0.5;
- dx = 0;
- }
- else if(_root.level == 5)
- {
- trace("level5");
- _root.ship._x = 360;
- _root.ship._y = 225;
- dy = 0.5;
- dx = 0;
- }
- else if(_root.level == 6)
- {
- trace("level6");
- _root.ship._x = 50;
- _root.ship._y = 106;
- dy = 0.5;
- dx = 0;
- }
- else if(_root.level == 7)
- {
- trace("level7");
- _root.ship._x = 75;
- _root.ship._y = 75;
- dy = 0.5;
- dx = 0;
- }
- else if(_root.level == 8)
- {
- trace("level8");
- _root.ship._x = 391;
- _root.ship._y = 365;
- dy = 0.5;
- dx = 0;
- }
- else if(_root.level == 9)
- {
- trace("level9");
- _root.ship._x = 390;
- _root.ship._y = 88;
- dy = 0.5;
- dx = 0;
- }
- else if(_root.level == 10)
- {
- trace("level10");
- _root.ship._x = 390;
- _root.ship._y = 225;
- dy = 0.5;
- dx = 0;
- }
- gotoAndPlay(1);
-