home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / PrettyBang.swf / scripts / DefineSprite_93 / frame_30 / DoAction.as
Encoding:
Text File  |  2007-09-27  |  395 b   |  22 lines

  1. this._x += dx;
  2. dx += ddx;
  3. if(dx * ddx > top_speed)
  4. {
  5.    ddx = - ddx;
  6. }
  7. this._rotation = _parent.get_rotation(this,_parent.player);
  8. if(!gun_delay)
  9. {
  10.    _parent.boss_helper._x = this._x;
  11.    _parent.boss_helper._y = this._y;
  12.    _parent.boss_helper._rotation = this._rotation;
  13.    _root.shot_sfx.start();
  14. }
  15. gun_delay++;
  16. gun_delay %= 64;
  17. if(hp > 0)
  18. {
  19.    prevFrame();
  20.    play();
  21. }
  22.