home *** CD-ROM | disk | FTP | other *** search
- class Class.Bullet2 extends Class.Bullet
- {
- var x;
- var y;
- function Bullet2()
- {
- super();
- }
- function checkHit()
- {
- var _loc4_ = _root.mc.balloonArray;
- var _loc5_ = 20;
- for(var _loc6_ in _loc4_)
- {
- var _loc3_ = _loc4_[_loc6_];
- if(this.hitTest(_loc3_.area))
- {
- if(_loc3_.inHit)
- {
- return undefined;
- }
- _loc3_.hit();
- _loc3_.inHit = true;
- _root.soundStart("balloon_snd");
- _root.mc.balloonNum--;
- _root.mc.balloonHit = _root.mc.balloonHit + 1;
- _root.setScore(_loc5_,"balloon");
- _root.UI_mc.setBalloonNum();
- return undefined;
- }
- }
- }
- function hit()
- {
- }
- function moveStop()
- {
- _root.mc.addObj("bulletStick",this.x,this.y + 20,3 + int(Math.random() * 3));
- this._visible = false;
- this.gotoAndStop(1);
- _root.playControl.onShootEnd();
- _root.soundStart("hit2_snd");
- }
- }
-