home *** CD-ROM | disk | FTP | other *** search
/ One Click 21 (Special) / OC021.iso / Juegos / miniscrapercaper / miniscrapercaper.swf / scripts / frame_3 / DoAction_12.as < prev    next >
Encoding:
Text File  |  2006-02-02  |  685 b   |  19 lines

  1. shooterInterval = function()
  2. {
  3.    var _loc1_ = this;
  4.    if(_loc1_.active)
  5.    {
  6.       _loc1_.shooterIntervalAct = _loc1_.shooterIntervalAct + 1;
  7.       if(_loc1_.shooterIntervalAct >= _loc1_.shooterInterval)
  8.       {
  9.          _loc1_.shooterIntervalAct = 0;
  10.          new _root.CShot({x:_loc1_.x + _loc1_.gfx.hotspot._width * 0.5,y:_loc1_.y + _loc1_.gfx.hotspot._height},Math.vector(_loc1_.shooterVx,_loc1_.shooterVy / 2),_loc1_.shooterLibId ne "" ? _loc1_.shooterLibId : "monsterShot",false,_root.eventPlayerDie,_loc1_.shooterShotMaxAge);
  11.          trace("attach monsterShot");
  12.       }
  13.    }
  14. };
  15. shooterIntervalInit = function(mc, engine)
  16. {
  17.    mc.shooterIntervalAct = 0;
  18. };
  19.