home *** CD-ROM | disk | FTP | other *** search
- if("0" < eval("/:fuel"))
- {
- rotation = int(getProperty("../", _rotation));
- if("90" < rotation)
- {
- rotation = "90" - (rotation - "90");
- direction = - "1";
- }
- else if(rotation < - "90")
- {
- rotation = - "90" + (rotation + "90");
- direction = - "1";
- }
- else
- {
- direction = "1";
- }
- set("../:vx",eval("../:vx") + eval("/:thrust") * (rotation / "720"));
- if(rotation < "0")
- {
- rotation = - rotation;
- }
- if(rotation < "18")
- {
- rotation = "1";
- }
- set("../:vy",eval("../:vy") - eval("/:thrust") / rotation * direction);
- set("/:fuel",eval("/:fuel") - "3");
- setProperty("/fuelgauge/bar", _xscale, eval("/:fuel") / "10");
- }
- else
- {
- tellTarget("../")
- {
- gotoAndStop(_currentframe - "1");
- }
- }
-