home *** CD-ROM | disk | FTP | other *** search
- function getBag()
- {
- if(man.mask._y > 0)
- {
- return true;
- }
- return false;
- }
- function setBag(vis)
- {
- if(vis == true)
- {
- man.mask._y = 12.4;
- }
- else
- {
- man.mask._y = -3500;
- }
- }
- function landed()
- {
- if(base > 0 && base < 6 && this["t" + base]._currentframe <= 12)
- {
- this["t" + base].gotoAndPlay(2);
- }
- }
- function landedfish()
- {
- if(base > 0 && base < 6 && this["t" + base]._currentframe >= 56)
- {
- controlOn = false;
- if(man._xscale < 0)
- {
- man._x = xs[base + 1];
- }
- else if(base == 1)
- {
- man._x = xs[1] - 68.5;
- }
- else
- {
- man._x = xs[base - 1];
- }
- man.gotoAndPlay(51);
- return true;
- }
- return false;
- }
- function moveMan(dir)
- {
- var _loc1_ = dir;
- if(controlOn != false)
- {
- if(_loc1_ == "right")
- {
- if(base == 0)
- {
- nextbase = 1;
- if(man._xscale == -100)
- {
- man._xscale = 100;
- }
- man.gotoAndPlay(2);
- }
- if(base == 5)
- {
- nextbase = 5;
- if(man._xscale == -100)
- {
- man._xscale = 100;
- }
- man._x = xs[base - 1];
- man.gotoAndPlay(41);
- }
- }
- if(_loc1_ == "right")
- {
- if(base == 1 || base == 2 || base == 3 || base == 4)
- {
- nextbase = base + 1;
- if(man._xscale == -100)
- {
- man._xscale = 100;
- }
- man.gotoAndPlay(28);
- }
- }
- if(_loc1_ == "left")
- {
- if(base == 1 && getBag() == false)
- {
- nextbase = 0;
- if(man._xscale == -100)
- {
- man._xscale = 100;
- }
- man.gotoAndPlay(14);
- }
- }
- if(_loc1_ == "left")
- {
- if(base == 2 || base == 3 || base == 4 || base == 5)
- {
- nextbase = base - 1;
- if(man._xscale == 100)
- {
- man._xscale = -100;
- }
- man.gotoAndPlay(28);
- }
- }
- }
- }
- function restart()
- {
- gotoAndStop("titlescreen");
- }
- function addChance(ol, nes)
- {
- var _loc2_ = this;
- if(ol < nextupdateon && nes >= nextupdateon)
- {
- nextupdateon += addchanceafter;
- if(chances < 3)
- {
- chances++;
- c1._visible = false;
- c2._visible = false;
- c3._visible = false;
- var _loc1_ = 1;
- while(_loc1_ <= chances)
- {
- _loc2_["c" + _loc1_]._visible = true;
- _loc1_ = _loc1_ + 1;
- }
- }
- }
- }
- var gameOn = true;
- var controlOn = true;
- var base = 0;
- var nextbase = 0;
- var oldbase = 0;
- var turtlesDown = 0;
- var xs = new Array();
- z;
- xs[1] = 98.85;
- xs[2] = 167.35;
- xs[3] = 235.85;
- xs[4] = 298;
- xs[5] = 366;
- c1._visible = false;
- c2._visible = false;
- c3._visible = false;
- var i = 1;
- while(i <= chances)
- {
- this["c" + i]._visible = true;
- i++;
- }
- txtScore.text = score;
- gameover._visible = false;
- stop();
-