home *** CD-ROM | disk | FTP | other *** search
- function YellowKey_Collide0(target)
- {
- if(target.CX2 < this.CX1 || target.CX1 > this.CX2 || target.CY2 < this.CY1 || target.CY1 > this.CY2)
- {
- return 0;
- }
- return 1;
- }
- function YellowKey_Loop()
- {
- var x = 0;
- this.cacheCX();
- if(!(this.Obj_Flags & 0x40))
- {
- if(YellowKey_Collide0(_root.Runner))
- {
- this.Obj_Target = _root.Runner;
- x = 1;
- }
- if(YellowKey_Collide0(_root.Fighter))
- {
- this.Obj_Target = _root.Fighter;
- x = 1;
- }
- if(YellowKey_Collide0(_root.Shield))
- {
- this.Obj_Target = _root.Shield;
- x = 1;
- }
- if(x)
- {
- this.Obj_Flags |= 64;
- this._visible = 0;
- _root.snd.attachSound("LV_178");
- _root.snd.start();
- }
- }
- }
- this.setHndlr(1,this.YellowKey_Loop);
- this.gotoAndPlay("YellowKey_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 = -5;
- this.Obj_X2 = 5;
- this.Obj_Y1 = -10;
- this.Obj_Y2 = 0;
-