Frame 1
stop();
geluuuj = new Sound();
geluuuj.attachSound("splash");
geluuuj2 = new Sound();
geluuuj2.attachSound("bounce");
geluuuj3 = new Sound();
geluuuj3.attachSound("leave");
this.createEmptyMovieClip("preLoader_mc", 1);
preLoader_mc._x = (Stage.width / 2) - 55;
preLoader_mc._y = Stage.height / 2;
preLoader_mc.tBytes = this.getBytesTotal();
preLoader_mc.startX = 0;
preLoader_mc.startY = 0;
preLoader_mc.createTextField("loader_txt", 10, 0, -40, 200, 40);
var loadFormat:TextFormat = new TextFormat();
loadFormat.font = "_sans";
loadFormat.bold = true;
loadFormat.size = 14;
preLoader_mc.loader_txt.setNewTextFormat(loadFormat);
preLoader_mc.onEnterFrame = function () {
var _local1 = this;
_local1.clear();
lBytes = _root.getBytesLoaded();
var percentLoaded:Number = Math.floor((lBytes / _local1.tBytes) * 100);
if (lBytes != _local1.tBytes) {
_local1.loader_txt.text = (("Loaded " + lBytes) + " of ") + _local1.tBytes;
} else {
_root.gotoAndStop("PreHome");
_local1.removeMovieClip();
}
};
Frame 18
stop();
Frame 50
function init() {
vscore = 0;
vscorefil = 0;
vscoretest = (vpoints = 1);
vbonuspoints = 10;
vlifes = 3;
vkill = false;
vterrainwidth = 528;
vterrainheight = 208;
vterrainxmidle = 88;
vterrainymidle = 104;
vgravity = 0.5;
vdamp = 1;
vreactor = 0;
vrotdamp = 0.96;
vrotac = 10;
vdist = 0;
vlastsens = 1;
vlastsize = 100;
vlastangle = 45;
vlastspeed = 40;
vanglemax = 60;
vanglemin = 25;
vsizemax = 125;
vsizemin = 50;
vspeedmax = 40;
vspeedmin = 20;
vangler = (vanglermin = 10);
vanglermax = 80;
vsizer = (vsizermin = 20);
vsizermax = 150;
vspeedr = (vspeedrmin = 10);
vspeedrmax = 80;
vdistr = (vdistrmin = 30);
vdistrmax = 100;
vtoiler = (vtoilermin = 1);
vtoilermax = 6;
vbonusr = (vbonusrmin = 5);
vbonusrmax = 15;
vbalr = (vbalrmin = 0);
vbalrmax = 10;
vbalrandom = 100;
vlevel = 1;
vlevels = 50;
vx = mcscroll.mcplayer._x;
vy = mcscroll.mcplayer._y;
vangle = -90;
vforcex = 0;
vforcey = 0;
vspeedx = 0;
vspeedy = 0;
vlapinx = 20;
vlapiny = 0;
vterrainy = mcscroll.mcterrain._y;
vterrain2y = mcscroll.mcterrain2._y;
lx = (lvx = (vnewx = vx));
ly = (lvy = (vnewy = vy));
vnumfil = 0;
vdistance = 200;
vnbobj = 10;
var _local1 = 1;
while (_local1 <= vnbobj) {
mcscroll.mcobj.duplicateMovieClip("mcobj" + _local1, _local1 + 10);
mcscroll["mcobj" + _local1].vactive = false;
mcscroll["mcobj" + _local1].mcfil.vfil = _local1;
_local1++;
}
mcscroll.mcobj._visible = false;
vnbstart = 4;
_local1 = 1;
while (_local1 <= vnbstart) {
mcscroll["mcobj" + _local1].vactive = true;
mcscroll["mcobj" + _local1]._x = vterrainxmidle;
vlastx = mcscroll["mcobj" + _local1]._x;
_local1++;
}
_root.lifebar.GotoAndStop(3);
}
function activeWorld() {
vlastsens = 1;
mcscroll.mcobj1.mcfil.init(vlastsize, vlastangle, vlastsens, vlastspeed, true, true, false, true);
vattach = true;
vfil = 1;
vfiltoile = false;
vlastfil = 1;
vnumfil = 0;
mcscroll.mcobj1.mcfil.vnumfil = vnumfil;
mcscroll.mcplayer.mcplayer.gotoAndStop("gfil");
var _local1 = 2;
while (_local1 <= vnbstart) {
initFil(mcscroll["mcobj" + _local1], vlastx, vlastsize, vlastangle, vlastsens, vlastspeed, false, 0);
vlastfil = _local1;
vnumfil = vnumfil + vpoints;
mcscroll["mcobj" + _local1].mcfil.vnumfil = vnumfil;
_local1++;
}
mcscroll.mcplayer.swapDepths(200);
}
function initFil(pMC, pdist, psize, pangle, psens, pspeed, pattach, pbalancier) {
var langlerad = ((pangle / 180) * 3.141593);
var ldistoldx = Math.abs(Math.sin(langlerad) * vlastsize);
var _local2 = (pangle + random(vangler)) - (vangler / 2);
if (_local2 > vanglemax) {
_local2 = vanglemax;
}
if (_local2 < vanglemin) {
_local2 = vanglemin;
}
vlastangle = _local2;
var lsize = ((psize + random(vsizer)) - (vsizer / 2));
if (lsize > vsizemax) {
lsize = vsizemax;
}
if (lsize < vsizemin) {
lsize = vsizemin;
}
vlastsize = lsize;
var _local1 = ((pspeed + random(vspeedr)) - (vspeedr / 2)) + int(_local2 / 10);
if (_local1 > vspeedmax) {
_local1 = vspeedmax;
}
if (_local1 < vspeedmin) {
_local1 = vspeedmin;
}
var _local3 = 0;
while ((_local1 == vlastspeed) && (_local3 < 20)) {
_local3++;
_local1 = ((pspeed + random(vspeedr)) - (vspeedr / 2)) + int(_local2 / 10);
if (_local1 > vspeedmax) {
_local1 = vspeedmax;
}
if (_local1 < vspeedmin) {
_local1 = vspeedmin;
}
}
vlastspeed = _local1;
if (random(vtoiler) == 0) {
var ltoile = true;
} else {
var ltoile = false;
}
if (random(vbonusr) == 0) {
var lbonus = true;
} else {
var lbonus = false;
}
var langlerad = ((_local2 / 180) * 3.141593);
var ldistx = (Math.abs(Math.sin(langlerad)) * lsize);
vlastx = (((pdist + ldistx) + ldistoldx) + random(vdistr)) + 10;
pMC._x = vlastx;
if (psens == 1) {
vlastsens = -1;
} else {
vlastsens = 1;
}
if (random(vbalrandom) < pbalancier) {
lbal = false;
} else {
lbal = true;
}
pMC.mcfil.init(lsize, _local2, vlastsens, _local1, pattach, ltoile, lbonus, lbal);
}
function restartfil(pfil) {
var _local1 = pfil;
if (mcscroll["mcobj" + _local1].vactive == false) {
_local1++;
if (_local1 > vnbobj) {
}
_local1 = 1;
while (mcscroll["mcobj" + _local1].vactive == false) {
_local1++;
if (_local1 > vnbobj) {
}
_local1 = 1;
}
}
var _local2 = 1;
while (_local2 <= vnbobj) {
mcscroll["mcobj" + _local2].mcfil.vattach = false;
mcscroll["mcobj" + _local2].mcfil.venter = false;
mcscroll["mcobj" + _local2].mcfil.vforcey = 0;
_local2++;
}
mcscroll["mcobj" + _local1].mcfil.vdistance = 0;
mcscroll["mcobj" + _local1].mcfil.vattach = true;
vattach = true;
vfil = _local1;
vx = mcscroll["mcobj" + _local1]._x;
vy = mcscroll["mcobj" + _local1]._y;
vangle = mcscroll["mcobj" + _local1].mcfil.vangle;
mcscroll.mcplayer.mcplayer.gotoAndStop("gfil");
gotoAndStop (60);
}
gotoAndStop (53);
fcamera = function () {
if (vscrollxx == undefined) {
vscrollxx = mcscroll._x;
}
lvx = (vx + vlapinx) - vscrollxx;
lx = 0.2 * (lvx - vnewx);
vnewx = vnewx + lx;
mcscroll._x = (-vnewx) + vterrainxmidle;
if (mcscroll._x <= (-vterrainwidth)) {
mcscroll._x = mcscroll._x + vterrainwidth;
vx = vx - vterrainwidth;
vlastx = vlastx - vterrainwidth;
vnewx = vnewx - vterrainwidth;
lx = lx - vterrainwidth;
vxold = mcscroll.mcterrain._x;
mcscroll.mcterrain._x = mcscroll.mcterrain2._x;
mcscroll.mcterrain2._x = vxold;
var _local1 = 1;
while (_local1 <= vnbobj) {
if (mcscroll["mcobj" + _local1].vactive) {
lx = mcscroll["mcobj" + _local1]._x - vterrainwidth;
mcscroll["mcobj" + _local1]._x = lx;
if (lx < (vx - (vterrainwidth / 2))) {
mcscroll["mcobj" + _local1].vactive = false;
mcscroll["mcobj" + _local1].mcfil.stopfil();
mcscroll["mcobj" + _local1].mcfil._visible = false;
}
}
_local1++;
}
}
};
checkcol = function () {
var _local1 = 1;
while (_local1 <= vnbobj) {
if (mcscroll["mcobj" + _local1].vactive) {
if (vy < -10) {
mcscroll["mcobj" + _local1].mcfil.venter = false;
} else {
if (vy > (mcscroll["mcobj" + _local1].mcfil.mcobj._y + Math.abs(vspeedy))) {
mcscroll["mcobj" + _local1].mcfil.venter = false;
}
mcscroll["mcobj" + _local1].mcfil.action();
}
} else {
mcscroll["mcobj" + _local1].mcfil.venter = false;
}
_local1++;
}
};
addpoints = function (ppoints) {
vscore = vscore + ppoints;
if (vscore < 0) {
vscore = 0;
}
mcscore.txtscore = vscore + vscorefil;
};
addlife = function (plife) {
vlifes = vlifes + plife;
mclifes.txtlifes = vlifes;
if (vlifes > 0) {
vkill = false;
if (vfiltoile != false) {
restartfil(vfiltoile);
} else {
restartfil(vfil);
}
} else {
vkill = 2;
}
};
getscore = function () {
};
savescore = function (pscore) {
};
Frame 53
stopAllSounds();
init();
play();
Frame 54
activeWorld();
fcamera();
play();
Frame 55
gotoAndStop (60);
Frame 60
play();
if (vattach == false) {
vforcey = vforcey + vgravity;
vspeedx = (vdamp * vspeedx) + vforcex;
vspeedy = (vdamp * vspeedy) + vforcey;
vx = vx + vspeedx;
vy = vy + vspeedy;
vforcex = 0;
vforcey = 0;
if (Math.abs(vspeedx) < 0.05) {
vspeedx = 0;
}
if (Math.abs(vspeedy) < 0.05) {
vspeedy = 0;
}
vangle = (((Math.atan2(vspeedy, vspeedx) * 180) / 3.14) + 180) - 45;
if ((vy > 175) && (vtoilecheck == false)) {
vkill = true;
geluuuj.start();
mcscroll.mcplayer.mcplayer.gotoAndStop("gplouf");
vframeswait = 20;
gotoAndStop (66);
}
vtoilecheck = false;
if (vy < 0) {
}
}
if (vattach == false) {
checkcol();
}
if (vx >= (vlastx - (vterrainwidth / 2))) {
var i = (vlastfil + 1);
if (i > vnbobj) {
i = 1;
}
if (mcscroll["mcobj" + i].vactive) {
var lx = (mcscroll["mcobj" + i]._x - vterrainwidth);
if (lx < (vx - (vterrainwidth / 2))) {
mcscroll["mcobj" + i].vactive = false;
mcscroll["mcobj" + i].mcfil.stopfil();
}
}
if (mcscroll["mcobj" + i].vactive != true) {
mcscroll["mcobj" + i].vactive = true;
vlastfil++;
if (vlastfil > vnbobj) {
vlastfil = 1;
}
initFil(mcscroll["mcobj" + i], vlastx, vlastsize, vlastangle, vlastsens, vlastspeed, false, vbalr);
vnumfil = vnumfil + vpoints;
mcscroll["mcobj" + i].mcfil.vnumfil = vnumfil;
}
}
if (vtouche) {
vtouche = false;
if (vattach) {
mcscroll["mcobj" + vfil].mcfil.vattach = false;
vattach = false;
vforcex = vforcex + (5 + (mcscroll["mcobj" + vfil].mcfil.vspeedx / 2));
vforcey = vforcey + (-5 + (mcscroll["mcobj" + vfil].mcfil.vspeedy / 2));
vspeedx = 0;
vspeedy = 0;
vx = mcscroll.mcplayer._x + vforcex;
vy = mcscroll.mcplayer._y + vforcey;
mcscroll.mcplayer.mcplayer.gotoAndStop("gjump");
geluuuj2.start();
}
}
fcamera();
if (vkill != true) {
mcscroll.mcplayer._x = vx;
mcscroll.mcplayer._y = vy;
mcscroll.mcplayer._rotation = vangle + 180;
}
Frame 61
prevFrame();
if (vscorefil >= vscoretest) {
vscoretest++;
vlevel++;
if (vlevel > vlevels) {
vlevel = vlevels;
}
vangler = vanglermin + (((vanglermax - vanglermin) * vlevel) / vlevels);
vsizer = vsizermin + (((vsizermax - vsizermin) * vlevel) / vlevels);
vspeedr = vspeedrmin + (((vspeedrmax - vspeedrmin) * vlevel) / vlevels);
vdistr = vdistrmin + (((vdistrmax - vdistrmin) * vlevel) / vlevels);
vtoiler = vtoilermin + (((vtoilermax - vtoilermin) * vlevel) / vlevels);
vbonusr = vbonusrmin + (((vbonusrmax - vbonusrmin) * vlevel) / vlevels);
vbalr = vbalrmin + (((vbalrmax - vbalrmin) * vlevel) / vlevels);
}
Frame 66
play();
if (vkill == true) {
vframeswait--;
if (vframeswait <= 0) {
vkill = false;
addlife(-1);
_root.lifebar.gotoAndStop(vlifes);
}
} else if (vkill == 2) {
vframeswait--;
if (vframeswait <= 0) {
vkill = false;
vPseudo = _player.name.substr(0, 5);
debug(vPseudo);
vpannel = "ggameover";
_root.lifebar.gotoAndStop(4);
}
gotoAndStop (74);
}
fcamera();
mcscroll.mcplayer._x = vx;
mcscroll.mcplayer._y = 175;
mcscroll.mcplayer._rotation = 0;
Frame 67
prevFrame();
Frame 74
play();
mcpannel.gotoAndStop(vpannel);
Frame 81
stop();
Frame 82
prevFrame();
Symbol 5 Button
on (release) {
getURL ("http://www.freegamesjungle.com", "_blank");
}
Symbol 44 Button
on (release) {
gotoAndPlay (50);
}
Symbol 48 Button
on (release) {
getURL ("http://www.freegamesjungle.com", "_blank");
}
Symbol 51 MovieClip Frame 1
_visible = false;
Symbol 59 MovieClip Frame 1
play();
_rotation = (((-_parent._parent._rotation) / 2) - 45);
Symbol 59 MovieClip Frame 2
prevFrame();
Symbol 64 MovieClip Frame 1
play();
Symbol 64 MovieClip Frame 2
stop();
Symbol 64 MovieClip Frame 8
stop();
Symbol 64 MovieClip Frame 14
stop();
Symbol 64 MovieClip Frame 21
play();
Symbol 64 MovieClip Frame 29
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 6
play();
Symbol 76 MovieClip Frame 13
stop();
Symbol 76 MovieClip Frame 17
stop();
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 6
play();
Symbol 97 MovieClip Frame 46
gotoAndPlay (6);
Symbol 97 MovieClip Frame 50
play();
Symbol 97 MovieClip Frame 68
stop();
Symbol 97 MovieClip Frame 74
stop();
Symbol 104 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 1
gotoAndStop(random(_totalframes) + 1);
Symbol 112 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 1
function sinInterpol(pVal1, pVal2, pRatio) {
return(pVal1 + (((pVal2 - pVal1) * (1 + Math.sin(3.141593 * (pRatio - 0.5)))) / 2));
}
function stopfil() {
gotoAndStop (5);
}
function getSide(px1, py1, px2, py2, px3, py3) {
var lx1 = (px2 - px1);
var _local2 = py2 - py1;
var _local3 = px1 - px3;
var _local1 = py1 - py3;
if (((lx1 * _local1) - (_local2 * _local3)) >= 0) {
return(-1);
}
return(1);
}
function getIntersection(px1, py1, px2, py2, px3, py3, px4, py4, pux, puy) {
var _local2 = py1;
var _local3 = px1;
var _local1 = new Object();
vdistance = ((px3 - _local3) * pux) + ((py3 - _local2) * puy);
_local1.x = _local3 + (vdistance * pux);
_local1.y = _local2 + (vdistance * puy);
if ((vdistance > vsize2) || (vdistance < 0)) {
vdistance = ((px4 - _local3) * pux) + ((py4 - _local2) * puy);
_local1.x = _local3 + (vdistance * pux);
_local1.y = _local2 + (vdistance * puy);
if ((vdistance > vsize2) || (vdistance < 0)) {
return(false);
}
return(_local1);
}
return(_local1);
}
stop();
vangle = 90;
init = function (psize, panglemax, psens, pduration, pattach, ptoile, pbonus, pbalancier) {
var _local2 = psize;
var _local3 = panglemax;
vsize2 = _local2 / 3;
mcfil.mcfil._xscale = vsize2;
mcfil.mcfeuille._x = vsize2;
mcfil.mcfeuille.gotoAndStop(random(mcfil.mcfeuille._totalframes));
mcfil._rotation = vangle;
mcfil2.mcfil._xscale = vsize2;
mcfil2.mcfeuille._x = vsize2;
mcfil2.mcfeuille.gotoAndStop(random(mcfil.mcfeuille._totalframes));
mcfil2._rotation = vangle;
mcfil3.mcfil._xscale = vsize2;
mcfil3.mcfeuille._x = vsize2 - 10;
mcfil3.mcfeuille.gotoAndStop(random(mcfil.mcfeuille._totalframes));
mcfil3._rotation = vangle;
var _local1 = (vangle / 180) * 3.141593;
mcfil2._x = Math.cos(_local1) * vsize2;
mcfil2._y = Math.sin(_local1) * vsize2;
mcfil3._x = Math.cos(_local1) * (vsize2 * 2);
mcfil3._y = Math.sin(_local1) * (vsize2 * 2);
var lx = (Math.cos(_local1) * _local2);
var ly = (Math.sin(_local1) * _local2);
mcobj._x = lx;
mcobj._y = ly;
mcobj._rotation = vangle;
vduration = pduration;
vframe = int(vduration / 2);
vanglemax = _local3;
vsize = _local2;
vsens = psens;
vattach = pattach;
vdistance = vsize;
vsideold = (vside = 0);
venter = false;
vspideroldx = (vspideroldy = (vspiderx = (vspidery = 0)));
vrayon = 10;
vpoint = new Object();
vpoint.x = 0;
vpoint.y = 0;
vespeed = 0.4;
veinertia = 0.3 + (random(5) / 10);
langle1 = (langle2 = sinInterpol(90 + vanglemax, 90 - vanglemax, vframe / vduration) - random(20));
vtoile = ptoile;
if (vtoile) {
mctoile.gotoAndStop("gwait");
mctoile._x = random(_local3) - (_local3 / 2);
} else {
mctoile.gotoAndStop("gnone");
}
vbonus = pbonus;
if (vbonus) {
mcbonus.gotoAndStop("gshow");
mcbonus._y = vsize / 2;
mcbonus._x = Math.sin((_local3 / 180) * 3.141593) * _local2;
} else {
mcbonus.gotoAndStop("gnone");
}
vbalancier = pbalancier;
if (vbalancier) {
mcobj._visible = true;
} else {
mcobj._visible = false;
}
mcfeuilles.gotoAndStop(random(mcfeuilles._totalframes) + 1);
vcurve = ((pduration - 20) / 5) + 4;
gotoAndStop (12);
_visible = true;
};
update = function (pframe, panglemax, pduration) {
var _local1 = _parent;
vangle = sinInterpol(90 + panglemax, 90 - panglemax, pframe / vduration);
var langlerad = ((vangle / 180) * 3.141593);
vux = Math.cos(langlerad);
vuy = Math.sin(langlerad);
vx1 = vux * vsize2;
vy1 = vuy * vsize2;
mcfil._rotation = vangle;
mcfil2._x = vx1;
mcfil2._y = vy1;
vangle2 = vangle + ((vangle - 90) / vcurve);
mcfil2._rotation = vangle2;
var langlerad2 = ((vangle2 / 180) * 3.141593);
vux2 = Math.cos(langlerad2);
vuy2 = Math.sin(langlerad2);
vx2 = (vux2 * vsize2) + vx1;
vy2 = (vuy2 * vsize2) + vy1;
mcfil3._x = vx2;
mcfil3._y = vy2;
vangle3 = vangle2 + ((vangle2 - 90) / vcurve);
mcfil3._rotation = vangle3;
var langlerad3 = ((vangle3 / 180) * 3.141593);
vux3 = Math.cos(langlerad3);
vuy3 = Math.sin(langlerad3);
vobjx = (vux3 * vsize2) + vx2;
vobjy = (vuy3 * vsize2) + vy2;
mcobj._x = vobjx;
mcobj._y = vobjy;
mcobj._rotation = vangle3;
if (vattach) {
voldx = _local1._parent._parent.vx;
voldy = _local1._parent._parent.vy;
if (vdistance > (vsize2 * 2)) {
var _local3 = (vux3 * (vdistance - (vsize2 * 2))) + vx2;
var _local2 = (vuy3 * (vdistance - (vsize2 * 2))) + vy2;
vforcey = vforcey + (0.05 * vuy3);
} else if (vdistance > vsize2) {
var _local3 = (vux2 * (vdistance - vsize2)) + vx1;
var _local2 = (vuy2 * (vdistance - vsize2)) + vy1;
vforcey = vforcey + (0.05 * vuy2);
} else {
var _local3 = vux * vdistance;
var _local2 = vuy * vdistance;
vforcey = vforcey + (0.05 * vuy);
}
langle1 = ((vangle - langle2) * vespeed) + (langle1 * veinertia);
langle2 = langle2 + langle1;
_local1._parent._parent.vx = _local3 + _local1._x;
_local1._parent._parent.vy = _local2 + _local1._y;
_local1._parent._parent.vangle = langle2;
_local1._parent.mcplayer._x = _local1._parent._parent.vx;
_local1._parent.mcplayer._y = _local1._parent._parent.vy;
_local1._parent.mcplayer._rotation = _local1._parent._parent.vangle + 180;
vspeedx = (_local3 + _local1._x) - voldx;
vspeedy = (_local2 + _local1._y) - voldy;
if (vdistance < 0) {
vdistance = 0;
vforcey = -vforcey;
}
vdistance = vdistance + vforcey;
if (vdistance > vsize) {
if (vbalancier) {
vdistance = vsize;
vforcey = 0;
} else {
vattach = false;
_local1._parent._parent.vattach = false;
_local1._parent._parent.vspeedx = vspeedx;
_local1._parent._parent.vspeedy = vspeedy;
_local1._parent.mcplayer.mcplayer.gotoAndStop("gfall");
}
}
}
};
action = function () {
var _local1 = _parent;
if (vtoile) {
if (_local1._parent.mcplayer.mczone.hitTest(mctoile)) {
_local1._parent._parent.vtoilecheck = true;
if (_local1._parent.mcplayer.mczone.hitTest(mctoile.mczone) && (_local1._parent._parent.vkill == false)) {
if (_local1._parent._parent.vspeedy > 0) {
_local1._parent._parent.vspeedy = -_local1._parent._parent.vspeedy;
_local1._parent._parent.geluuuj3.start();
}
vtoile = -2;
venter = false;
_local1._parent._parent.vfiltoile = vfil;
mctoile.gotoAndStop("gjump");
}
}
}
if (vbonus) {
if (_local1._parent.mcplayer.hitTest(mcbonus)) {
_local1._parent._parent.addpoints(_local1._parent._parent.vbonuspoints);
vbonus = false;
mcbonus.gotoAndStop("ghide");
}
}
if (_local1._parent._parent.vattach) {
venter = false;
} else {
if (venter == false) {
venter = true;
vspideroldx = (vspiderx = _local1._parent._parent.vx - _local1._x);
vspideroldy = (vspidery = _local1._parent._parent.vy - _local1._y);
vsideold = (vside = getSide(0, 0, vx1, vy1, vspiderx, vspidery));
vsideold2 = (vside2 = getSide(vx1, vy1, vx2, vy2, vspiderx, vspidery));
vsideold3 = (vside3 = getSide(vx2, vy2, vobjx, vobjy, vspiderx, vspidery));
} else {
vsideold = vside;
vspideroldx = vspiderx;
vspideroldy = vspidery;
vspiderx = _local1._parent._parent.vx - _local1._x;
vspidery = _local1._parent._parent.vy - _local1._y;
vside = getSide(0, 0, vx1, vy1, vspiderx, vspidery);
vside2 = getSide(vx1, vy1, vx2, vy2, vspiderx, vspidery);
vside3 = getSide(vx2, vy2, vobjx, vobjy, vspiderx, vspidery);
}
if (((vsideold + vsideold2) + vsideold3) != ((vside + vside2) + vside3)) {
if (((_local1._parent._parent.vfil == vfil) && (_local1._parent._parent.vspeedy < 0)) && (vtoile != -2)) {
venter = false;
} else {
vpoint = false;
if (mcfil.hitTest(_local1._parent.mcplayer.mczone)) {
vpoint = getIntersection(0, 0, vx1, vy1, vspiderx, vspidery, vspideroldx, vspideroldy, vux, vuy);
}
if (vpoint == false) {
if (mcfil2.hitTest(_local1._parent.mcplayer.mczone)) {
vpoint = getIntersection(vx1, vy1, vx2, vy2, vspiderx, vspidery, vspideroldx, vspideroldy, vux2, vuy2);
}
if (vpoint != false) {
vdistance = vdistance + vsize2;
}
}
if (vpoint == false) {
if (mcfil3.hitTest(_local1._parent.mcplayer.mczone)) {
vpoint = getIntersection(vx2, vy2, vobjx, vobjy, vspiderx, vspidery, vspideroldx, vspideroldy, vux3, vuy3);
}
if (vpoint != false) {
vdistance = vdistance + (vsize2 * 2);
}
}
if (vpoint != false) {
vattach = true;
venter = false;
if (vtoile == -2) {
vtoile = false;
}
_local1._parent._parent.vfiltoile = false;
_local1._parent.mcplayer.mcplayer.gotoAndStop("gfil");
var _local2 = _local1._parent._parent;
_local2.vscorefil = vnumfil;
_local2.addpoints(0);
if (vdistance > (vsize2 * 2)) {
vforcey = ((_local2.vspeedx * vux3) + (_local2.vspeedy * vuy3)) * 0.1;
} else if (vdistance > vsize2) {
vforcey = ((_local2.vspeedx * vux2) + (_local2.vspeedy * vuy2)) * 0.1;
} else {
vforcey = ((_local2.vspeedx * vux) + (_local2.vspeedy * vuy)) * 0.1;
}
_local2.vattach = true;
_local2.vfil = vfil;
_local2.vx = vpoint.x + _local1._x;
_local2.vy = vpoint.y + _local1._y;
_local2.vangle = vangle;
}
}
}
}
};
Symbol 113 MovieClip Frame 5
stop();
Symbol 113 MovieClip Frame 11
play();
update(vframe, vanglemax, vduration);
if (vsens == 1) {
vframe++;
if (vframe >= vduration) {
vsens = -1;
}
} else {
vframe--;
if (vframe <= 0) {
vsens = 1;
}
}
Symbol 113 MovieClip Frame 12
prevFrame();
Symbol 131 Button
on (press, keyPress "<Space>") {
vtouche = true;
}
Symbol 134 Button
on (release) {
_parent.gotoAndPlay(50);
}
Symbol 136 Button
on (release) {
_parent.gotoAndPlay(50);
}
Symbol 140 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 11
stop();
Symbol 143 MovieClip Frame 150
_root.gotoAndStop("Home");
stop();
Symbol 143 MovieClip Frame 151
stop();