home *** CD-ROM | disk | FTP | other *** search
- function YellowHole_Collide0(target)
- {
- if(target.CX2 < this.CX1 || target.CX1 > this.CX2 || target.CY2 < this.CY1 || target.CY1 > this.CY2)
- {
- return 0;
- }
- return 1;
- }
- function YellowHole_Loop()
- {
- this.Obj_Climb = this.Obj_Climb + 1;
- if(this.Obj_Climb & 3)
- {
- this.CX1 = (this.Obj_X >> 16) + this.Obj_X1;
- this.CX2 = (this.Obj_X >> 16) + this.Obj_X2;
- this.CY1 = (this.Obj_Y >> 16) + this.Obj_Y1;
- this.CY2 = (this.Obj_Y >> 16) + this.Obj_Y2;
- if(!(this.Obj_Flags & 0x40))
- {
- var x;
- if(_root.YellowKey.Obj_Target == _root.Runner)
- {
- x |= YellowHole_Collide0(_root.Runner);
- }
- if(_root.YellowKey.Obj_Target == _root.Fighter)
- {
- x |= YellowHole_Collide0(_root.Fighter);
- }
- if(_root.YellowKey.Obj_Target == _root.Shield)
- {
- x |= YellowHole_Collide0(_root.Shield);
- }
- if(x && this.Keys_state[4] & _root.Bits_on[6])
- {
- _root.YellowKey.Obj_Target = 0;
- this.Obj_Flags |= 64;
- this._visible = 0;
- _root.Door4.Obj_Timer = 0;
- _root.snd.attachSound("LV_199");
- _root.snd.start();
- }
- }
- }
- }
- this.setHndlr(1,this.YellowHole_Loop);
- this.gotoAndPlay("YellowHole_Loop");
- _root.KEY_LT = 37;
- _root.KEY_RT = 39;
- _root.KEY_UP = 38;
- _root.KEY_DN = 40;
- _root.KEY_A = 65;
- _root.KEY_B = 83;
- _root.KEY_LB = 81;
- _root.KEY_RB = 87;
- _root.KEY_CHEAT = 17;
- _root.Obj_Flags_ALWAYSRUN = 384;
- _root.Obj_Flags_BACKGROUND = 256;
- _root.Obj_Flags_MICKEY = 128;
- _root.Obj_Flags_DEAD = 64;
- _root.Obj_Flags_SPECIAL = 32;
- _root.Obj_Flags_KILL = 16;
- _root.Obj_Flags_KEYBD = 8;
- _root.Obj_Flags_GONE = 4;
- _root.Obj_Flags_ATTACK = 2;
- _root.Obj_Flags_CLIMBING = 1;
- this.Obj_X1 = -10;
- this.Obj_X2 = 10;
- this.Obj_Y1 = -10;
- this.Obj_Y2 = 0;
-