home *** CD-ROM | disk | FTP | other *** search
- class Class.Bullet_target extends Class.Bullet
- {
- var Vx;
- var Vy;
- var onEnterFrame;
- var x;
- var y;
- var Vg;
- function Bullet_target()
- {
- super();
- }
- function hitAway(_Vx, _Vy)
- {
- this._visible = true;
- this.Vx = _Vx;
- this.Vy = _Vy;
- var _loc4_ = ExtMath.atan2D(this.Vy,this.Vx);
- this._rotation = _loc4_;
- var _loc3_ = _root.playControl.wind_lv;
- var wind_Vx = _loc3_ * 5;
- §§push(this.gotoAndPlay("fly"));
- if(isNaN(wind_Vx))
- {
- wind_Vx = 0;
- }
- var hight = 0;
- this.onEnterFrame = function()
- {
- this.x += this.Vx;
- if(wind_Vx != 0)
- {
- this.x += wind_Vx;
- }
- this.y += this.Vy;
- if(this.Vy < 0)
- {
- hight -= this.Vy;
- _root.UI_mc.setHight(int(hight * 25) / 100);
- }
- this.Vy += this.Vg;
- _root.mc.make3D(this);
- this.checkHit();
- if(this.y >= _root.mc.role.y)
- {
- this.y = _root.mc.role.y;
- delete this.onEnterFrame;
- this.stick();
- }
- };
- }
- function checkHit()
- {
- }
- 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");
- }
- }
-