home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- function §\x01\x02§()
- {
- return 2499 % 511 * 5;
- }
- var §\x01§ = -1828 + "\x01\x02"();
- while(true)
- {
- if(eval("\x01") == 447)
- {
- set("\x01",eval("\x01") - 141);
- §§push(true);
- }
- else if(eval("\x01") == 404)
- {
- set("\x01",eval("\x01") - 2);
- §§push(eval(function §\x01\x02§()
- {
- return 2499 % 511 * 5;
- }));
- }
- else if(eval("\x01") == 306)
- {
- set("\x01",eval("\x01") + 430);
- if(function §\x01\x02§()
- {
- return 2499 % 511 * 5;
- })
- {
- set("\x01",eval("\x01") - 106);
- }
- }
- else if(eval("\x01") == 971)
- {
- set("\x01",eval("\x01") - 567);
- §§push("\x0f");
- }
- else if(eval("\x01") == 203)
- {
- set("\x01",eval("\x01") + 26);
- }
- else if(eval("\x01") == 312)
- {
- set("\x01",eval("\x01") + 659);
- var §§pop() = function §\x01\x02§()
- {
- return 2499 % 511 * 5;
- };
- }
- else
- {
- if(eval("\x01") == 229)
- {
- set("\x01",eval("\x01") + 185);
- if(_root.paus3)
- {
- speed = 0;
- maxspeed = 0;
- }
- if(!_root.paus3)
- {
- if(this.hitTest(_root.camera))
- {
- speed = 0;
- maxspeed = 10;
- damage = 0;
- grav++;
- _Y = _Y + grav;
- while(_root.ground.hitTest(_X,_Y,true))
- {
- _Y--;
- grav = 0;
- }
- if(_root.ground.hitTest(_X + _width / 2 + ex,_Y - _height / 2,true) || _root.ground.hitTest(_X + _width / 2 + ex,_Y - _height / 6,true) || _root.ground.hitTest(_X + _width / 2 + ex,_Y - _height,true))
- {
- _X = _X - speed;
- }
- if(_root.ground.hitTest(_X - _width / 2 - ex,_Y - _height / 2,true) || _root.ground.hitTest(_X - _width / 2 - ex,_Y - _height / 6,true) || _root.ground.hitTest(_X - _width / 2 - ex,_Y - _height,true))
- {
- _X = _X + speed;
- }
- if(_root.ground.hitTest(_X,_Y - _height - 15,true))
- {
- grav = 1;
- }
- moving = 0;
- above = 0;
- if(this._x < _root.char._x && !attack && !above && !this.hitTest(_root.char) && this._currentframe != 10 && this._currentframe != 15 && this._currentframe != 20 && this._currentframe != 25 && this._currentframe != 30 && this.hitTest(_root.camera) && _root.char._currentframe != 45 && this._currentframe != 35 && this._currentframe != 40)
- {
- this._x += movespeed;
- _xscale = scale;
- this.gotoAndStop("run");
- attack = 0;
- moving = 1;
- }
- else if(this._x > _root.char._x && !attack && !above && !this.hitTest(_root.char) && this._currentframe != 10 && this._currentframe != 15 && this._currentframe != 20 && this._currentframe != 30 && this._currentframe != 25 && this.hitTest(_root.camera) && _root.char._currentframe != 45 && this._currentframe != 35 && this._currentframe != 40)
- {
- this._x -= movespeed;
- _xscale = - scale;
- this.gotoAndStop("run");
- attack = 0;
- moving = 1;
- }
- if(_root.char._currentframe == 45)
- {
- this.gotoAndStop("idle");
- moving = 0;
- }
- if(!moving && this._currentframe != 5)
- {
- moving = 0;
- }
- if(this._currentframe == 35)
- {
- this._x += movespeed;
- }
- jumpHits = 9;
- i = 1;
- while(i <= jumpHits)
- {
- jumpHit = _root.ground["jumpHit" + i];
- if(this.hitTest(jumpHit) && moving == 1)
- {
- grav = - jumpHeight;
- _Y = _Y - 4;
- moving = 0;
- }
- i++;
- }
- wallsRight = 10;
- i = 1;
- while(i <= wallsRight)
- {
- wallRight = _root["wallRight" + i];
- if(wallRight.hitTest(_X + _width / 2 + ex,_Y - _height / 2,true) || wallRight.hitTest(_X + _width / 2 + ex,_Y - _height / 6,true) || wallRight.hitTest(_X + _width / 2 + ex,_Y - _height,true))
- {
- speed = 0;
- }
- i++;
- }
- attack = 0;
- jumping = 0;
- if(!jumping && !above && !attack && this._currentframe != 25 && this._currentframe != 20 && this.hitTest(_root.char))
- {
- if(this._currentframe != 10 && this._currentframe != 15)
- {
- attack1();
- }
- if(this._currentframe != 10 && this._currentframe != 15)
- {
- attack = 0;
- }
- }
- }
- }
- break;
- }
- if(eval("\x01") == 402)
- {
- set("\x01",eval("\x01") + 78);
- §§push(!function §\x01\x02§()
- {
- return 2499 % 511 * 5;
- });
- }
- else
- {
- if(eval("\x01") == 414)
- {
- set("\x01",eval("\x01") - 414);
- break;
- }
- if(eval("\x01") == 480)
- {
- set("\x01",eval("\x01") - 277);
- if(function §\x01\x02§()
- {
- return 2499 % 511 * 5;
- })
- {
- set("\x01",eval("\x01") + 26);
- }
- }
- else if(eval("\x01") == 530)
- {
- set("\x01",eval("\x01") - 218);
- §§push("\x0f");
- §§push(1);
- }
- else
- {
- if(eval("\x01") == 736)
- {
- set("\x01",eval("\x01") - 106);
- if(function §\x01\x02§()
- {
- return 2499 % 511 * 5;
- }.hitTest() && _root.char._currentframe != 45 && this._currentframe != 35 && this._currentframe != 40)
- {
- this._x -= movespeed;
- _xscale = - scale;
- this.gotoAndStop("run");
- attack = 0;
- moving = 1;
- }
- if(_root.char._currentframe == 45)
- {
- this.gotoAndStop("idle");
- moving = 0;
- }
- if(!moving && this._currentframe != 5)
- {
- moving = 0;
- }
- if(this._currentframe == 35)
- {
- this._x += movespeed;
- }
- jumpHits = 9;
- i = 1;
- while(i <= jumpHits)
- {
- jumpHit = _root.ground["jumpHit" + i];
- if(this.hitTest(jumpHit) && moving == 1)
- {
- grav = - jumpHeight;
- _Y = _Y - 4;
- moving = 0;
- }
- i++;
- }
- set(§§constant(16),0);
- set(§§constant(27),0);
- if(!eval(§§constant(27)) && !eval(§§constant(13)) && !eval(§§constant(16)) && eval(§§constant(5))[§§constant(17)] != 25 && eval(§§constant(5))[§§constant(17)] != 20 && eval(§§constant(5))[§§constant(6)](eval("{invalid_utf8=157}\x0fo")[§§constant(15)]))
- {
- if(eval(§§constant(5))[§§constant(17)] != 10 && eval(§§constant(5))[§§constant(17)] != 15)
- {
- §§constant(28)();
- }
- if(eval(§§constant(5))[§§constant(17)] != 10 && eval(§§constant(5))[§§constant(17)] != 15)
- {
- set(§§constant(16),0);
- }
- }
- break;
- }
- if(eval("\x01") == 630)
- {
- set("\x01",eval("\x01") - 100);
- }
- else
- {
- if(eval("\x01") != 371)
- {
- break;
- }
- set("\x01",eval("\x01") + 159);
- }
- }
- }
- }
- }
- }
-