home *** CD-ROM | disk | FTP | other *** search
- function testIt(you)
- {
- if(bob.hitTest(you))
- {
- if(drawn == 1)
- {
- you._parent.gotoAndStop(3);
- }
- }
- }
- function hitIt(you)
- {
- if(bob.hitTest(you))
- {
- if(drawn == 1)
- {
- life.play();
- you._parent.gotoAndStop(6);
- }
- }
- }
- function hitIt2(you)
- {
- if(you.hitTest(_xmouse,_ymouse,true))
- {
- life.play();
- you._parent.gotoAndStop(6);
- }
- }
- play();
- var time = 600;
- var win = 0;
- var drawn = 0;
- var lastx = 0;
- var lasty = 0;
- var dist = 0;
- var dist2 = 0;
- var dist3 = 0;
- iPasue.removeMovieClip();
- onEnterFrame = function()
- {
- if(life._width < 2)
- {
- life._width = 100;
- }
- gameo.iscore.text = "your score is: " + score;
- if(whereTo == 2)
- {
- gameo.passed.text = "you passed " + lvls + " levels";
- }
- };
- onMouseMove = function()
- {
- dist = Math.sqrt(lasty * lasty + lastx * lastx);
- dist2 = Math.sqrt(_xmouse * _xmouse + _ymouse * _ymouse);
- dist3 = dist2 - dist;
- if(dist3 < 0)
- {
- dist3 *= -1;
- }
- lasty = _ymouse;
- lastx = _xmouse;
- };
-