home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / monochrome.swf / scripts / frame_25 / DoAction.as
Encoding:
Text File  |  2005-08-26  |  806 b   |  27 lines

  1. function fire(tgt)
  2. {
  3.    duplicateMovieClip(bulE,"enmBul" + nmbr,16384 + nmbr);
  4.    _root["enmBul" + nmbr]._x = tgt._x;
  5.    _root["enmBul" + nmbr]._y = tgt._y;
  6.    _root["enmBul" + nmbr].xspeed = tgt.xspeed * 2;
  7.    _root["enmBul" + nmbr].yspeed = tgt.yspeed * 2;
  8.    _root["enmBul" + nmbr]._x += tgt.xspeed * 6;
  9.    _root["enmBul" + nmbr]._y += tgt.yspeed * 6;
  10.    nmbr++;
  11. }
  12. function fire2(tgt)
  13. {
  14.    duplicateMovieClip(bulE2,"enmBul" + nmbr,16384 + nmbr);
  15.    _root["enmBul" + nmbr]._x = tgt._x;
  16.    _root["enmBul" + nmbr]._y = tgt._y;
  17.    _root["enmBul" + nmbr].xspeed = tgt.xspeed * 5;
  18.    _root["enmBul" + nmbr].yspeed = tgt.yspeed * 5;
  19.    _root["enmBul" + nmbr]._x += tgt.xspeed * 6;
  20.    _root["enmBul" + nmbr]._y += tgt.yspeed * 6;
  21.    nmbr++;
  22. }
  23. stop();
  24. nmbr = 500;
  25. s = $0;
  26. dead = false;
  27.