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

  1. cheesecake._rotation += 5;
  2. if(gun_delay < 64)
  3. {
  4.    if(_parent.cur_balls < _parent.max_balls / 2)
  5.    {
  6.       if(!(gun_delay % 8))
  7.       {
  8.          var r = _parent.get_rotation(this,_parent.player) - this._rotation;
  9.          _parent.new_ball(this._x,this._y,r + this._rotation,_parent.max_speed / 2,2);
  10.          _parent.new_ball(this._x,this._y,r + this._rotation + 180,_parent.max_speed / 2,2);
  11.          _root.shot_sfx.start();
  12.       }
  13.    }
  14. }
  15. else if(suffocation.size > 100)
  16. {
  17.    suffocation.size--;
  18. }
  19. gun_delay++;
  20. gun_delay %= 128;
  21. if(hp > 0)
  22. {
  23.    prevFrame();
  24.    play();
  25. }
  26.