home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / AitchuTheAbduction.swf / scripts / frame_14 / DoAction.as
Encoding:
Text File  |  2005-11-10  |  736 b   |  31 lines

  1. Monstre3 = function()
  2. {
  3.    super();
  4.    this.vitesse = 10;
  5.    this.vie = 300;
  6. };
  7. Monstre3.prototype = new Ennemi();
  8. Object.registerClass("Monstre3Clip",Monstre3);
  9. Monstre3.prototype.tirnormal = function()
  10. {
  11.    if(_global.temps % 2 == 0 && random(10) == 0)
  12.    {
  13.       var x = 30;
  14.       var j = 0;
  15.       while(j < 3)
  16.       {
  17.          i = this.chercheTirLibre();
  18.          if(i == -1)
  19.          {
  20.             return 0;
  21.          }
  22.          this._parent.tirEnnemiClip.attachMovie("TirCourbeClip","tirEnnemi" + i,_global.tirEnnemiDepth + i);
  23.          var clip = this._parent.tirEnnemiClip["tirEnnemi" + i];
  24.          clip._x = this._x - x;
  25.          clip._y = this._y;
  26.          x += 20;
  27.          j++;
  28.       }
  29.    }
  30. };
  31.