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

  1. if(_parent.cur_balls < _parent.max_balls / 2)
  2. {
  3.    if(!(gun_delay % 8))
  4.    {
  5.       var x = (_root.absloc(gun0).x - _parent._x) * 100 / _parent._xscale;
  6.       var y = (_root.absloc(gun0).y - _parent._y) * 100 / _parent._yscale;
  7.       _parent.new_ball(x,y,0,0,0);
  8.       _root.shot_sfx.start();
  9.    }
  10. }
  11. this._rotation += 2;
  12. this._x = (_root.absloc(target).x - _parent._x) * 100 / _parent._xscale;
  13. this._y = (_root.absloc(target).y - _parent._y) * 100 / _parent._yscale;
  14. gun_delay++;
  15. gun_delay %= 64;
  16. if(hp > 0)
  17. {
  18.    prevFrame();
  19.    play();
  20. }
  21.