home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Diversos / ntech.swf / scripts / frame_13 / DoAction.as < prev   
Encoding:
Text File  |  2006-06-13  |  1.7 KB  |  86 lines

  1. this.onEnterFrame = function()
  2. {
  3.    BackSpeed = _xmouse / 10;
  4.    SpecialIdentity = Special;
  5.    SpecialMeter._xscale = SAmmo / TotSAmmo * 100;
  6.    if(_ymouse > 126 && _ymouse < 630)
  7.    {
  8.       Device._y = _ymouse;
  9.    }
  10.    if(StationEnergy > 200)
  11.    {
  12.       StationEnergy = 200;
  13.    }
  14.    if(EnemyMovD >= 2100)
  15.    {
  16.       EnemyMovD = 2000;
  17.    }
  18.    if(DeviceReady == true)
  19.    {
  20.       SubGraphic3._x = Device._x + 16;
  21.       SubGraphic3._y = Device._y;
  22.    }
  23.    else
  24.    {
  25.       SubGraphic3._x = HitDevice._x + 16;
  26.       SubGraphic3._y = HitDevice._y;
  27.    }
  28.    if(_ymouse > 126 && _xmouse > 126 && _ymouse < 630)
  29.    {
  30.       LaserGraphic._x = _xmouse;
  31.       LaserGraphic._y = _ymouse;
  32.       LaserGraphic._visible = 1;
  33.    }
  34.    else
  35.    {
  36.       LaserGraphic._visible = 0;
  37.    }
  38.    if(_ymouse > 126 && _xmouse > 126 && _ymouse < 630)
  39.    {
  40.       LaserBeamOutput._x = 120;
  41.       LaserBeamOutput._y = Device._y;
  42.       LaserBeamOutput._y = HitDevice._y;
  43.       LaserBeamOutput._visible = 1;
  44.    }
  45.    else
  46.    {
  47.       LaserBeamOutput._visible = 0;
  48.    }
  49.    if(Life >= 0)
  50.    {
  51.       LifeCounter = Life;
  52.    }
  53.    else
  54.    {
  55.       LifeCounter = 0;
  56.    }
  57.    LifeMeter._xscale = Life;
  58.    if(LifeMeter._xscale >= 100)
  59.    {
  60.       LifeMeter._xscale = 100;
  61.    }
  62.    else if(LifeMeter._xscale <= 0)
  63.    {
  64.       LifeMeter._xscale = 0;
  65.    }
  66.    if(ParticleCounter >= 25)
  67.    {
  68.       StageCounter++;
  69.       StageLevel++;
  70.       ParticleCounter = 0;
  71.    }
  72.    if(StageLevel >= 4)
  73.    {
  74.       Messaging = "Laser Powered";
  75.    }
  76.    if(ComboTimer != 0)
  77.    {
  78.       ComboTimer--;
  79.    }
  80.    else
  81.    {
  82.       ComboMultiplier = 1;
  83.    }
  84.    ComboShow = ComboMultiplier;
  85. };
  86.