Frame 1
loaded = false;
function deadClick() {
}
function gotoMySite() {
getURL ("http://www.logiccollisiongames.com", "_blank");
}
MochiAd.showPreGameAd({id:"34073bbdadc421a3", res:"570x320"});
mochi.MochiServices.connect("34073bbdadc421a3");
fscommand ("ShowMenu", "false");
fscommand ("allowscale", "false");
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var copyrightNotice = new ContextMenuItem("\u00A9 2007 LogicCollisionGames.com", deadClick);
var mySiteLink = new ContextMenuItem("LogicCollisionGames.com", gotoMySite);
myMenu.customItems.push(mySiteLink, copyrightNotice);
copyrightNotice.separatorBefore = true;
_root.menu = myMenu;
Frame 2
stopAllSounds();
music_clip = this.createEmptyMovieClip("musica", _root.getNextHighestDepth());
music1 = new Sound(music_clip);
music1.attachSound("music1");
music2 = new Sound(music_clip);
music2.attachSound("music2");
music3 = new Sound(music_clip);
music3.attachSound("music3");
music4 = new Sound(music_clip);
music4.attachSound("music4");
music5 = new Sound(music_clip);
music5.attachSound("music5");
items_clip = this.createEmptyMovieClip("items_sound", _root.getNextHighestDepth());
coin1 = new Sound(items_clip);
coin1.attachSound("coin_sound");
redorbs = new Sound(items_clip);
redorbs.attachSound("redorb_sound");
kick_nothing = new Sound(items_clip);
kick_nothing.attachSound("kick_nothing");
kick_nothing2 = new Sound(items_clip);
kick_nothing2.attachSound("kick_nothing2");
kick_nothing3 = new Sound(items_clip);
kick_nothing3.attachSound("kick_nothing3");
kick2 = new Sound(items_clip);
kick2.attachSound("kick2");
kick2.setVolume(30);
kick = new Sound(items_clip);
kick.attachSound("kick");
beast = new Sound(items_clip);
beast.attachSound("beast");
wosh = new Sound(items_clip);
wosh.attachSound("wosh");
crank = new Sound(items_clip);
crank.attachSound("crank");
Frame 3
stop();
Frame 4
stop();
stopAllSounds();
Frame 5
stopAllSounds();
score = 0;
redorb = 0;
rock_id = 1;
blood_id = 1;
digit_id = 1;
coin_id = 1;
hearth_id = 1;
orb_id = 1;
jabali_id = 1;
kick_damage = 0;
enemies = 0;
health = 200;
lifes = 9;
hoja_id = 1;
puerco_id = 1;
sheebee_id = 1;
fly_id = 1;
combo = 0;
combos_count = 0;
limit_map = 0;
evento_pause = false;
start_x = 508;
start_y = 163.5;
score_box_start_x = 295.4;
score_box_start_y = 38.1;
limitbox_start_x = 305.9;
limitbox_start_y = 157.9;
map_changer_start_x = 284.9;
map_changer_start_y = 161.9;
centerbox_start_x = 281.7;
centerbox_start_y = 188.5;
changing_map = false;
enemies2 = 0;
won = false;
lose = false;
red = new Object();
red.ra = 100;
red.rb = 0;
red.ga = 0;
red.gb = 0;
red.ba = 0;
red.bb = 0;
red.aa = 100;
red.ab = 0;
normal = new Object();
normal.ra = 100;
normal.rb = 0;
normal.ga = 100;
normal.gb = 0;
normal.ba = 100;
normal.bb = 0;
normal.aa = 100;
normal.ab = 0;
loaded = false;
level = 1;
redorb = 0;
music_clip = this.createEmptyMovieClip("musica", _root.getNextHighestDepth());
music1 = new Sound(music_clip);
music1.attachSound("music1");
music1.start(0, 9999);
music1.setVolume(30);
music2 = new Sound(music_clip);
music2.attachSound("music2");
music3 = new Sound(music_clip);
music3.attachSound("music3");
music4 = new Sound(music_clip);
music4.attachSound("music4");
items_clip = this.createEmptyMovieClip("items_sound", _root.getNextHighestDepth());
coin1 = new Sound(items_clip);
coin1.attachSound("coin_sound");
redorbs = new Sound(items_clip);
redorbs.attachSound("redorb_sound");
kick_nothing = new Sound(items_clip);
kick_nothing.attachSound("kick_nothing");
kick_nothing2 = new Sound(items_clip);
kick_nothing2.attachSound("kick_nothing2");
kick_nothing3 = new Sound(items_clip);
kick_nothing3.attachSound("kick_nothing3");
kick2 = new Sound(items_clip);
kick2.attachSound("kick2");
kick2.setVolume(30);
kick = new Sound(items_clip);
kick.attachSound("kick");
beast = new Sound(items_clip);
beast.attachSound("beast");
wosh = new Sound(items_clip);
wosh.attachSound("wosh");
crank = new Sound(items_clip);
crank.attachSound("crank");
stop();
MovieClip.prototype._brightness = function (amount) {
var _local3 = new Color(this);
myColorTransform = {ra:100 - Math.abs(amount), rb:2.55 * ((amount > 0) ? (amount) : 0), ga:100 - Math.abs(amount), gb:2.55 * ((amount > 0) ? (amount) : 0), ba:100 - Math.abs(amount), bb:2.55 * ((amount > 0) ? (amount) : 0)};
_local3.setTransform(myColorTransform);
};
loadlevel = function () {
if (loaded == false) {
if (level == 1) {
limit_map = 1314;
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:397.9, _y:225.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:309, _y:225.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:207, _y:189});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:133, _y:189});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:40, _y:166.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-15.9, _y:141.4});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-97, _y:141.4});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-150.9, _y:166.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-228.9, _y:201.4});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-300.9, _y:201.4});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-368.9, _y:166.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-451.9, _y:31.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-514.9, _y:31.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-579.9, _y:31.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-617.9, _y:166.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-732.9, _y:115.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-794.9, _y:115.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-872.9, _y:115.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-954.9, _y:115.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1079.9, _y:177.6});
coin_id++;
_root.attachMovie("redorb", "redorb" + coin_id, _root.getNextHighestDepth(), {_x:-56.6, _y:114});
puerco_id++;
_root.attachMovie("puerco", "puerco" + puerco_id, _root.getNextHighestDepth(), {_x:-500, _y:69});
puerco_id++;
_root.attachMovie("puerco", "puerco" + puerco_id, _root.getNextHighestDepth(), {_x:-520, _y:69});
puerco_id++;
_root.attachMovie("puerco", "puerco" + puerco_id, _root.getNextHighestDepth(), {_x:-600, _y:69});
puerco_id++;
_root.attachMovie("puerco", "puerco" + puerco_id, _root.getNextHighestDepth(), {_x:-700, _y:69});
puerco_id++;
_root.attachMovie("puerco", "puerco" + puerco_id, _root.getNextHighestDepth(), {_x:-750, _y:69});
_root.score_box.swapDepths(_root.getNextHighestDepth());
loaded = true;
_root.crawler.endofmap = false;
_root.crawler.limit = false;
}
if (level == 2) {
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:215.4, _y:126.6});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:255.4, _y:126.6});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:292.2, _y:126.6});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:330.4, _y:126.6});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:370.4, _y:126.6});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:215.4, _y:231.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:215.4, _y:161.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:215.4, _y:195.1});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:370.4, _y:161.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:370.4, _y:195.1});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:370.4, _y:231.3});
coin_id++;
_root.attachMovie("redorb", "redorb" + coin_id, _root.getNextHighestDepth(), {_x:293, _y:183.4});
_root.gotoAndStop("jungle2");
limit_map = 0;
_root._x = 0;
_root.crawler._x = start_x;
_root.crawler._y = start_y;
_root.map_changer._x = map_changer_start_x;
_root.map_changer._y = map_changer_start_y;
_root.score_box._x = score_box_start_x;
_root.score_box._y = score_box_start_y;
_root.limitbox._x = limitbox_start_x;
_root.limitbox._y = limitbox_start_y;
_root.centerbox._x = centerbox_start_x;
_root.centerbox._y = centerbox_start_y;
loaded = true;
changing_map = false;
_root.crawler.endofmap = false;
_root.crawler.limit = false;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
}
if (level == 3) {
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:463.9, _y:201.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:409.9, _y:201.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:357.9, _y:201.9});
coin_id++;
_root.attachMovie("redorb", "redorb" + coin_id, _root.getNextHighestDepth(), {_x:274.3, _y:140.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:165.9, _y:201.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:110, _y:201.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-53.8, _y:183.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-122.8, _y:112.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-259.5, _y:118.5});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-387.7, _y:183.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-556.6, _y:111.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-556.6, _y:75.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-735.5, _y:178.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-910.5, _y:94.7});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-968.5, _y:94.7});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1036.4, _y:94.7});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-970.9, _y:54.4});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1238.8, _y:151.6});
_root.gotoAndStop("jungle3");
limit_map = 1499;
_root._x = 0;
trace(limit_map);
_root.crawler._x = start_x;
_root.crawler._y = start_y;
_root.map_changer._x = map_changer_start_x;
_root.map_changer._y = map_changer_start_y;
_root.score_box._x = score_box_start_x;
_root.score_box._y = score_box_start_y;
_root.limitbox._x = limitbox_start_x;
_root.limitbox._y = limitbox_start_y;
_root.centerbox._x = centerbox_start_x;
_root.centerbox._y = centerbox_start_y;
loaded = true;
changing_map = false;
_root.crawler.endofmap = false;
_root.crawler.limit = false;
_root.enemies = 0;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
}
if (level == 4) {
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:351.9, _y:135.6});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:217.9, _y:201.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:110.9, _y:167.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-3, _y:126.7});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-106.8, _y:183.8});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-181.6, _y:156.4});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-251.1, _y:183.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-365.5, _y:111.5});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-766.5, _y:144.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-653, _y:83.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-910.5, _y:160});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1142.7, _y:167.9});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1273.8, _y:164.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1400.5, _y:166.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1592.6, _y:130.7});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1744.8, _y:208.3});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1920.3, _y:167.9});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-2025.2, _y:207.6});
_root.gotoAndStop("jungle4");
limit_map = 2215;
_root._x = 0;
trace(limit_map);
_root.crawler._x = start_x;
_root.crawler._y = start_y;
_root.map_changer._x = map_changer_start_x;
_root.map_changer._y = map_changer_start_y;
_root.score_box._x = score_box_start_x;
_root.score_box._y = score_box_start_y;
_root.limitbox._x = limitbox_start_x;
_root.limitbox._y = limitbox_start_y;
_root.centerbox._x = centerbox_start_x;
_root.centerbox._y = centerbox_start_y;
loaded = true;
changing_map = false;
_root.crawler.endofmap = false;
_root.crawler.limit = false;
_root.enemies = 0;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
}
if (level == 5) {
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:292.9, _y:172.1});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:172.9, _y:137.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:48.9, _y:190.6});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-13, _y:190.6});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-128.8, _y:152.8});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-253.2, _y:83.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-357.4, _y:222.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-399.1, _y:45.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-584, _y:148.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-706.4, _y:106.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-848.5, _y:172.1});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1009.5, _y:172.1});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1142.7, _y:84.9});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1289.8, _y:140.5});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1396.5, _y:137.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1618.6, _y:137.7});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1732.6, _y:137.7});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1838.2, _y:136.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1954.3, _y:136.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-2088.3, _y:84.9});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-2225.8, _y:133.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-2368.3, _y:214.4});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-2483.3, _y:152.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-2609.7, _y:156.4});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-2709.2, _y:148.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-2826.2, _y:198.9});
_root.gotoAndStop("jungle5");
limit_map = 3350;
_root._x = 0;
trace(limit_map);
_root.crawler._x = start_x;
_root.crawler._y = start_y;
_root.map_changer._x = map_changer_start_x;
_root.map_changer._y = map_changer_start_y;
_root.score_box._x = score_box_start_x;
_root.score_box._y = score_box_start_y;
_root.limitbox._x = limitbox_start_x;
_root.limitbox._y = limitbox_start_y;
_root.centerbox._x = centerbox_start_x;
_root.centerbox._y = centerbox_start_y;
loaded = true;
changing_map = false;
_root.crawler.endofmap = false;
_root.crawler.limit = false;
_root.enemies = 0;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
}
if (level == 6) {
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:424.9, _y:191.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:275.1, _y:191.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:177.1, _y:130.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:73.2, _y:117.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-31.6, _y:161.8});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:106.8, _y:182.1});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-187.7, _y:178.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-291.6, _y:117.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-417.6, _y:191.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-476.6, _y:141});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-663.6, _y:141.6});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-828.5, _y:191.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-951.5, _y:191.7});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-380.1, _y:57.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1084.6, _y:130.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1204.5, _y:178.8});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1324.5, _y:178.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1421.5, _y:130.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1348.3, _y:136.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-2088.3, _y:12.9});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1526.6, _y:82.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1515.7, _y:29.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1539.5, _y:185.7});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1672.5, _y:185.7});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1660.5, _y:7.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1735.5, _y:141.6});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1873.5, _y:178.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1909.5, _y:98.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-2084.3, _y:12.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-2164.3, _y:195.9});
_root.crawler.removeMovieClip();
_root.gotoAndStop("jungle6");
limit_map = 3310;
_root._x = 0;
trace(limit_map);
_root.crawler._x = start_x;
_root.crawler._y = start_y;
_root.map_changer._x = map_changer_start_x;
_root.map_changer._y = map_changer_start_y;
_root.score_box._x = score_box_start_x;
_root.score_box._y = score_box_start_y;
_root.limitbox._x = limitbox_start_x;
_root.limitbox._y = limitbox_start_y;
_root.centerbox._x = centerbox_start_x;
_root.centerbox._y = centerbox_start_y;
loaded = true;
changing_map = false;
_root.crawler.endofmap = false;
_root.crawler.limit = false;
_root.enemies = 0;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
}
if (level == 7) {
stopAllSounds();
_root.music2.start(0, 999999);
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:138.9, _y:147});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:205.9, _y:114});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:279.9, _y:147});
coin_id++;
_root.attachMovie("redorb", "redorb" + coin_id, _root.getNextHighestDepth(), {_x:351.1, _y:262.5});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:280.9, _y:312});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:422.9, _y:312});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:156, _y:373});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:156, _y:451});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:299.4, _y:477});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:399.1, _y:542});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:399.1, _y:626});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:279.9, _y:663.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:162.8, _y:715.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:162.8, _y:803.9});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:232.3, _y:807.5});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:280.9, _y:826.9});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:331.6, _y:609.5});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:358.9, _y:858.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:422.9, _y:935.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:342.8, _y:989.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:244.8, _y:1017.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:179.8, _y:1109.8});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:135.3, _y:1170.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:275.6, _y:1183.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:366.6, _y:1277.8});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:419.4, _y:1344.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:347.6, _y:1347.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:205.9, _y:1377.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:171, _y:1528.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:114.2, _y:1601.8});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:300.6, _y:1556.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:335.1, _y:1601.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:412.1, _y:1601.8});
_root.crawler.removeMovieClip();
_root.plataformsx.removeMovieClip();
_root.gotoAndStop("cave1");
limit_map = 0;
_root._x = 0;
trace(limit_map);
_root.crawler._x = 307;
_root.crawler._y = 38;
_root.map_changer._x = map_changer_start_x;
_root.map_changer._y = map_changer_start_y;
_root.score_box._x = score_box_start_x;
_root.score_box._y = score_box_start_y;
_root.limitbox._x = limitbox_start_x;
_root.limitbox._y = limitbox_start_y;
_root.centerbox._x = centerbox_start_x;
_root.centerbox._y = centerbox_start_y;
loaded = true;
changing_map = false;
_root.crawler.endofmap = false;
_root.crawler.limit = false;
_root.enemies = 0;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
}
if (level == 8) {
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:242.3, _y:144.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:154, _y:171});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-19, _y:141.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-197, _y:198});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-275, _y:198});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-420.8, _y:213.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-420.8, _y:183.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-606, _y:154.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-606, _y:182.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-636, _y:155.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-636, _y:182.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-779, _y:154.6});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-932, _y:104});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-932, _y:154.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-932, _y:179.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1062, _y:159});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1186, _y:159.1});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1305.6, _y:159.1});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1422.9, _y:159.1});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1558.9, _y:159.1});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1705.8, _y:159.1});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1900.5, _y:186.6});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1305.6, _y:120.8});
_root.crawler.removeMovieClip();
_root.gotoAndStop("cave2");
limit_map = 2040;
_root._x = 0;
_root._y = 0;
trace(limit_map);
_root.crawler._x = start_x;
_root.crawler._y = start_y;
_root.map_changer._x = map_changer_start_x;
_root.map_changer._y = map_changer_start_y;
_root.score_box._x = score_box_start_x;
_root.score_box._y = score_box_start_y;
_root.limitbox._x = limitbox_start_x;
_root.limitbox._y = limitbox_start_y;
_root.centerbox._x = centerbox_start_x;
_root.centerbox._y = centerbox_start_y;
loaded = true;
changing_map = false;
_root.crawler.endofmap = false;
_root.crawler.limit = false;
_root.enemies = 0;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
}
if (level == 9) {
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:306.2, _y:198.7});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:262.5, _y:198.7});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:216.3, _y:198.7});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:80.5, _y:162.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:33.5, _y:162.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-12, _y:162.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-220, _y:143.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-170, _y:143.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-397, _y:146.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-470.7, _y:146.2});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-433.1, _y:119.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-605, _y:162.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-644.1, _y:162.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-758, _y:154.6});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-801.9, _y:154.6});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-850.9, _y:154.6});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1013, _y:203.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1092.9, _y:203.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1053, _y:185.4});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1242.6, _y:127.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1432.7, _y:154.6});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1432.7, _y:123.6});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1613.9, _y:119.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1691.8, _y:119.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1655.9, _y:154.6});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1850.5, _y:123});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-2008.8, _y:147.3});
_root.crawler.removeMovieClip();
_root.gotoAndStop("cave3");
limit_map = 2028;
_root._x = 0;
_root._y = 0;
trace(limit_map);
_root.crawler._x = start_x;
_root.crawler._y = start_y;
_root.map_changer._x = map_changer_start_x;
_root.map_changer._y = map_changer_start_y;
_root.score_box._x = score_box_start_x;
_root.score_box._y = score_box_start_y;
_root.limitbox._x = limitbox_start_x;
_root.limitbox._y = limitbox_start_y;
_root.centerbox._x = centerbox_start_x;
_root.centerbox._y = centerbox_start_y;
loaded = true;
changing_map = false;
_root.crawler.endofmap = false;
_root.crawler.limit = false;
_root.enemies = 0;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
}
if (level == 10) {
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:296.3, _y:170.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:219.3, _y:170.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:72.3, _y:170.9});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:29.4, _y:170.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-25, _y:170.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-329.5, _y:203.8});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-386.1, _y:167.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-460.5, _y:219.6});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-576, _y:215.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-576, _y:177.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-576, _y:135.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-576, _y:95.5});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-733.5, _y:211.6});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-787, _y:211.6});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-837.7, _y:211.6});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-886.8, _y:211.6});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-937, _y:211.6});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-983.5, _y:212.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1218, _y:166.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1448.8, _y:227.6});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1613.9, _y:219.6});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1613.9, _y:184.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1748.9, _y:200.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1748.9, _y:243.3});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1617.5, _y:143.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1956.7, _y:179.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1956.7, _y:219.6});
_root.crawler.removeMovieClip();
_root.gotoAndStop("cave4");
limit_map = 1990;
_root._x = 0;
trace(limit_map);
_root.crawler._x = start_x;
_root.crawler._y = start_y;
_root.map_changer._x = map_changer_start_x;
_root.map_changer._y = map_changer_start_y;
_root.score_box._x = score_box_start_x;
_root.score_box._y = score_box_start_y;
_root.limitbox._x = limitbox_start_x;
_root.limitbox._y = limitbox_start_y;
_root.centerbox._x = centerbox_start_x;
_root.centerbox._y = centerbox_start_y;
loaded = true;
changing_map = false;
_root.crawler.endofmap = false;
_root.crawler.limit = false;
_root.enemies = 0;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
}
if (level == 11) {
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:44.4, _y:119.3});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-9.7, _y:119.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-59, _y:91});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-168.7, _y:95.5});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-222.7, _y:78});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-282.7, _y:54.1});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-389.7, _y:71.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-453.9, _y:101.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-552.1, _y:95.5});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-616.9, _y:78});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-695.9, _y:62.1});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-748, _y:75.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-802.1, _y:95.5});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-867.5, _y:71.8});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-914.2, _y:44.4});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-979.9, _y:62.1});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1059.7, _y:83.8});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1127.5, _y:87.5});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1202.9, _y:78});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1334.8, _y:83.8});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1419.8, _y:86});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1559.9, _y:86});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1634.9, _y:86});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1748.9, _y:86});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1718.9, _y:83.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1794.9, _y:109.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1859.7, _y:133.6});
_root.crawler.removeMovieClip();
_root.gotoAndStop("cave5");
limit_map = 1992;
_root._x = 0;
trace(limit_map);
_root.crawler._x = start_x;
_root.crawler._y = start_y;
_root.map_changer._x = map_changer_start_x;
_root.map_changer._y = map_changer_start_y;
_root.score_box._x = score_box_start_x;
_root.score_box._y = score_box_start_y;
_root.limitbox._x = limitbox_start_x;
_root.limitbox._y = limitbox_start_y;
_root.centerbox._x = centerbox_start_x;
_root.centerbox._y = centerbox_start_y;
loaded = true;
changing_map = false;
_root.crawler.endofmap = false;
_root.crawler.limit = false;
_root.enemies = 0;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
}
if (level == 12) {
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:362.8, _y:223.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:249.3, _y:211.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:249.3, _y:173.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:122.3, _y:228.8});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:125.8, _y:190.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:3, _y:202.1});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-124, _y:231.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-232.7, _y:204.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-358.2, _y:225.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-580.9, _y:195.1});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-491.9, _y:195.1});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-537, _y:195.1});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-699.5, _y:238.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-956.1, _y:208.1});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1000.9, _y:188.1});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1049.5, _y:170.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1102.7, _y:187.1});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1154.9, _y:206.4});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1351, _y:218.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1351, _y:173.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1469.8, _y:173.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1469.8, _y:217.7});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1593.5, _y:170.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1593.5, _y:210.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1717.9, _y:173.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1717.9, _y:217.7});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1837.7, _y:163.6});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1837.7, _y:210.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1990.6, _y:223.3});
_root.crawler.removeMovieClip();
_root.gotoAndStop("cave6");
limit_map = 1992;
_root._x = 0;
trace(limit_map);
_root.crawler._x = start_x;
_root.crawler._y = start_y;
_root.map_changer._x = map_changer_start_x;
_root.map_changer._y = map_changer_start_y;
_root.score_box._x = score_box_start_x;
_root.score_box._y = score_box_start_y;
_root.limitbox._x = limitbox_start_x;
_root.limitbox._y = limitbox_start_y;
_root.centerbox._x = centerbox_start_x;
_root.centerbox._y = centerbox_start_y;
loaded = true;
changing_map = false;
_root.crawler.endofmap = false;
_root.crawler.limit = false;
_root.enemies = 0;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
}
if (level == 13) {
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:308.3, _y:140.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:249.3, _y:140.3});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:188.8, _y:140.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:119.6, _y:140.3});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-77.7, _y:91});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-158.2, _y:91});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-224.3, _y:91});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-286.7, _y:91});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-436.9, _y:164.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-481.9, _y:164.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-532.1, _y:164.2});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-481.9, _y:119.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-684.9, _y:102.8});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-736, _y:102.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-789.1, _y:102.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-848, _y:102.8});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-898.2, _y:98.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-950.9, _y:102.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1080.7, _y:203.8});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1130.7, _y:200.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1182.9, _y:203.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1237, _y:203.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1296.8, _y:203.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1365.8, _y:203.8});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1422.6, _y:203.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1559.9, _y:86});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1634.9, _y:86});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1718.9, _y:86});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1853.9, _y:60});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1924.7, _y:86});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1952.7, _y:164.2});
_root.gotoAndStop("cave7");
limit_map = 1992;
_root._x = 0;
trace(limit_map);
_root.crawler._x = start_x;
_root.crawler._y = start_y;
_root.map_changer._x = map_changer_start_x;
_root.map_changer._y = map_changer_start_y;
_root.score_box._x = score_box_start_x;
_root.score_box._y = score_box_start_y;
_root.limitbox._x = limitbox_start_x;
_root.limitbox._y = limitbox_start_y;
_root.centerbox._x = centerbox_start_x;
_root.centerbox._y = centerbox_start_y;
loaded = true;
changing_map = false;
_root.crawler.endofmap = false;
_root.crawler.limit = false;
_root.enemies = 0;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
}
if (level == 14) {
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:337.8, _y:114.8});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:259.4, _y:65.8});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:167, _y:114.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:101.3, _y:76.8});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-76.8, _y:83.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-176.7, _y:119.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-289.7, _y:86});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-398, _y:114.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-504.1, _y:83.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-610.9, _y:114.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-734.6, _y:133.6});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-802.1, _y:95.5});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-867.5, _y:71.8});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-902.1, _y:99.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-929.5, _y:71.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-984.8, _y:101.8});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1055.7, _y:143.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1123.5, _y:92});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1198.9, _y:150.2});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1265, _y:101.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1342.8, _y:150.2});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1419.8, _y:83.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1498.1, _y:153.9});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1559.9, _y:78});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1634.7, _y:78});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1726.9, _y:78});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1818.9, _y:78});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1881.7, _y:109.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-1946.6, _y:161.3});
_root.crawler.removeMovieClip();
_root.gotoAndStop("cave8");
limit_map = 1992;
_root._x = 0;
trace(limit_map);
_root.crawler._x = start_x;
_root.crawler._y = start_y;
_root.map_changer._x = map_changer_start_x;
_root.map_changer._y = map_changer_start_y;
_root.score_box._x = score_box_start_x;
_root.score_box._y = score_box_start_y;
_root.limitbox._x = limitbox_start_x;
_root.limitbox._y = limitbox_start_y;
_root.centerbox._x = centerbox_start_x;
_root.centerbox._y = centerbox_start_y;
loaded = true;
changing_map = false;
_root.crawler.endofmap = false;
_root.crawler.limit = false;
_root.enemies = 0;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
}
if (level == 15) {
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:303.9, _y:212.7});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:170.6, _y:209.1});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:51, _y:205.5});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:51, _y:157.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-76.8, _y:205.5});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-76.8, _y:157.3});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-76.8, _y:93.8});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-200.5, _y:205.5});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-200.5, _y:157.3});
coin_id++;
_root.attachMovie("redorb", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-334.4, _y:209.1});
coin_id++;
_root.attachMovie("coin", "coin" + coin_id, _root.getNextHighestDepth(), {_x:-452.1, _y:205.5});
_root.crawler.removeMovieClip();
_root.gotoAndStop("cave9");
limit_map = 691;
_root._x = 0;
trace(limit_map);
_root.crawler._x = start_x;
_root.crawler._y = start_y;
_root.map_changer._x = map_changer_start_x;
_root.map_changer._y = map_changer_start_y;
_root.score_box._x = score_box_start_x;
_root.score_box._y = score_box_start_y;
_root.limitbox._x = limitbox_start_x;
_root.limitbox._y = limitbox_start_y;
_root.centerbox._x = centerbox_start_x;
_root.centerbox._y = centerbox_start_y;
loaded = true;
changing_map = false;
_root.crawler.endofmap = false;
_root.crawler.limit = false;
_root.enemies = 0;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
}
if (level == 16) {
_root.crawler.removeMovieClip();
_root.gotoAndStop("submit_score");
limit_map = 1992;
_root._x = 0;
won = true;
lose = false;
trace(limit_map);
_root.crawler._x = start_x;
_root.crawler._y = start_y;
_root.map_changer._x = map_changer_start_x;
_root.map_changer._y = map_changer_start_y;
_root.score_box.removeMovieClip();
_root.limitbox._x = limitbox_start_x;
_root.limitbox._y = limitbox_start_y;
_root.centerbox._x = centerbox_start_x;
_root.centerbox._y = centerbox_start_y;
loaded = true;
changing_map = false;
_root.crawler.endofmap = false;
_root.crawler.limit = false;
_root.enemies = 0;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
}
if (level == 17) {
if ((won == true) && (lose == false)) {
_root.gotoAndStop("credits");
}
_root.crawler.removeMovieClip();
limit_map = 1992;
_root._x = 0;
_root.crawler._x = start_x;
_root.crawler._y = start_y;
_root.map_changer._x = map_changer_start_x;
_root.map_changer._y = map_changer_start_y;
_root.score_box._x = score_box_start_x;
_root.score_box._y = score_box_start_y;
_root.limitbox._x = limitbox_start_x;
_root.limitbox._y = limitbox_start_y;
_root.centerbox._x = centerbox_start_x;
_root.centerbox._y = centerbox_start_y;
loaded = true;
changing_map = false;
_root.crawler.endofmap = false;
_root.crawler.limit = false;
_root.enemies = 0;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
}
if (level == 18) {
_root.crawler.removeMovieClip();
_root.gotoAndStop("gameover");
lose = true;
won = false;
limit_map = 1992;
_root._x = 0;
_root.crawler._x = start_x;
_root.crawler._y = start_y;
_root.map_changer._x = map_changer_start_x;
_root.map_changer._y = map_changer_start_y;
_root.score_box._x = score_box_start_x;
_root.score_box._y = score_box_start_y;
_root.limitbox._x = limitbox_start_x;
_root.limitbox._y = limitbox_start_y;
_root.centerbox._x = centerbox_start_x;
_root.centerbox._y = centerbox_start_y;
loaded = true;
changing_map = false;
_root.crawler.endofmap = false;
_root.crawler.limit = false;
_root.enemies = 0;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
}
if (level == 19) {
_root.crawler.removeMovieClip();
_root.gotoAndStop("menu");
_root._x = 0;
_root.crawler._x = start_x;
_root.crawler._y = start_y;
_root.map_changer._x = map_changer_start_x;
_root.map_changer._y = map_changer_start_y;
_root.score_box._x = score_box_start_x;
_root.score_box._y = score_box_start_y;
_root.limitbox._x = limitbox_start_x;
_root.limitbox._y = limitbox_start_y;
_root.centerbox._x = centerbox_start_x;
_root.centerbox._y = centerbox_start_y;
loaded = true;
changing_map = false;
_root.crawler.endofmap = false;
_root.crawler.limit = false;
_root.enemies = 0;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
}
}
};
this.onEnterFrame = function () {
if (((lifes <= 0) && (health <= 0)) && (lose == false)) {
_root.map_changer.swapDepths(_root.getNextHighestDepth());
_root.map_changer.play();
level = 18;
lose = true;
won = false;
loaded = false;
}
};
Instance of Symbol 353 MovieClip "crawler" in Frame 5
onClipEvent (load) {
spx = 6;
spy = 0;
grv = 2;
bound_point_y = 22.5;
bound_point_y_max = 28;
bound_point_x = 12;
bound_point_xy = 12;
sidescroll = false;
bloqueoleft = false;
bloqueoright = false;
kick = false;
combo1 = false;
combo2 = false;
combo3 = false;
evento = false;
sp_land = spy;
jump = false;
fall = false;
kick_button = false;
hitted = false;
side_empuje = "";
sp_empuje = 5;
death = false;
inmune = false;
inmune_fps = 100;
velocidad_combo3 = 30;
endofmap = false;
limit = false;
}
onClipEvent (enterFrame) {
_y = (_y + spy);
if (_root.loaded == true) {
if (((death == false) && (_root.evento_pause == false)) && (_root.changing_map == false)) {
if (((((_x < 275) && (sidescroll == false)) && (_root.enemies <= 0)) && (evento == false)) && (limit == false)) {
sidescroll = true;
} else if (((sidescroll == true) && (_root.enemies > 0)) && (evento == true)) {
sidescroll = false;
}
if ((_x > 275) && (sidescroll == true)) {
sidescroll = false;
}
if ((((_root._x >= _root.limit_map) && (sidescroll == true)) && (_root.enemies <= 0)) || (((_root._x >= _root.limit_map) && (sidescroll == false)) && (_root.enemies <= 0))) {
sidescroll = false;
limit = true;
endofmap = true;
} else if ((((_root._x >= _root.limit_map) && (sidescroll == true)) && (_root.enemies > 0)) || (((_root._x >= _root.limit_map) && (sidescroll == false)) && (_root.enemies > 0))) {
sidescroll = false;
limit = false;
endofmap = false;
}
if ((_root.enemies > 0) && (evento == false)) {
evento = true;
} else if (((_root.enemies <= 0) && (evento == true)) && (limit == false)) {
if ((_x < _root.centerbox._x) && (sidescroll == false)) {
_root._x = _root._x + 10;
_root.centerbox._x = _root.centerbox._x - 10;
_root.limitbox._x = _root.limitbox._x - 10;
_root.score_box._x = _root.score_box._x - 10;
_root.map_changer._x = _root.map_changer._x - 10;
} else if ((_x > _root.centerbox._x) && (_x < (_root.centerbox._x + 10))) {
evento = false;
}
}
if (((this._x - 10) < (_root.limitbox._x - 304.9)) && (endofmap == false)) {
this._x = (_root.limitbox._x - 304.9) + 10;
} else if ((this._x + 10) > (_root.limitbox._x + 264)) {
this._x = (_root.limitbox._x + 264) - 10;
}
if (this._y > 300) {
hitted = true;
grv = 10;
spy = spy - grv;
grv = 2;
_root.health = _root.health - 300;
}
if (sidescroll == false) {
if (((Key.isDown(37) && (jump == false)) && (!root.plataforms.hitTest(_x - bound_point_x, _y, true))) && (kick == false)) {
_x = (_x - spx);
this.gotoAndStop("walking");
_xscale = 100;
}
if (((Key.isDown(39) && (jump == false)) && (!root.plataforms.hitTest(_x + bound_point_x, _y, true))) && (kick == false)) {
_x = (_x + spx);
this.gotoAndStop("walking");
_xscale = -100;
}
if ((Key.isDown(37) && (jump == true)) && (kick == false)) {
_x = (_x - spx);
_xscale = 100;
} else if ((Key.isDown(39) && (jump == true)) && (kick == false)) {
_x = (_x + spx);
_xscale = -100;
}
} else if (sidescroll == true) {
if (((Key.isDown(37) && (jump == false)) && (!root.plataforms.hitTest((_x - bound_point_x) - 30, _y, true))) && (kick == false)) {
_x = (_x - spx);
_root._x = _root._x + spx;
_root.centerbox._x = _root.centerbox._x - spx;
_root.limitbox._x = _root.limitbox._x - spx;
_root.score_box._x = _root.score_box._x - spx;
_root.map_changer._x = _root.map_changer._x - spx;
this.gotoAndStop("walking");
_xscale = 100;
}
if (((Key.isDown(39) && (jump == false)) && (!root.plataforms.hitTest((_x + bound_point_x) + 20, _y, true))) && (kick == false)) {
_x = (_x + spx);
_root._x = _root._x - spx;
_root.centerbox._x = _root.centerbox._x + spx;
_root.limitbox._x = _root.limitbox._x + spx;
_root.score_box._x = _root.score_box._x + spx;
_root.map_changer._x = _root.map_changer._x + spx;
this.gotoAndStop("walking");
_xscale = -100;
}
if ((Key.isDown(37) && (jump == true)) && (kick == false)) {
_x = (_x - spx);
_root._x = _root._x + spx;
_root.centerbox._x = _root.centerbox._x - spx;
_root.limitbox._x = _root.limitbox._x - spx;
_root.score_box._x = _root.score_box._x - spx;
_root.map_changer._x = _root.map_changer._x - spx;
_xscale = 100;
} else if ((Key.isDown(39) && (jump == true)) && (kick == false)) {
_x = (_x + spx);
_root._x = _root._x - spx;
_root.centerbox._x = _root.centerbox._x + spx;
_root.limitbox._x = _root.limitbox._x + spx;
_root.score_box._x = _root.score_box._x + spx;
_root.map_changer._x = _root.map_changer._x + spx;
_xscale = -100;
}
}
if (((((!Key.isDown(37)) && (!Key.isDown(39))) && (jump == false)) && (fall == false)) && (kick == false)) {
this.gotoAndStop("stand");
}
if (((Key.isDown(65) && (jump == false)) && (fall == false)) && (kick == false)) {
grv = 25;
spy = spy - grv;
if (kick_jump == false) {
this.gotoAndStop("jump");
}
jump = true;
grv = 2;
}
if (jump == true) {
spy = spy + grv;
}
if ((jump == true) && (fall == false)) {
if ((spy > 0) && (spy)) {
fall == true;
if (kick_jump == false) {
this.gotoAndStop("fall");
}
}
}
((spy > 15) ? ((spy = 15)) : null);
((spy < -20) ? ((spy = -20)) : null);
if (((_root.plataforms.hitTest(_x, _y + bound_point_y, true) && (jump == true)) || (_root.plataforms.hitTest((_x + bound_point_x) - 10, _y + bound_point_y, true) && (jump == true))) || (_root.plataforms.hitTest((_x - bound_point_x) + 10, _y + bound_point_y, true) && (jump == true))) {
jump = false;
fall = false;
spy = 0;
kick_jump = false;
hitted = false;
}
if ((_root.plataforms.hitTest(_x, (_y + bound_point_y_max) - 3, true) || (_root.plataforms.hitTest((_x + bound_point_x) - 8, (_y + bound_point_y_max) - 3, true))) || (_root.plataforms.hitTest((_x - bound_point_x) + 8, (_y + bound_point_y_max) - 3, true))) {
_y = (_y - 6);
}
if ((_root.plataforms.hitTest(_x + bound_point_x, _y, true) || (_root.plataforms.hitTest(_x + 14, _y + 10, true))) || (_root.plataforms.hitTest(_x + 14, _y - 10, true))) {
if (combo3 == false) {
_x = (_x - spx);
if (sidescroll == true) {
_root._x = _root._x + spx;
_root.centerbox._x = _root.centerbox._x - spx;
_root.limitbox._x = _root.limitbox._x - spx;
_root.score_box._x = _root.score_box._x - spx;
_root.map_changer._x = _root.map_changer._x - spx;
}
}
if (combo3 == true) {
_x = (_x - velocidad_combo3);
combo3 = false;
}
hitted = false;
} else if ((_root.plataforms.hitTest(_x - bound_point_x, _y, true) || (_root.plataforms.hitTest(_x - 14, _y + 10, true))) || (_root.plataforms.hitTest(_x - 14, _y - 10, true))) {
if (combo3 == false) {
_x = (_x + spx);
if (sidescroll == true) {
_root._x = _root._x - spx;
_root.centerbox._x = _root.centerbox._x + spx;
_root.limitbox._x = _root.limitbox._x + spx;
_root.score_box._x = _root.score_box._x + spx;
_root.map_changer._x = _root.map_changer._x + spx;
}
}
if (combo3 == true) {
_x = (_x + velocidad_combo3);
combo3 = false;
}
hitted = false;
}
if (_root.plataforms.hitTest(_x + 5, _y - 25, true) || (_root.plataforms.hitTest(_x - 5, _y - 25, true))) {
trace("hi");
spy = 0;
_y = (_y + 10);
fall = true;
}
if ((((!_root.plataforms.hitTest(_x - bound_point_x, (_y + bound_point_y) + 10, true)) && (!_root.plataforms.hitTest(_x + bound_point_x, (_y + bound_point_y) + 10, true))) && (!_root.plataforms.hitTest(_x, (_y + bound_point_y) + 10, true))) && (jump == false)) {
jump = true;
kick = false;
}
if (((Key.isDown(83) && (kick == false)) && (jump == false)) && (kick_button == false)) {
kick = true;
this.gotoAndStop("kick1");
combo1 = true;
combo2 = false;
combo3 = false;
kick_button = true;
}
if ((!Key.isDown(83)) && (kick_button == true)) {
kick_button = false;
}
if (((((Key.isDown(83) && (kick == true)) && (jump == false)) && (combo1 == true)) && (this.kick_anim._currentframe > 6)) && (kick_button == false)) {
combo2 = true;
combo1 = false;
}
if (((((((Key.isDown(83) && (kick == true)) && (jump == false)) && (combo2 == true)) && (this.kick_anim._currentframe > 15)) && (kick_button == false)) && (sidescroll == false)) && (_root.enemies > 0)) {
combo3 = true;
combo2 = false;
}
if (((combo3 == true) && (this.kick_anim._currentframe > 26)) && (sidescroll == false)) {
if (!_root.plataforms.hitTest(_x - 30, _y, true)) {
if (_xscale == 100) {
_x = (_x - velocidad_combo3);
}
}
if (!_root.plataforms.hitTest(_x + 30, _y, true)) {
if (_xscale == -100) {
_x = (_x + velocidad_combo3);
}
}
}
if (((Key.isDown(83) && (jump == true)) && (kick_jump == false)) && (kick_button == false)) {
kick_jump = true;
this.gotoAndStop("kickjump");
}
if (hitted == true) {
if (sidescroll == false) {
if (side_empuje == "left") {
_x = (_x - sp_empuje);
}
if (side_empuje == "right") {
_x = (_x + sp_empuje);
}
} else {
if (side_empuje == "left") {
_x = (_x - sp_empuje);
_root._x = _root._x + sp_empuje;
_root.centerbox._x = _root.centerbox._x - sp_empuje;
_root.limitbox._x = _root.limitbox._x - sp_empuje;
_root.score_box._x = _root.score_box._x - sp_empuje;
_root.map_changer._x = _root.map_changer._x - sp_empuje;
}
if (side_empuje == "right") {
_x = (_x + sp_empuje);
_root._x = _root._x - sp_empuje;
_root.centerbox._x = _root.centerbox._x + sp_empuje;
_root.limitbox._x = _root.limitbox._x + sp_empuje;
_root.score_box._x = _root.score_box._x + sp_empuje;
_root.map_changer._x = _root.map_changer._x + sp_empuje;
}
}
red = new Color(this);
red.setTransform(_root.red);
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 20;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb2" + _root.orb_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
_root.hearth_id++;
size = Math.random() * 1;
_root.attachMovie("hearth", "hearth" + _root.hearth_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
i++;
}
} else {
normal = new Color(this);
normal.setTransform(_root.normal);
}
if (_root.health <= 0) {
grv = 20;
spy = spy - grv;
grv = 2;
death = true;
this.gotoAndStop("die");
}
if ((inmune == true) && (inmune_fps > 0)) {
inmune_fps--;
this._alpha = 30;
} else if ((inmune == true) && (inmune_fps <= 0)) {
inmune = false;
inmune_fps = 100;
this._alpha = 100;
}
}
if ((kick == false) && (kick_jump == false)) {
_root.combos_count = _root.combo;
_root.combo = 0;
}
if ((death == true) && (this.dieanim._currentframe < 20)) {
if (side_empuje == "left") {
_x = (_x - 20);
}
if (side_empuje == "right") {
_x = (_x + 20);
}
i = 1;
while (i < 5) {
_root.orb_id++;
size = Math.random() * 30;
_root.attachMovie("orb2", "orb2" + _root.orb_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
i++;
}
}
if (((death == true) && (this.dieanim._currentframe >= 20)) && (_root.lifes > 0)) {
_root.lifes--;
_root.health = 200;
hitted = false;
if ((((((((((_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y, true) && (sidescroll == true)) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 30, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 30, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 60, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 60, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 100, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 100, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 130, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 130, true) && (sidescroll == true))) || (sidescroll == false)) {
this._y = _root.centerbox._y - 226.5;
this._x = _root.centerbox._x;
}
if ((((((((((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y, true)) && (sidescroll == true)) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 30, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 30, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 60, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 60, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 100, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 100, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 130, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 130, true)) && (sidescroll == true))) {
this._y = _root.centerbox._y - 226.5;
this._x = _root.centerbox._x + 60;
sidescroll = false;
evento = true;
}
inmune = true;
death = false;
}
if (((this.hitTest(_root.nextmap) && (_root.changing_map == false)) && (endofmap == true)) && (death == false)) {
_root.level++;
_root.loaded = false;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
_root.map_changer.play();
_root.changing_map = true;
}
}
}
Instance of Symbol 522 MovieClip "score_box" in Frame 5
onClipEvent (enterFrame) {
digits = String(_root.score);
process_score = "" + digits;
while (process_score.length <= 7) {
process_score = "0" + process_score;
}
i = 1;
while (i < 10) {
showscore = process_score.charAt(i - 1);
showscore++;
this["dig" + i].gotoAndStop(showscore);
i++;
}
digits2 = String(_root.redorb);
process_redorbs = "" + digits2;
while (process_redorbs.length <= 2) {
process_redorbs = "0" + process_redorbs;
}
i = 1;
while (i < 4) {
showscore_redorbs = process_redorbs.charAt(i - 1);
showscore_redorbs++;
this["digorbs" + i].gotoAndStop(showscore_redorbs);
i++;
}
digits3 = String(_root.lifes);
process_lifes = "" + digits3;
while (process_lifes.length <= 1) {
process_lifes = "0" + process_lifes;
}
i = 1;
while (i < 3) {
showscore_lifes = process_lifes.charAt(i - 1);
showscore_lifes++;
this["diglifes" + i].gotoAndStop(showscore_lifes);
i++;
}
if (_root.combos_count > 1) {
if (this.combo1._currentframe < 2) {
this.combo1.play();
this.combo1.digcombo1.gotoAndStop(_root.combos_count++);
_root.combos_count = 0;
}
if ((this.combo1._currentframe > 1) && (this.combo2._currentframe < 2)) {
this.combo2.play();
this.combo2.digcombo1.gotoAndStop(_root.combos_count++);
_root.combos_count = 0;
}
if (((this.combo1._currentframe > 1) && (this.combo2._currentframe > 1)) && (this.combo3._currentframe < 2)) {
this.combo3.play();
this.combo3.digcombo1.gotoAndStop(_root.combos_count++);
_root.combos_count = 0;
}
}
if ((_root.level == 18) && (_root.map_changer._currentframe >= 28)) {
this.removeMovieClip();
}
}
Frame 10
limit_map = 2500;
level = 6;
Instance of Symbol 353 MovieClip "crawler" in Frame 10
onClipEvent (load) {
spx = 6;
spy = 0;
grv = 2;
bound_point_y = 22.5;
bound_point_y_max = 28;
bound_point_x = 12;
bound_point_xy = 12;
sidescroll = false;
bloqueoleft = false;
bloqueoright = false;
kick = false;
combo1 = false;
combo2 = false;
combo3 = false;
evento = false;
sp_land = spy;
jump = false;
fall = false;
kick_button = false;
hitted = false;
side_empuje = "";
sp_empuje = 5;
death = false;
inmune = false;
inmune_fps = 100;
velocidad_combo3 = 30;
endofmap = false;
limit = false;
}
onClipEvent (enterFrame) {
_y = (_y + spy);
if (((death == false) && (_root.evento_pause == false)) && (_root.changing_map == false)) {
if (((((_x < 275) && (sidescroll == false)) && (_root.enemies <= 0)) && (evento == false)) && (limit == false)) {
sidescroll = true;
} else if (((sidescroll == true) && (_root.enemies > 0)) && (evento == true)) {
sidescroll = false;
}
if ((_x > 275) && (sidescroll == true)) {
sidescroll = false;
}
if ((((_root._x >= _root.limit_map) && (sidescroll == true)) && (_root.enemies <= 0)) || (((_root._x >= _root.limit_map) && (sidescroll == false)) && (_root.enemies <= 0))) {
sidescroll = false;
limit = true;
endofmap = true;
} else if ((((_root._x >= _root.limit_map) && (sidescroll == true)) && (_root.enemies > 0)) || (((_root._x >= _root.limit_map) && (sidescroll == false)) && (_root.enemies > 0))) {
sidescroll = false;
limit = false;
endofmap = false;
}
if ((this._y > 300) && (limit == false)) {
hitted = true;
grv = 10;
spy = spy - grv;
grv = 2;
_root.health = _root.health - 300;
}
if ((_root.enemies > 0) && (evento == false)) {
evento = true;
} else if (((_root.enemies <= 0) && (evento == true)) && (limit == false)) {
if ((_x < _root.centerbox._x) && (sidescroll == false)) {
_root._x = _root._x + 10;
_root.centerbox._x = _root.centerbox._x - 10;
_root.limitbox._x = _root.limitbox._x - 10;
_root.score_box._x = _root.score_box._x - 10;
_root.map_changer._x = _root.map_changer._x - 10;
} else if ((_x > _root.centerbox._x) && (_x < (_root.centerbox._x + 10))) {
evento = false;
}
}
if (((this._x - 10) < (_root.limitbox._x - 304.9)) && (endofmap == false)) {
this._x = (_root.limitbox._x - 304.9) + 10;
} else if ((this._x + 10) > (_root.limitbox._x + 264)) {
this._x = (_root.limitbox._x + 264) - 10;
}
if (sidescroll == false) {
if (((Key.isDown(37) && (jump == false)) && (!root.plataformsx.hitTest(_x - bound_point_x, _y, true))) && (kick == false)) {
_x = (_x - spx);
this.gotoAndStop("walking");
_xscale = 100;
}
if (((Key.isDown(39) && (jump == false)) && (!root.plataformsx.hitTest(_x + bound_point_x, _y, true))) && (kick == false)) {
_x = (_x + spx);
this.gotoAndStop("walking");
_xscale = -100;
}
if ((Key.isDown(37) && (jump == true)) && (kick == false)) {
_x = (_x - spx);
_xscale = 100;
} else if ((Key.isDown(39) && (jump == true)) && (kick == false)) {
_x = (_x + spx);
_xscale = -100;
}
} else if (sidescroll == true) {
if (((Key.isDown(37) && (jump == false)) && (!root.plataformsx.hitTest((_x - bound_point_x) - 30, _y, true))) && (kick == false)) {
_x = (_x - spx);
_root._x = _root._x + spx;
_root.centerbox._x = _root.centerbox._x - spx;
_root.limitbox._x = _root.limitbox._x - spx;
_root.score_box._x = _root.score_box._x - spx;
_root.map_changer._x = _root.map_changer._x - spx;
this.gotoAndStop("walking");
_xscale = 100;
}
if (((Key.isDown(39) && (jump == false)) && (!root.plataformsx.hitTest((_x + bound_point_x) + 20, _y, true))) && (kick == false)) {
_x = (_x + spx);
_root._x = _root._x - spx;
_root.centerbox._x = _root.centerbox._x + spx;
_root.limitbox._x = _root.limitbox._x + spx;
_root.score_box._x = _root.score_box._x + spx;
_root.map_changer._x = _root.map_changer._x + spx;
this.gotoAndStop("walking");
_xscale = -100;
}
if ((Key.isDown(37) && (jump == true)) && (kick == false)) {
_x = (_x - spx);
_root._x = _root._x + spx;
_root.centerbox._x = _root.centerbox._x - spx;
_root.limitbox._x = _root.limitbox._x - spx;
_root.score_box._x = _root.score_box._x - spx;
_root.map_changer._x = _root.map_changer._x - spx;
_xscale = 100;
} else if ((Key.isDown(39) && (jump == true)) && (kick == false)) {
_x = (_x + spx);
_root._x = _root._x - spx;
_root.centerbox._x = _root.centerbox._x + spx;
_root.limitbox._x = _root.limitbox._x + spx;
_root.score_box._x = _root.score_box._x + spx;
_root.map_changer._x = _root.map_changer._x + spx;
_xscale = -100;
}
}
if (((((!Key.isDown(37)) && (!Key.isDown(39))) && (jump == false)) && (fall == false)) && (kick == false)) {
this.gotoAndStop("stand");
}
if (((Key.isDown(65) && (jump == false)) && (fall == false)) && (kick == false)) {
grv = 25;
spy = spy - grv;
if (kick_jump == false) {
this.gotoAndStop("jump");
}
jump = true;
grv = 2;
}
if (jump == true) {
spy = spy + grv;
}
if ((jump == true) && (fall == false)) {
if ((spy > 0) && (spy)) {
fall == true;
if (kick_jump == false) {
this.gotoAndStop("fall");
}
}
}
((spy > 15) ? ((spy = 15)) : null);
((spy < -20) ? ((spy = -20)) : null);
if (((_root.plataformsx.hitTest(_x, _y + bound_point_y, true) && (jump == true)) || (_root.plataformsx.hitTest((_x + bound_point_x) - 10, _y + bound_point_y, true) && (jump == true))) || (_root.plataformsx.hitTest((_x - bound_point_x) + 10, _y + bound_point_y, true) && (jump == true))) {
jump = false;
fall = false;
spy = 0;
kick_jump = false;
hitted = false;
}
if ((_root.plataformsx.hitTest(_x, (_y + bound_point_y_max) - 3, true) || (_root.plataformsx.hitTest((_x + bound_point_x) - 8, (_y + bound_point_y_max) - 3, true))) || (_root.plataformsx.hitTest((_x - bound_point_x) + 8, (_y + bound_point_y_max) - 3, true))) {
_y = (_y - 6);
hitted = false;
}
if ((_root.plataformsx.hitTest(_x + bound_point_x, _y, true) || (_root.plataformsx.hitTest(_x + 14, _y + 10, true))) || (_root.plataformsx.hitTest(_x + 14, _y - 10, true))) {
if (combo3 == false) {
_x = (_x - spx);
if (sidescroll == true) {
_root._x = _root._x + spx;
_root.centerbox._x = _root.centerbox._x - spx;
_root.limitbox._x = _root.limitbox._x - spx;
_root.score_box._x = _root.score_box._x - spx;
_root.map_changer._x = _root.map_changer._x - spx;
}
}
if (combo3 == true) {
_x = (_x - velocidad_combo3);
combo3 = false;
}
hitted = false;
} else if ((_root.plataformsx.hitTest(_x - bound_point_x, _y, true) || (_root.plataformsx.hitTest(_x - 14, _y + 10, true))) || (_root.plataformsx.hitTest(_x - 14, _y - 10, true))) {
if (combo3 == false) {
_x = (_x + spx);
if (sidescroll == true) {
_root._x = _root._x - spx;
_root.centerbox._x = _root.centerbox._x + spx;
_root.limitbox._x = _root.limitbox._x + spx;
_root.score_box._x = _root.score_box._x + spx;
_root.map_changer._x = _root.map_changer._x + spx;
}
}
if (combo3 == true) {
_x = (_x + velocidad_combo3);
combo3 = false;
}
hitted = false;
}
if (_root.plataformsx.hitTest(_x + 5, _y - 25, true) || (_root.plataformsx.hitTest(_x - 5, _y - 25, true))) {
spy = 0;
_y = (_y + 10);
fall = true;
}
if ((((!_root.plataformsx.hitTest(_x - bound_point_x, (_y + bound_point_y) + 10, true)) && (!_root.plataformsx.hitTest(_x + bound_point_x, (_y + bound_point_y) + 10, true))) && (!_root.plataformsx.hitTest(_x, (_y + bound_point_y) + 10, true))) && (jump == false)) {
jump = true;
kick = false;
}
if (((Key.isDown(83) && (kick == false)) && (jump == false)) && (kick_button == false)) {
kick = true;
this.gotoAndStop("kick1");
combo1 = true;
combo2 = false;
combo3 = false;
kick_button = true;
}
if ((!Key.isDown(83)) && (kick_button == true)) {
kick_button = false;
}
if (((((Key.isDown(83) && (kick == true)) && (jump == false)) && (combo1 == true)) && (this.kick_anim._currentframe > 6)) && (kick_button == false)) {
combo2 = true;
combo1 = false;
}
if (((((((Key.isDown(83) && (kick == true)) && (jump == false)) && (combo2 == true)) && (this.kick_anim._currentframe > 15)) && (kick_button == false)) && (sidescroll == false)) && (_root.enemies > 0)) {
combo3 = true;
combo2 = false;
}
if (((combo3 == true) && (this.kick_anim._currentframe > 26)) && (sidescroll == false)) {
if (!_root.plataformsx.hitTest(_x - 30, _y, true)) {
if (_xscale == 100) {
_x = (_x - velocidad_combo3);
}
}
if (!_root.plataformsx.hitTest(_x + 30, _y, true)) {
if (_xscale == -100) {
_x = (_x + velocidad_combo3);
}
}
}
if (((Key.isDown(83) && (jump == true)) && (kick_jump == false)) && (kick_button == false)) {
kick_jump = true;
this.gotoAndStop("kickjump");
}
if (hitted == true) {
if (sidescroll == false) {
if (side_empuje == "left") {
_x = (_x - sp_empuje);
}
if (side_empuje == "right") {
_x = (_x + sp_empuje);
}
} else {
if (side_empuje == "left") {
_x = (_x - sp_empuje);
_root._x = _root._x + sp_empuje;
_root.centerbox._x = _root.centerbox._x - sp_empuje;
_root.limitbox._x = _root.limitbox._x - sp_empuje;
_root.score_box._x = _root.score_box._x - sp_empuje;
_root.map_changer._x = _root.map_changer._x - sp_empuje;
}
if (side_empuje == "right") {
_x = (_x + sp_empuje);
_root._x = _root._x - sp_empuje;
_root.centerbox._x = _root.centerbox._x + sp_empuje;
_root.limitbox._x = _root.limitbox._x + sp_empuje;
_root.score_box._x = _root.score_box._x + sp_empuje;
_root.map_changer._x = _root.map_changer._x + sp_empuje;
}
}
red = new Color(this);
red.setTransform(_root.red);
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 20;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb2" + _root.orb_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
_root.hearth_id++;
size = Math.random() * 1;
_root.attachMovie("hearth", "hearth" + _root.hearth_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
i++;
}
} else {
normal = new Color(this);
normal.setTransform(_root.normal);
}
if (_root.health <= 0) {
grv = 20;
spy = spy - grv;
grv = 2;
death = true;
this.gotoAndStop("die");
}
if ((inmune == true) && (inmune_fps > 0)) {
inmune_fps--;
this._alpha = 30;
} else if ((inmune == true) && (inmune_fps <= 0)) {
inmune = false;
inmune_fps = 100;
this._alpha = 100;
}
}
if ((kick == false) && (kick_jump == false)) {
_root.combos_count = _root.combo;
_root.combo = 0;
}
if ((death == true) && (this.dieanim._currentframe < 20)) {
this.dieanim.play();
if (side_empuje == "left") {
_x = (_x - 20);
}
if (side_empuje == "right") {
_x = (_x + 20);
}
i = 1;
while (i < 5) {
_root.orb_id++;
size = Math.random() * 30;
_root.attachMovie("orb2", "orb2" + _root.orb_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
i++;
}
}
if (((death == true) && (this.dieanim._currentframe >= 20)) && (_root.lifes > 0)) {
_root.lifes--;
_root.health = 200;
hitted = false;
if ((((((((((_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y, true) && (sidescroll == true)) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 30, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 30, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 60, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 60, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 100, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 100, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 130, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 130, true) && (sidescroll == true))) || (sidescroll == false)) {
this._y = _root.centerbox._y - 226.5;
this._x = _root.centerbox._x;
}
if ((((((((((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y, true)) && (sidescroll == true)) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 30, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 30, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 60, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 60, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 100, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 100, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 130, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 130, true)) && (sidescroll == true))) {
this._y = _root.centerbox._y - 226.5;
this._x = _root.centerbox._x + 60;
sidescroll = false;
evento = true;
}
inmune = true;
death = false;
}
if (((this.hitTest(_root.nextmap) && (_root.changing_map == false)) && (endofmap == true)) && (death == false)) {
_root.level++;
_root.loaded = false;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
_root.map_changer.play();
_root.changing_map = true;
}
}
Frame 11
level = 7;
stopAllSounds();
_root.music2.start(0, 99999);
Instance of Symbol 353 MovieClip "crawler" in Frame 11
onClipEvent (load) {
spx = 6;
spy = 0;
grv = 2;
bound_point_y = 22.5;
bound_point_y_max = 28;
bound_point_x = 12;
bound_point_xy = 12;
sidescroll = false;
bloqueoleft = false;
bloqueoright = false;
kick = false;
combo1 = false;
combo2 = false;
combo3 = false;
evento = false;
sp_land = spy;
jump = false;
fall = false;
kick_button = false;
hitted = false;
side_empuje = "";
sp_empuje = 5;
death = false;
inmune = false;
inmune_fps = 100;
velocidad_combo3 = 30;
endofmap = false;
limit = false;
}
onClipEvent (enterFrame) {
_y = (_y + spy);
if ((_y > _root.centerbox._y) && (_root._y > -1350)) {
_root._y = _root._y - spy;
_root.centerbox._y = _root.centerbox._y + spy;
_root.score_box._y = _root.score_box._y + spy;
_root.limitbox._y = _root.limitbox._y + spy;
_root.map_changer._y = _root.map_changer._y + spy;
}
if (((death == false) && (_root.evento_pause == false)) && (_root.changing_map == false)) {
if ((_root.enemies > 0) && (evento == false)) {
evento = true;
} else if (((_root.enemies <= 0) && (evento == true)) && (limit == false)) {
}
if ((this._x + 10) > (_root.limitbox._x + 264)) {
this._x = (_root.limitbox._x + 264) - 10;
}
if (sidescroll == false) {
if (((Key.isDown(37) && (jump == false)) && (!root.plataforms.hitTest(_x - bound_point_x, _y, true))) && (kick == false)) {
_x = (_x - spx);
this.gotoAndStop("walking");
_xscale = 100;
}
if (((Key.isDown(39) && (jump == false)) && (!root.plataforms.hitTest(_x + bound_point_x, _y, true))) && (kick == false)) {
_x = (_x + spx);
this.gotoAndStop("walking");
_xscale = -100;
}
if ((Key.isDown(37) && (jump == true)) && (kick == false)) {
_x = (_x - spx);
_xscale = 100;
} else if ((Key.isDown(39) && (jump == true)) && (kick == false)) {
_x = (_x + spx);
_xscale = -100;
}
} else if (sidescroll == true) {
if (((Key.isDown(37) && (jump == false)) && (!root.plataforms.hitTest((_x - bound_point_x) - 30, _y, true))) && (kick == false)) {
_x = (_x - spx);
this.gotoAndStop("walking");
_xscale = 100;
}
if (((Key.isDown(39) && (jump == false)) && (!root.plataforms.hitTest((_x + bound_point_x) + 20, _y, true))) && (kick == false)) {
_x = (_x + spx);
this.gotoAndStop("walking");
_xscale = -100;
}
if ((Key.isDown(37) && (jump == true)) && (kick == false)) {
_x = (_x - spx);
_xscale = 100;
} else if ((Key.isDown(39) && (jump == true)) && (kick == false)) {
_x = (_x + spx);
_xscale = -100;
}
}
if (((((!Key.isDown(37)) && (!Key.isDown(39))) && (jump == false)) && (fall == false)) && (kick == false)) {
this.gotoAndStop("stand");
}
if (((Key.isDown(65) && (jump == false)) && (fall == false)) && (kick == false)) {
grv = 25;
spy = spy - grv;
if (kick_jump == false) {
this.gotoAndStop("jump");
}
jump = true;
grv = 2;
}
if (jump == true) {
spy = spy + grv;
}
if ((jump == true) && (fall == false)) {
if ((spy > 0) && (spy)) {
fall == true;
if (kick_jump == false) {
this.gotoAndStop("fall");
}
}
}
((spy > 15) ? ((spy = 15)) : null);
((spy < -20) ? ((spy = -20)) : null);
if (((_root.plataforms.hitTest(_x, _y + bound_point_y, true) && (jump == true)) || (_root.plataforms.hitTest((_x + bound_point_x) - 10, _y + bound_point_y, true) && (jump == true))) || (_root.plataforms.hitTest((_x - bound_point_x) + 10, _y + bound_point_y, true) && (jump == true))) {
jump = false;
fall = false;
spy = 0;
kick_jump = false;
hitted = false;
}
if ((_root.plataforms.hitTest(_x, (_y + bound_point_y_max) - 3, true) || (_root.plataforms.hitTest((_x + bound_point_x) - 8, (_y + bound_point_y_max) - 3, true))) || (_root.plataforms.hitTest((_x - bound_point_x) + 8, (_y + bound_point_y_max) - 3, true))) {
_y = (_y - 8);
}
if ((_root.plataforms.hitTest(_x + bound_point_x, _y, true) || (_root.plataforms.hitTest(_x + 14, _y + 10, true))) || (_root.plataforms.hitTest(_x + 14, _y - 10, true))) {
if (combo3 == false) {
_x = (_x - spx);
if (sidescroll == true) {
_root._x = _root._x + spx;
_root.centerbox._x = _root.centerbox._x - spx;
_root.limitbox._x = _root.limitbox._x - spx;
_root.score_box._x = _root.score_box._x - spx;
_root.map_changer._x = _root.map_changer._x - spx;
}
}
if (combo3 == true) {
_x = (_x - velocidad_combo3);
combo3 = false;
}
hitted = false;
} else if ((_root.plataforms.hitTest(_x - bound_point_x, _y, true) || (_root.plataforms.hitTest(_x - 14, _y + 10, true))) || (_root.plataforms.hitTest(_x - 14, _y - 10, true))) {
if (combo3 == false) {
_x = (_x + spx);
if (sidescroll == true) {
_root._x = _root._x - spx;
_root.centerbox._x = _root.centerbox._x + spx;
_root.limitbox._x = _root.limitbox._x + spx;
_root.score_box._x = _root.score_box._x + spx;
_root.map_changer._x = _root.map_changer._x + spx;
}
}
if (combo3 == true) {
_x = (_x + velocidad_combo3);
combo3 = false;
}
hitted = false;
}
if (_root.plataforms.hitTest(_x + 5, _y - 25, true) || (_root.plataforms.hitTest(_x - 5, _y - 25, true))) {
trace("hi");
spy = 0;
_y = (_y + 10);
fall = true;
}
if ((((!_root.plataforms.hitTest(_x - bound_point_x, (_y + bound_point_y) + 10, true)) && (!_root.plataforms.hitTest(_x + bound_point_x, (_y + bound_point_y) + 10, true))) && (!_root.plataforms.hitTest(_x, (_y + bound_point_y) + 10, true))) && (jump == false)) {
jump = true;
kick = false;
}
if (((Key.isDown(83) && (kick == false)) && (jump == false)) && (kick_button == false)) {
kick = true;
this.gotoAndStop("kick1");
combo1 = true;
combo2 = false;
combo3 = false;
kick_button = true;
}
if ((!Key.isDown(83)) && (kick_button == true)) {
kick_button = false;
}
if (((((Key.isDown(83) && (kick == true)) && (jump == false)) && (combo1 == true)) && (this.kick_anim._currentframe > 6)) && (kick_button == false)) {
combo2 = true;
combo1 = false;
}
if (((((((Key.isDown(83) && (kick == true)) && (jump == false)) && (combo2 == true)) && (this.kick_anim._currentframe > 15)) && (kick_button == false)) && (sidescroll == false)) && (_root.enemies > 0)) {
combo3 = true;
combo2 = false;
}
if (((combo3 == true) && (this.kick_anim._currentframe > 26)) && (sidescroll == false)) {
if (!_root.plataforms.hitTest(_x - 30, _y, true)) {
if (_xscale == 100) {
_x = (_x - velocidad_combo3);
}
}
if (!_root.plataforms.hitTest(_x + 30, _y, true)) {
if (_xscale == -100) {
_x = (_x + velocidad_combo3);
}
}
}
if (((Key.isDown(83) && (jump == true)) && (kick_jump == false)) && (kick_button == false)) {
kick_jump = true;
this.gotoAndStop("kickjump");
}
if (hitted == true) {
if (sidescroll == false) {
if (side_empuje == "left") {
_x = (_x - sp_empuje);
}
if (side_empuje == "right") {
_x = (_x + sp_empuje);
}
} else {
if (side_empuje == "left") {
}
if (side_empuje == "right") {
}
}
red = new Color(this);
red.setTransform(_root.red);
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 20;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb2" + _root.orb_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
_root.hearth_id++;
size = Math.random() * 1;
_root.attachMovie("hearth", "hearth" + _root.hearth_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
i++;
}
} else {
normal = new Color(this);
normal.setTransform(_root.normal);
}
if (_root.health <= 0) {
grv = 20;
spy = spy - grv;
grv = 2;
death = true;
this.gotoAndStop("die");
}
if ((inmune == true) && (inmune_fps > 0)) {
inmune_fps--;
this._alpha = 30;
} else if ((inmune == true) && (inmune_fps <= 0)) {
inmune = false;
inmune_fps = 100;
this._alpha = 100;
}
}
if ((kick == false) && (kick_jump == false)) {
_root.combos_count = _root.combo;
_root.combo = 0;
}
if ((death == true) && (this.dieanim._currentframe < 20)) {
if (side_empuje == "left") {
_x = (_x - 20);
}
if (side_empuje == "right") {
_x = (_x + 20);
}
i = 1;
while (i < 5) {
_root.orb_id++;
size = Math.random() * 30;
_root.attachMovie("orb2", "orb2" + _root.orb_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
i++;
}
}
if (((death == true) && (this.dieanim._currentframe >= 20)) && (_root.lifes > 0)) {
_root.lifes--;
_root.health = 200;
hitted = false;
if ((((((((((_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y, true) && (sidescroll == true)) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 30, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 30, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 60, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 60, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 100, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 100, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 130, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 130, true) && (sidescroll == true))) || (sidescroll == false)) {
this._y = _root.centerbox._y - 70;
this._x = _root.centerbox._x;
}
if ((((((((((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y, true)) && (sidescroll == true)) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 30, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 30, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 60, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 60, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 100, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 100, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 130, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 130, true)) && (sidescroll == true))) {
this._y = _root.centerbox._y - 70;
this._x = _root.centerbox._x;
sidescroll = false;
evento = true;
}
inmune = true;
death = false;
}
if ((this.hitTest(_root.nextmap) && (_root.changing_map == false)) && (death == false)) {
_root.level++;
_root.loaded = false;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
_root.map_changer.play();
_root.changing_map = true;
}
}
Instance of Symbol 353 MovieClip "crawler" in Frame 12
onClipEvent (load) {
spx = 6;
spy = 0;
grv = 2;
bound_point_y = 22.5;
bound_point_y_max = 28;
bound_point_x = 12;
bound_point_xy = 12;
sidescroll = false;
bloqueoleft = false;
bloqueoright = false;
kick = false;
combo1 = false;
combo2 = false;
combo3 = false;
evento = false;
sp_land = spy;
jump = false;
fall = false;
kick_button = false;
hitted = false;
side_empuje = "";
sp_empuje = 5;
death = false;
inmune = false;
inmune_fps = 100;
velocidad_combo3 = 30;
endofmap = false;
limit = false;
}
onClipEvent (enterFrame) {
_y = (_y + spy);
if (((death == false) && (_root.evento_pause == false)) && (_root.changing_map == false)) {
if (((((_x < 275) && (sidescroll == false)) && (_root.enemies <= 0)) && (evento == false)) && (limit == false)) {
sidescroll = true;
} else if (((sidescroll == true) && (_root.enemies > 0)) && (evento == true)) {
sidescroll = false;
}
if ((_x > 275) && (sidescroll == true)) {
sidescroll = false;
}
if ((((_root._x >= _root.limit_map) && (sidescroll == true)) && (_root.enemies <= 0)) || (((_root._x >= _root.limit_map) && (sidescroll == false)) && (_root.enemies <= 0))) {
sidescroll = false;
limit = true;
endofmap = true;
} else if ((((_root._x >= _root.limit_map) && (sidescroll == true)) && (_root.enemies > 0)) || (((_root._x >= _root.limit_map) && (sidescroll == false)) && (_root.enemies > 0))) {
sidescroll = false;
limit = false;
endofmap = false;
}
if ((_root.enemies > 0) && (evento == false)) {
evento = true;
} else if (((_root.enemies <= 0) && (evento == true)) && (limit == false)) {
if ((_x < _root.centerbox._x) && (sidescroll == false)) {
_root._x = _root._x + 10;
_root.centerbox._x = _root.centerbox._x - 10;
_root.limitbox._x = _root.limitbox._x - 10;
_root.score_box._x = _root.score_box._x - 10;
_root.map_changer._x = _root.map_changer._x - 10;
} else if ((_x > _root.centerbox._x) && (_x < (_root.centerbox._x + 10))) {
evento = false;
}
}
if (((this._x - 10) < (_root.limitbox._x - 304.9)) && (endofmap == false)) {
this._x = (_root.limitbox._x - 304.9) + 10;
} else if ((this._x + 10) > (_root.limitbox._x + 264)) {
this._x = (_root.limitbox._x + 264) - 10;
}
if (this._y > 300) {
hitted = true;
grv = 10;
spy = spy - grv;
grv = 2;
_root.health = _root.health - 300;
}
if (sidescroll == false) {
if (((Key.isDown(37) && (jump == false)) && (!root.plataforms.hitTest(_x - bound_point_x, _y, true))) && (kick == false)) {
_x = (_x - spx);
this.gotoAndStop("walking");
_xscale = 100;
}
if (((Key.isDown(39) && (jump == false)) && (!root.plataforms.hitTest(_x + bound_point_x, _y, true))) && (kick == false)) {
_x = (_x + spx);
this.gotoAndStop("walking");
_xscale = -100;
}
if ((Key.isDown(37) && (jump == true)) && (kick == false)) {
_x = (_x - spx);
_xscale = 100;
} else if ((Key.isDown(39) && (jump == true)) && (kick == false)) {
_x = (_x + spx);
_xscale = -100;
}
} else if (sidescroll == true) {
if (((Key.isDown(37) && (jump == false)) && (!root.plataforms.hitTest((_x - bound_point_x) - 30, _y, true))) && (kick == false)) {
_x = (_x - spx);
_root._x = _root._x + spx;
_root.centerbox._x = _root.centerbox._x - spx;
_root.limitbox._x = _root.limitbox._x - spx;
_root.score_box._x = _root.score_box._x - spx;
_root.map_changer._x = _root.map_changer._x - spx;
this.gotoAndStop("walking");
_xscale = 100;
}
if (((Key.isDown(39) && (jump == false)) && (!root.plataforms.hitTest((_x + bound_point_x) + 20, _y, true))) && (kick == false)) {
_x = (_x + spx);
_root._x = _root._x - spx;
_root.centerbox._x = _root.centerbox._x + spx;
_root.limitbox._x = _root.limitbox._x + spx;
_root.score_box._x = _root.score_box._x + spx;
_root.map_changer._x = _root.map_changer._x + spx;
this.gotoAndStop("walking");
_xscale = -100;
}
if ((Key.isDown(37) && (jump == true)) && (kick == false)) {
_x = (_x - spx);
_root._x = _root._x + spx;
_root.centerbox._x = _root.centerbox._x - spx;
_root.limitbox._x = _root.limitbox._x - spx;
_root.score_box._x = _root.score_box._x - spx;
_root.map_changer._x = _root.map_changer._x - spx;
_xscale = 100;
} else if ((Key.isDown(39) && (jump == true)) && (kick == false)) {
_x = (_x + spx);
_root._x = _root._x - spx;
_root.centerbox._x = _root.centerbox._x + spx;
_root.limitbox._x = _root.limitbox._x + spx;
_root.score_box._x = _root.score_box._x + spx;
_root.map_changer._x = _root.map_changer._x + spx;
_xscale = -100;
}
}
if (((((!Key.isDown(37)) && (!Key.isDown(39))) && (jump == false)) && (fall == false)) && (kick == false)) {
this.gotoAndStop("stand");
}
if (((Key.isDown(65) && (jump == false)) && (fall == false)) && (kick == false)) {
grv = 25;
spy = spy - grv;
if (kick_jump == false) {
this.gotoAndStop("jump");
}
jump = true;
grv = 2;
}
if (jump == true) {
spy = spy + grv;
}
if ((jump == true) && (fall == false)) {
if ((spy > 0) && (spy)) {
fall == true;
if (kick_jump == false) {
this.gotoAndStop("fall");
}
}
}
((spy > 15) ? ((spy = 15)) : null);
((spy < -20) ? ((spy = -20)) : null);
if (((_root.plataforms.hitTest(_x, _y + bound_point_y, true) && (jump == true)) || (_root.plataforms.hitTest((_x + bound_point_x) - 10, _y + bound_point_y, true) && (jump == true))) || (_root.plataforms.hitTest((_x - bound_point_x) + 10, _y + bound_point_y, true) && (jump == true))) {
jump = false;
fall = false;
spy = 0;
kick_jump = false;
hitted = false;
}
if ((_root.plataforms.hitTest(_x, (_y + bound_point_y_max) - 3, true) || (_root.plataforms.hitTest((_x + bound_point_x) - 8, (_y + bound_point_y_max) - 3, true))) || (_root.plataforms.hitTest((_x - bound_point_x) + 8, (_y + bound_point_y_max) - 3, true))) {
_y = (_y - 6);
}
if ((_root.plataforms.hitTest(_x + bound_point_x, _y, true) || (_root.plataforms.hitTest(_x + 14, _y + 10, true))) || (_root.plataforms.hitTest(_x + 14, _y - 10, true))) {
if (combo3 == false) {
_x = (_x - spx);
if (sidescroll == true) {
_root._x = _root._x + spx;
_root.centerbox._x = _root.centerbox._x - spx;
_root.limitbox._x = _root.limitbox._x - spx;
_root.score_box._x = _root.score_box._x - spx;
_root.map_changer._x = _root.map_changer._x - spx;
}
}
if (combo3 == true) {
_x = (_x - velocidad_combo3);
combo3 = false;
}
hitted = false;
} else if ((_root.plataforms.hitTest(_x - bound_point_x, _y, true) || (_root.plataforms.hitTest(_x - 14, _y + 10, true))) || (_root.plataforms.hitTest(_x - 14, _y - 10, true))) {
if (combo3 == false) {
_x = (_x + spx);
if (sidescroll == true) {
_root._x = _root._x - spx;
_root.centerbox._x = _root.centerbox._x + spx;
_root.limitbox._x = _root.limitbox._x + spx;
_root.score_box._x = _root.score_box._x + spx;
_root.map_changer._x = _root.map_changer._x + spx;
}
}
if (combo3 == true) {
_x = (_x + velocidad_combo3);
combo3 = false;
}
hitted = false;
}
if (_root.plataforms.hitTest(_x + 5, _y - 25, true) || (_root.plataforms.hitTest(_x - 5, _y - 25, true))) {
trace("hi");
spy = 0;
_y = (_y + 10);
fall = true;
}
if ((((!_root.plataforms.hitTest(_x - bound_point_x, (_y + bound_point_y) + 10, true)) && (!_root.plataforms.hitTest(_x + bound_point_x, (_y + bound_point_y) + 10, true))) && (!_root.plataforms.hitTest(_x, (_y + bound_point_y) + 10, true))) && (jump == false)) {
jump = true;
kick = false;
}
if (((Key.isDown(83) && (kick == false)) && (jump == false)) && (kick_button == false)) {
kick = true;
this.gotoAndStop("kick1");
combo1 = true;
combo2 = false;
combo3 = false;
kick_button = true;
}
if ((!Key.isDown(83)) && (kick_button == true)) {
kick_button = false;
}
if (((((Key.isDown(83) && (kick == true)) && (jump == false)) && (combo1 == true)) && (this.kick_anim._currentframe > 6)) && (kick_button == false)) {
combo2 = true;
combo1 = false;
}
if (((((((Key.isDown(83) && (kick == true)) && (jump == false)) && (combo2 == true)) && (this.kick_anim._currentframe > 15)) && (kick_button == false)) && (sidescroll == false)) && (_root.enemies > 0)) {
combo3 = true;
combo2 = false;
}
if (((combo3 == true) && (this.kick_anim._currentframe > 26)) && (sidescroll == false)) {
if (!_root.plataforms.hitTest(_x - 30, _y, true)) {
if (_xscale == 100) {
_x = (_x - velocidad_combo3);
}
}
if (!_root.plataforms.hitTest(_x + 30, _y, true)) {
if (_xscale == -100) {
_x = (_x + velocidad_combo3);
}
}
}
if (((Key.isDown(83) && (jump == true)) && (kick_jump == false)) && (kick_button == false)) {
kick_jump = true;
this.gotoAndStop("kickjump");
}
if (hitted == true) {
if (sidescroll == false) {
if (side_empuje == "left") {
_x = (_x - sp_empuje);
}
if (side_empuje == "right") {
_x = (_x + sp_empuje);
}
} else {
if (side_empuje == "left") {
_x = (_x - sp_empuje);
_root._x = _root._x + sp_empuje;
_root.centerbox._x = _root.centerbox._x - sp_empuje;
_root.limitbox._x = _root.limitbox._x - sp_empuje;
_root.score_box._x = _root.score_box._x - sp_empuje;
_root.map_changer._x = _root.map_changer._x - sp_empuje;
}
if (side_empuje == "right") {
_x = (_x + sp_empuje);
_root._x = _root._x - sp_empuje;
_root.centerbox._x = _root.centerbox._x + sp_empuje;
_root.limitbox._x = _root.limitbox._x + sp_empuje;
_root.score_box._x = _root.score_box._x + sp_empuje;
_root.map_changer._x = _root.map_changer._x + sp_empuje;
}
}
red = new Color(this);
red.setTransform(_root.red);
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 20;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb2" + _root.orb_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
_root.hearth_id++;
size = Math.random() * 1;
_root.attachMovie("hearth", "hearth" + _root.hearth_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
i++;
}
} else {
normal = new Color(this);
normal.setTransform(_root.normal);
}
if (_root.health <= 0) {
grv = 20;
spy = spy - grv;
grv = 2;
death = true;
this.gotoAndStop("die");
}
if ((inmune == true) && (inmune_fps > 0)) {
inmune_fps--;
this._alpha = 30;
} else if ((inmune == true) && (inmune_fps <= 0)) {
inmune = false;
inmune_fps = 100;
this._alpha = 100;
}
}
if ((kick == false) && (kick_jump == false)) {
_root.combos_count = _root.combo;
_root.combo = 0;
}
if ((death == true) && (this.dieanim._currentframe < 20)) {
if (side_empuje == "left") {
_x = (_x - 20);
}
if (side_empuje == "right") {
_x = (_x + 20);
}
i = 1;
while (i < 5) {
_root.orb_id++;
size = Math.random() * 30;
_root.attachMovie("orb2", "orb2" + _root.orb_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
i++;
}
}
if (((death == true) && (this.dieanim._currentframe >= 20)) && (_root.lifes > 0)) {
_root.lifes--;
_root.health = 200;
hitted = false;
if ((((((((((_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y, true) && (sidescroll == true)) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 30, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 30, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 60, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 60, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 100, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 100, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 130, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 130, true) && (sidescroll == true))) || (sidescroll == false)) {
this._y = _root.centerbox._y - 226.5;
this._x = _root.centerbox._x;
}
if ((((((((((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y, true)) && (sidescroll == true)) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 30, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 30, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 60, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 60, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 100, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 100, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 130, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 130, true)) && (sidescroll == true))) {
this._y = _root.centerbox._y - 226.5;
this._x = _root.centerbox._x + 60;
sidescroll = false;
evento = true;
}
inmune = true;
death = false;
}
if (((this.hitTest(_root.nextmap) && (_root.changing_map == false)) && (endofmap == true)) && (death == false)) {
_root.level++;
_root.loaded = false;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
_root.map_changer.play();
_root.changing_map = true;
}
}
Frame 15
limit_map = 1992;
level = 11;
Instance of Symbol 353 MovieClip "crawler" in Frame 15
onClipEvent (load) {
spx = 6;
spy = 0;
grv = 2;
bound_point_y = 22.5;
bound_point_y_max = 28;
bound_point_x = 12;
bound_point_xy = 12;
sidescroll = false;
bloqueoleft = false;
bloqueoright = false;
kick = false;
combo1 = false;
combo2 = false;
combo3 = false;
evento = false;
sp_land = spy;
jump = false;
fall = false;
kick_button = false;
hitted = false;
side_empuje = "";
sp_empuje = 5;
death = false;
inmune = false;
inmune_fps = 100;
velocidad_combo3 = 30;
endofmap = false;
limit = false;
}
onClipEvent (enterFrame) {
_y = (_y + spy);
if (((death == false) && (_root.evento_pause == false)) && (_root.changing_map == false)) {
if (((((_x < 275) && (sidescroll == false)) && (_root.enemies <= 0)) && (evento == false)) && (limit == false)) {
sidescroll = true;
} else if (((sidescroll == true) && (_root.enemies > 0)) && (evento == true)) {
sidescroll = false;
}
if ((_x > 275) && (sidescroll == true)) {
sidescroll = false;
}
if ((((_root._x >= _root.limit_map) && (sidescroll == true)) && (_root.enemies <= 0)) || (((_root._x >= _root.limit_map) && (sidescroll == false)) && (_root.enemies <= 0))) {
sidescroll = false;
limit = true;
endofmap = true;
} else if ((((_root._x >= _root.limit_map) && (sidescroll == true)) && (_root.enemies > 0)) || (((_root._x >= _root.limit_map) && (sidescroll == false)) && (_root.enemies > 0))) {
sidescroll = false;
limit = false;
endofmap = false;
}
if ((_root.enemies > 0) && (evento == false)) {
evento = true;
} else if (((_root.enemies <= 0) && (evento == true)) && (limit == false)) {
if ((_x < _root.centerbox._x) && (sidescroll == false)) {
_root._x = _root._x + 10;
_root.centerbox._x = _root.centerbox._x - 10;
_root.limitbox._x = _root.limitbox._x - 10;
_root.score_box._x = _root.score_box._x - 10;
_root.map_changer._x = _root.map_changer._x - 10;
} else if ((_x > _root.centerbox._x) && (_x < (_root.centerbox._x + 10))) {
evento = false;
}
}
if (((this._x - 10) < (_root.limitbox._x - 304.9)) && (endofmap == false)) {
this._x = (_root.limitbox._x - 304.9) + 10;
} else if ((this._x + 10) > (_root.limitbox._x + 264)) {
this._x = (_root.limitbox._x + 264) - 10;
}
if (this._y > 300) {
hitted = true;
grv = 10;
spy = spy - grv;
grv = 2;
_root.health = _root.health - 300;
}
if (sidescroll == false) {
if (((Key.isDown(37) && (jump == false)) && (!root.plataforms.hitTest(_x - bound_point_x, _y, true))) && (kick == false)) {
_x = (_x - spx);
this.gotoAndStop("walking");
_xscale = 100;
}
if (((Key.isDown(39) && (jump == false)) && (!root.plataforms.hitTest(_x + bound_point_x, _y, true))) && (kick == false)) {
_x = (_x + spx);
this.gotoAndStop("walking");
_xscale = -100;
}
if ((Key.isDown(37) && (jump == true)) && (kick == false)) {
_x = (_x - spx);
_xscale = 100;
} else if ((Key.isDown(39) && (jump == true)) && (kick == false)) {
_x = (_x + spx);
_xscale = -100;
}
} else if (sidescroll == true) {
if (((Key.isDown(37) && (jump == false)) && (!root.plataforms.hitTest((_x - bound_point_x) - 30, _y, true))) && (kick == false)) {
_x = (_x - spx);
_root._x = _root._x + spx;
_root.centerbox._x = _root.centerbox._x - spx;
_root.limitbox._x = _root.limitbox._x - spx;
_root.score_box._x = _root.score_box._x - spx;
_root.map_changer._x = _root.map_changer._x - spx;
this.gotoAndStop("walking");
_xscale = 100;
}
if (((Key.isDown(39) && (jump == false)) && (!root.plataforms.hitTest((_x + bound_point_x) + 20, _y, true))) && (kick == false)) {
_x = (_x + spx);
_root._x = _root._x - spx;
_root.centerbox._x = _root.centerbox._x + spx;
_root.limitbox._x = _root.limitbox._x + spx;
_root.score_box._x = _root.score_box._x + spx;
_root.map_changer._x = _root.map_changer._x + spx;
this.gotoAndStop("walking");
_xscale = -100;
}
if ((Key.isDown(37) && (jump == true)) && (kick == false)) {
_x = (_x - spx);
_root._x = _root._x + spx;
_root.centerbox._x = _root.centerbox._x - spx;
_root.limitbox._x = _root.limitbox._x - spx;
_root.score_box._x = _root.score_box._x - spx;
_root.map_changer._x = _root.map_changer._x - spx;
_xscale = 100;
} else if ((Key.isDown(39) && (jump == true)) && (kick == false)) {
_x = (_x + spx);
_root._x = _root._x - spx;
_root.centerbox._x = _root.centerbox._x + spx;
_root.limitbox._x = _root.limitbox._x + spx;
_root.score_box._x = _root.score_box._x + spx;
_root.map_changer._x = _root.map_changer._x + spx;
_xscale = -100;
}
}
if (((((!Key.isDown(37)) && (!Key.isDown(39))) && (jump == false)) && (fall == false)) && (kick == false)) {
this.gotoAndStop("stand");
}
if (((Key.isDown(65) && (jump == false)) && (fall == false)) && (kick == false)) {
grv = 25;
spy = spy - grv;
if (kick_jump == false) {
this.gotoAndStop("jump");
}
jump = true;
grv = 2;
}
if (jump == true) {
spy = spy + grv;
}
if ((jump == true) && (fall == false)) {
if ((spy > 0) && (spy)) {
fall == true;
if (kick_jump == false) {
this.gotoAndStop("fall");
}
}
}
((spy > 15) ? ((spy = 15)) : null);
((spy < -20) ? ((spy = -20)) : null);
if (((_root.plataforms.hitTest(_x, _y + bound_point_y, true) && (jump == true)) || (_root.plataforms.hitTest((_x + bound_point_x) - 10, _y + bound_point_y, true) && (jump == true))) || (_root.plataforms.hitTest((_x - bound_point_x) + 10, _y + bound_point_y, true) && (jump == true))) {
jump = false;
fall = false;
spy = 0;
kick_jump = false;
hitted = false;
}
if ((_root.plataforms.hitTest(_x, (_y + bound_point_y_max) - 3, true) || (_root.plataforms.hitTest((_x + bound_point_x) - 8, (_y + bound_point_y_max) - 3, true))) || (_root.plataforms.hitTest((_x - bound_point_x) + 8, (_y + bound_point_y_max) - 3, true))) {
_y = (_y - 6);
}
if ((_root.plataforms.hitTest(_x + bound_point_x, _y, true) || (_root.plataforms.hitTest(_x + 14, _y + 10, true))) || (_root.plataforms.hitTest(_x + 14, _y - 10, true))) {
if (combo3 == false) {
_x = (_x - spx);
if (sidescroll == true) {
_root._x = _root._x + spx;
_root.centerbox._x = _root.centerbox._x - spx;
_root.limitbox._x = _root.limitbox._x - spx;
_root.score_box._x = _root.score_box._x - spx;
_root.map_changer._x = _root.map_changer._x - spx;
}
}
if (combo3 == true) {
_x = (_x - velocidad_combo3);
combo3 = false;
}
hitted = false;
} else if ((_root.plataforms.hitTest(_x - bound_point_x, _y, true) || (_root.plataforms.hitTest(_x - 14, _y + 10, true))) || (_root.plataforms.hitTest(_x - 14, _y - 10, true))) {
if (combo3 == false) {
_x = (_x + spx);
if (sidescroll == true) {
_root._x = _root._x - spx;
_root.centerbox._x = _root.centerbox._x + spx;
_root.limitbox._x = _root.limitbox._x + spx;
_root.score_box._x = _root.score_box._x + spx;
_root.map_changer._x = _root.map_changer._x + spx;
}
}
if (combo3 == true) {
_x = (_x + velocidad_combo3);
combo3 = false;
}
hitted = false;
}
if (_root.plataforms.hitTest(_x + 5, _y - 25, true) || (_root.plataforms.hitTest(_x - 5, _y - 25, true))) {
trace("hi");
spy = 0;
_y = (_y + 10);
fall = true;
}
if ((((!_root.plataforms.hitTest(_x - bound_point_x, (_y + bound_point_y) + 10, true)) && (!_root.plataforms.hitTest(_x + bound_point_x, (_y + bound_point_y) + 10, true))) && (!_root.plataforms.hitTest(_x, (_y + bound_point_y) + 10, true))) && (jump == false)) {
jump = true;
kick = false;
}
if (((Key.isDown(83) && (kick == false)) && (jump == false)) && (kick_button == false)) {
kick = true;
this.gotoAndStop("kick1");
combo1 = true;
combo2 = false;
combo3 = false;
kick_button = true;
}
if ((!Key.isDown(83)) && (kick_button == true)) {
kick_button = false;
}
if (((((Key.isDown(83) && (kick == true)) && (jump == false)) && (combo1 == true)) && (this.kick_anim._currentframe > 6)) && (kick_button == false)) {
combo2 = true;
combo1 = false;
}
if (((((((Key.isDown(83) && (kick == true)) && (jump == false)) && (combo2 == true)) && (this.kick_anim._currentframe > 15)) && (kick_button == false)) && (sidescroll == false)) && (_root.enemies > 0)) {
combo3 = true;
combo2 = false;
}
if (((combo3 == true) && (this.kick_anim._currentframe > 26)) && (sidescroll == false)) {
if (!_root.plataforms.hitTest(_x - 30, _y, true)) {
if (_xscale == 100) {
_x = (_x - velocidad_combo3);
}
}
if (!_root.plataforms.hitTest(_x + 30, _y, true)) {
if (_xscale == -100) {
_x = (_x + velocidad_combo3);
}
}
}
if (((Key.isDown(83) && (jump == true)) && (kick_jump == false)) && (kick_button == false)) {
kick_jump = true;
this.gotoAndStop("kickjump");
}
if (hitted == true) {
if (sidescroll == false) {
if (side_empuje == "left") {
_x = (_x - sp_empuje);
}
if (side_empuje == "right") {
_x = (_x + sp_empuje);
}
} else {
if (side_empuje == "left") {
_x = (_x - sp_empuje);
_root._x = _root._x + sp_empuje;
_root.centerbox._x = _root.centerbox._x - sp_empuje;
_root.limitbox._x = _root.limitbox._x - sp_empuje;
_root.score_box._x = _root.score_box._x - sp_empuje;
_root.map_changer._x = _root.map_changer._x - sp_empuje;
}
if (side_empuje == "right") {
_x = (_x + sp_empuje);
_root._x = _root._x - sp_empuje;
_root.centerbox._x = _root.centerbox._x + sp_empuje;
_root.limitbox._x = _root.limitbox._x + sp_empuje;
_root.score_box._x = _root.score_box._x + sp_empuje;
_root.map_changer._x = _root.map_changer._x + sp_empuje;
}
}
red = new Color(this);
red.setTransform(_root.red);
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 20;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb2" + _root.orb_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
_root.hearth_id++;
size = Math.random() * 1;
_root.attachMovie("hearth", "hearth" + _root.hearth_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
i++;
}
} else {
normal = new Color(this);
normal.setTransform(_root.normal);
}
if (_root.health <= 0) {
grv = 20;
spy = spy - grv;
grv = 2;
death = true;
this.gotoAndStop("die");
}
if ((inmune == true) && (inmune_fps > 0)) {
inmune_fps--;
this._alpha = 30;
} else if ((inmune == true) && (inmune_fps <= 0)) {
inmune = false;
inmune_fps = 100;
this._alpha = 100;
}
}
if ((kick == false) && (kick_jump == false)) {
_root.combos_count = _root.combo;
_root.combo = 0;
}
if ((death == true) && (this.dieanim._currentframe < 20)) {
if (side_empuje == "left") {
_x = (_x - 20);
}
if (side_empuje == "right") {
_x = (_x + 20);
}
i = 1;
while (i < 5) {
_root.orb_id++;
size = Math.random() * 30;
_root.attachMovie("orb2", "orb2" + _root.orb_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
i++;
}
}
if ((this.hitTest(_root.box_appear1) && (_root.appear_box1.movement == false)) && (deathway1 == false)) {
deathway1 = true;
deathway2 = false;
}
if (((death == true) && (this.dieanim._currentframe >= 20)) && (_root.lifes > 0)) {
_root.lifes--;
_root.health = 200;
hitted = false;
if (_root.appear_box1.movement == false) {
if ((((((((((_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y, true) && (sidescroll == true)) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 30, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 30, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 60, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 60, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 100, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 100, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 130, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 130, true) && (sidescroll == true))) || (sidescroll == false)) {
this._y = _root.centerbox._y - 226.5;
this._x = _root.centerbox._x;
}
if ((((((((((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y, true)) && (sidescroll == true)) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 30, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 30, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 60, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 60, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 100, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 100, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 130, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 130, true)) && (sidescroll == true))) {
this._y = _root.centerbox._y - 226.5;
this._x = _root.centerbox._x + 60;
sidescroll = false;
evento = true;
}
}
if (_root.appear_box1.movement == true) {
this._y = _root.appear_box1._y - 226.5;
this._x = _root.appear_box1._x;
sidescroll = false;
evento = true;
}
if (deathway1 == true) {
this._y = _root.appear_box1._y - 226.5;
this._x = _root.appear_box1._x;
sidescroll = false;
evento = true;
deathway1 = false;
}
inmune = true;
death = false;
}
if (((this.hitTest(_root.nextmap) && (_root.changing_map == false)) && (endofmap == true)) && (death == false)) {
_root.level++;
_root.loaded = false;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
_root.map_changer.play();
_root.changing_map = true;
}
}
Instance of Symbol 353 MovieClip "crawler" in Frame 16
onClipEvent (load) {
spx = 6;
spy = 0;
grv = 2;
bound_point_y = 22.5;
bound_point_y_max = 28;
bound_point_x = 12;
bound_point_xy = 12;
sidescroll = false;
bloqueoleft = false;
bloqueoright = false;
kick = false;
combo1 = false;
combo2 = false;
combo3 = false;
evento = false;
sp_land = spy;
jump = false;
fall = false;
kick_button = false;
hitted = false;
side_empuje = "";
sp_empuje = 5;
death = false;
inmune = false;
inmune_fps = 100;
velocidad_combo3 = 30;
endofmap = false;
limit = false;
}
onClipEvent (enterFrame) {
_y = (_y + spy);
if (((death == false) && (_root.evento_pause == false)) && (_root.changing_map == false)) {
if (((((_x < 275) && (sidescroll == false)) && (_root.enemies <= 0)) && (evento == false)) && (limit == false)) {
sidescroll = true;
} else if (((sidescroll == true) && (_root.enemies > 0)) && (evento == true)) {
sidescroll = false;
}
if ((_x > 275) && (sidescroll == true)) {
sidescroll = false;
}
if ((((_root._x >= _root.limit_map) && (sidescroll == true)) && (_root.enemies <= 0)) || (((_root._x >= _root.limit_map) && (sidescroll == false)) && (_root.enemies <= 0))) {
sidescroll = false;
limit = true;
endofmap = true;
} else if ((((_root._x >= _root.limit_map) && (sidescroll == true)) && (_root.enemies > 0)) || (((_root._x >= _root.limit_map) && (sidescroll == false)) && (_root.enemies > 0))) {
sidescroll = false;
limit = false;
endofmap = false;
}
if ((_root.enemies > 0) && (evento == false)) {
evento = true;
} else if (((_root.enemies <= 0) && (evento == true)) && (limit == false)) {
if ((_x < _root.centerbox._x) && (sidescroll == false)) {
_root._x = _root._x + 10;
_root.centerbox._x = _root.centerbox._x - 10;
_root.limitbox._x = _root.limitbox._x - 10;
_root.score_box._x = _root.score_box._x - 10;
_root.map_changer._x = _root.map_changer._x - 10;
} else if ((_x > _root.centerbox._x) && (_x < (_root.centerbox._x + 10))) {
evento = false;
}
}
if (((this._x - 10) < (_root.limitbox._x - 304.9)) && (endofmap == false)) {
this._x = (_root.limitbox._x - 304.9) + 10;
} else if ((this._x + 10) > (_root.limitbox._x + 264)) {
this._x = (_root.limitbox._x + 264) - 10;
}
if (this._y > 300) {
hitted = true;
grv = 10;
spy = spy - grv;
grv = 2;
_root.health = _root.health - 300;
}
if (sidescroll == false) {
if (((Key.isDown(37) && (jump == false)) && (!root.plataforms.hitTest(_x - bound_point_x, _y, true))) && (kick == false)) {
_x = (_x - spx);
this.gotoAndStop("walking");
_xscale = 100;
}
if (((Key.isDown(39) && (jump == false)) && (!root.plataforms.hitTest(_x + bound_point_x, _y, true))) && (kick == false)) {
_x = (_x + spx);
this.gotoAndStop("walking");
_xscale = -100;
}
if ((Key.isDown(37) && (jump == true)) && (kick == false)) {
_x = (_x - spx);
_xscale = 100;
} else if ((Key.isDown(39) && (jump == true)) && (kick == false)) {
_x = (_x + spx);
_xscale = -100;
}
} else if (sidescroll == true) {
if (((Key.isDown(37) && (jump == false)) && (!root.plataforms.hitTest((_x - bound_point_x) - 30, _y, true))) && (kick == false)) {
_x = (_x - spx);
_root._x = _root._x + spx;
_root.centerbox._x = _root.centerbox._x - spx;
_root.limitbox._x = _root.limitbox._x - spx;
_root.score_box._x = _root.score_box._x - spx;
_root.map_changer._x = _root.map_changer._x - spx;
this.gotoAndStop("walking");
_xscale = 100;
}
if (((Key.isDown(39) && (jump == false)) && (!root.plataforms.hitTest((_x + bound_point_x) + 20, _y, true))) && (kick == false)) {
_x = (_x + spx);
_root._x = _root._x - spx;
_root.centerbox._x = _root.centerbox._x + spx;
_root.limitbox._x = _root.limitbox._x + spx;
_root.score_box._x = _root.score_box._x + spx;
_root.map_changer._x = _root.map_changer._x + spx;
this.gotoAndStop("walking");
_xscale = -100;
}
if ((Key.isDown(37) && (jump == true)) && (kick == false)) {
_x = (_x - spx);
_root._x = _root._x + spx;
_root.centerbox._x = _root.centerbox._x - spx;
_root.limitbox._x = _root.limitbox._x - spx;
_root.score_box._x = _root.score_box._x - spx;
_root.map_changer._x = _root.map_changer._x - spx;
_xscale = 100;
} else if ((Key.isDown(39) && (jump == true)) && (kick == false)) {
_x = (_x + spx);
_root._x = _root._x - spx;
_root.centerbox._x = _root.centerbox._x + spx;
_root.limitbox._x = _root.limitbox._x + spx;
_root.score_box._x = _root.score_box._x + spx;
_root.map_changer._x = _root.map_changer._x + spx;
_xscale = -100;
}
}
if (((((!Key.isDown(37)) && (!Key.isDown(39))) && (jump == false)) && (fall == false)) && (kick == false)) {
this.gotoAndStop("stand");
}
if (((Key.isDown(65) && (jump == false)) && (fall == false)) && (kick == false)) {
grv = 25;
spy = spy - grv;
if (kick_jump == false) {
this.gotoAndStop("jump");
}
jump = true;
grv = 2;
}
if (jump == true) {
spy = spy + grv;
}
if ((jump == true) && (fall == false)) {
if ((spy > 0) && (spy)) {
fall == true;
if (kick_jump == false) {
this.gotoAndStop("fall");
}
}
}
((spy > 15) ? ((spy = 15)) : null);
((spy < -20) ? ((spy = -20)) : null);
if (((_root.plataforms.hitTest(_x, _y + bound_point_y, true) && (jump == true)) || (_root.plataforms.hitTest((_x + bound_point_x) - 10, _y + bound_point_y, true) && (jump == true))) || (_root.plataforms.hitTest((_x - bound_point_x) + 10, _y + bound_point_y, true) && (jump == true))) {
jump = false;
fall = false;
spy = 0;
kick_jump = false;
hitted = false;
}
if ((_root.plataforms.hitTest(_x, (_y + bound_point_y_max) - 3, true) || (_root.plataforms.hitTest((_x + bound_point_x) - 8, (_y + bound_point_y_max) - 3, true))) || (_root.plataforms.hitTest((_x - bound_point_x) + 8, (_y + bound_point_y_max) - 3, true))) {
_y = (_y - 6);
}
if ((_root.plataforms.hitTest(_x + bound_point_x, _y, true) || (_root.plataforms.hitTest(_x + 14, _y + 10, true))) || (_root.plataforms.hitTest(_x + 14, _y - 10, true))) {
if (combo3 == false) {
_x = (_x - spx);
if (sidescroll == true) {
_root._x = _root._x + spx;
_root.centerbox._x = _root.centerbox._x - spx;
_root.limitbox._x = _root.limitbox._x - spx;
_root.score_box._x = _root.score_box._x - spx;
_root.map_changer._x = _root.map_changer._x - spx;
}
}
if (combo3 == true) {
_x = (_x - velocidad_combo3);
combo3 = false;
}
hitted = false;
} else if ((_root.plataforms.hitTest(_x - bound_point_x, _y, true) || (_root.plataforms.hitTest(_x - 14, _y + 10, true))) || (_root.plataforms.hitTest(_x - 14, _y - 10, true))) {
if (combo3 == false) {
_x = (_x + spx);
if (sidescroll == true) {
_root._x = _root._x - spx;
_root.centerbox._x = _root.centerbox._x + spx;
_root.limitbox._x = _root.limitbox._x + spx;
_root.score_box._x = _root.score_box._x + spx;
_root.map_changer._x = _root.map_changer._x + spx;
}
}
if (combo3 == true) {
_x = (_x + velocidad_combo3);
combo3 = false;
}
hitted = false;
}
if (_root.plataforms.hitTest(_x + 5, _y - 25, true) || (_root.plataforms.hitTest(_x - 5, _y - 25, true))) {
trace("hi");
spy = 0;
_y = (_y + 10);
fall = true;
}
if ((((!_root.plataforms.hitTest(_x - bound_point_x, (_y + bound_point_y) + 10, true)) && (!_root.plataforms.hitTest(_x + bound_point_x, (_y + bound_point_y) + 10, true))) && (!_root.plataforms.hitTest(_x, (_y + bound_point_y) + 10, true))) && (jump == false)) {
jump = true;
kick = false;
}
if (((Key.isDown(83) && (kick == false)) && (jump == false)) && (kick_button == false)) {
kick = true;
this.gotoAndStop("kick1");
combo1 = true;
combo2 = false;
combo3 = false;
kick_button = true;
}
if ((!Key.isDown(83)) && (kick_button == true)) {
kick_button = false;
}
if (((((Key.isDown(83) && (kick == true)) && (jump == false)) && (combo1 == true)) && (this.kick_anim._currentframe > 6)) && (kick_button == false)) {
combo2 = true;
combo1 = false;
}
if (((((((Key.isDown(83) && (kick == true)) && (jump == false)) && (combo2 == true)) && (this.kick_anim._currentframe > 15)) && (kick_button == false)) && (sidescroll == false)) && (_root.enemies > 0)) {
combo3 = true;
combo2 = false;
}
if (((combo3 == true) && (this.kick_anim._currentframe > 26)) && (sidescroll == false)) {
if (!_root.plataforms.hitTest(_x - 30, _y, true)) {
if (_xscale == 100) {
_x = (_x - velocidad_combo3);
}
}
if (!_root.plataforms.hitTest(_x + 30, _y, true)) {
if (_xscale == -100) {
_x = (_x + velocidad_combo3);
}
}
}
if (((Key.isDown(83) && (jump == true)) && (kick_jump == false)) && (kick_button == false)) {
kick_jump = true;
this.gotoAndStop("kickjump");
}
if (hitted == true) {
if (sidescroll == false) {
if (side_empuje == "left") {
_x = (_x - sp_empuje);
}
if (side_empuje == "right") {
_x = (_x + sp_empuje);
}
} else {
if (side_empuje == "left") {
_x = (_x - sp_empuje);
_root._x = _root._x + sp_empuje;
_root.centerbox._x = _root.centerbox._x - sp_empuje;
_root.limitbox._x = _root.limitbox._x - sp_empuje;
_root.score_box._x = _root.score_box._x - sp_empuje;
_root.map_changer._x = _root.map_changer._x - sp_empuje;
}
if (side_empuje == "right") {
_x = (_x + sp_empuje);
_root._x = _root._x - sp_empuje;
_root.centerbox._x = _root.centerbox._x + sp_empuje;
_root.limitbox._x = _root.limitbox._x + sp_empuje;
_root.score_box._x = _root.score_box._x + sp_empuje;
_root.map_changer._x = _root.map_changer._x + sp_empuje;
}
}
red = new Color(this);
red.setTransform(_root.red);
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 20;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb2" + _root.orb_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
_root.hearth_id++;
size = Math.random() * 1;
_root.attachMovie("hearth", "hearth" + _root.hearth_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
i++;
}
} else {
normal = new Color(this);
normal.setTransform(_root.normal);
}
if (_root.health <= 0) {
grv = 20;
spy = spy - grv;
grv = 2;
death = true;
this.gotoAndStop("die");
}
if ((inmune == true) && (inmune_fps > 0)) {
inmune_fps--;
this._alpha = 30;
} else if ((inmune == true) && (inmune_fps <= 0)) {
inmune = false;
inmune_fps = 100;
this._alpha = 100;
}
}
if ((kick == false) && (kick_jump == false)) {
_root.combos_count = _root.combo;
_root.combo = 0;
}
if ((death == true) && (this.dieanim._currentframe < 20)) {
if (side_empuje == "left") {
_x = (_x - 20);
}
if (side_empuje == "right") {
_x = (_x + 20);
}
i = 1;
while (i < 5) {
_root.orb_id++;
size = Math.random() * 30;
_root.attachMovie("orb2", "orb2" + _root.orb_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
i++;
}
}
if (((death == true) && (this.dieanim._currentframe >= 20)) && (_root.lifes > 0)) {
_root.lifes--;
_root.health = 200;
hitted = false;
if ((((((((((_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y, true) && (sidescroll == true)) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 30, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 30, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 60, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 60, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 100, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 100, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 130, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 130, true) && (sidescroll == true))) || (sidescroll == false)) {
this._y = _root.centerbox._y - 226.5;
this._x = _root.centerbox._x;
}
if ((((((((((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y, true)) && (sidescroll == true)) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 30, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 30, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 60, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 60, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 100, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 100, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 130, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 130, true)) && (sidescroll == true))) {
this._y = _root.centerbox._y - 226.5;
this._x = _root.centerbox._x + 60;
sidescroll = false;
evento = true;
}
inmune = true;
death = false;
}
if (((this.hitTest(_root.nextmap) && (_root.changing_map == false)) && (endofmap == true)) && (death == false)) {
_root.level++;
_root.loaded = false;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
_root.map_changer.play();
_root.changing_map = true;
}
}
Frame 18
limit_map = 1992;
level = 14;
Instance of Symbol 353 MovieClip "crawler" in Frame 18
onClipEvent (load) {
spx = 6;
spy = 0;
grv = 2;
bound_point_y = 22.5;
bound_point_y_max = 28;
bound_point_x = 12;
bound_point_xy = 12;
sidescroll = false;
bloqueoleft = false;
bloqueoright = false;
kick = false;
combo1 = false;
combo2 = false;
combo3 = false;
evento = false;
sp_land = spy;
jump = false;
fall = false;
kick_button = false;
hitted = false;
side_empuje = "";
sp_empuje = 5;
death = false;
inmune = false;
inmune_fps = 100;
velocidad_combo3 = 30;
endofmap = false;
limit = false;
deathway1 = false;
deathway2 = false;
}
onClipEvent (enterFrame) {
_y = (_y + spy);
if (((death == false) && (_root.evento_pause == false)) && (_root.changing_map == false)) {
if (((((_x < 275) && (sidescroll == false)) && (_root.enemies <= 0)) && (evento == false)) && (limit == false)) {
sidescroll = true;
} else if (((sidescroll == true) && (_root.enemies > 0)) && (evento == true)) {
sidescroll = false;
}
if ((_x > 275) && (sidescroll == true)) {
sidescroll = false;
}
if ((((_root._x >= _root.limit_map) && (sidescroll == true)) && (_root.enemies <= 0)) || (((_root._x >= _root.limit_map) && (sidescroll == false)) && (_root.enemies <= 0))) {
sidescroll = false;
limit = true;
endofmap = true;
} else if ((((_root._x >= _root.limit_map) && (sidescroll == true)) && (_root.enemies > 0)) || (((_root._x >= _root.limit_map) && (sidescroll == false)) && (_root.enemies > 0))) {
sidescroll = false;
limit = false;
endofmap = false;
}
if ((_root.enemies > 0) && (evento == false)) {
evento = true;
} else if (((_root.enemies <= 0) && (evento == true)) && (limit == false)) {
if ((_x < _root.centerbox._x) && (sidescroll == false)) {
_root._x = _root._x + 10;
_root.centerbox._x = _root.centerbox._x - 10;
_root.limitbox._x = _root.limitbox._x - 10;
_root.score_box._x = _root.score_box._x - 10;
_root.map_changer._x = _root.map_changer._x - 10;
} else if ((_x > _root.centerbox._x) && (_x < (_root.centerbox._x + 10))) {
evento = false;
}
}
if (((this._x - 10) < (_root.limitbox._x - 304.9)) && (endofmap == false)) {
this._x = (_root.limitbox._x - 304.9) + 10;
} else if ((this._x + 10) > (_root.limitbox._x + 264)) {
this._x = (_root.limitbox._x + 264) - 10;
}
if (this._y > 300) {
hitted = true;
grv = 10;
spy = spy - grv;
grv = 2;
_root.health = _root.health - 300;
}
if (sidescroll == false) {
if (((Key.isDown(37) && (jump == false)) && (!root.plataforms.hitTest(_x - bound_point_x, _y, true))) && (kick == false)) {
_x = (_x - spx);
this.gotoAndStop("walking");
_xscale = 100;
}
if (((Key.isDown(39) && (jump == false)) && (!root.plataforms.hitTest(_x + bound_point_x, _y, true))) && (kick == false)) {
_x = (_x + spx);
this.gotoAndStop("walking");
_xscale = -100;
}
if ((Key.isDown(37) && (jump == true)) && (kick == false)) {
_x = (_x - spx);
_xscale = 100;
} else if ((Key.isDown(39) && (jump == true)) && (kick == false)) {
_x = (_x + spx);
_xscale = -100;
}
} else if (sidescroll == true) {
if (((Key.isDown(37) && (jump == false)) && (!root.plataforms.hitTest((_x - bound_point_x) - 30, _y, true))) && (kick == false)) {
_x = (_x - spx);
_root._x = _root._x + spx;
_root.centerbox._x = _root.centerbox._x - spx;
_root.limitbox._x = _root.limitbox._x - spx;
_root.score_box._x = _root.score_box._x - spx;
_root.map_changer._x = _root.map_changer._x - spx;
this.gotoAndStop("walking");
_xscale = 100;
}
if (((Key.isDown(39) && (jump == false)) && (!root.plataforms.hitTest((_x + bound_point_x) + 20, _y, true))) && (kick == false)) {
_x = (_x + spx);
_root._x = _root._x - spx;
_root.centerbox._x = _root.centerbox._x + spx;
_root.limitbox._x = _root.limitbox._x + spx;
_root.score_box._x = _root.score_box._x + spx;
_root.map_changer._x = _root.map_changer._x + spx;
this.gotoAndStop("walking");
_xscale = -100;
}
if ((Key.isDown(37) && (jump == true)) && (kick == false)) {
_x = (_x - spx);
_root._x = _root._x + spx;
_root.centerbox._x = _root.centerbox._x - spx;
_root.limitbox._x = _root.limitbox._x - spx;
_root.score_box._x = _root.score_box._x - spx;
_root.map_changer._x = _root.map_changer._x - spx;
_xscale = 100;
} else if ((Key.isDown(39) && (jump == true)) && (kick == false)) {
_x = (_x + spx);
_root._x = _root._x - spx;
_root.centerbox._x = _root.centerbox._x + spx;
_root.limitbox._x = _root.limitbox._x + spx;
_root.score_box._x = _root.score_box._x + spx;
_root.map_changer._x = _root.map_changer._x + spx;
_xscale = -100;
}
}
if (((((!Key.isDown(37)) && (!Key.isDown(39))) && (jump == false)) && (fall == false)) && (kick == false)) {
this.gotoAndStop("stand");
}
if (((Key.isDown(65) && (jump == false)) && (fall == false)) && (kick == false)) {
grv = 25;
spy = spy - grv;
if (kick_jump == false) {
this.gotoAndStop("jump");
}
jump = true;
grv = 2;
}
if (jump == true) {
spy = spy + grv;
}
if ((jump == true) && (fall == false)) {
if ((spy > 0) && (spy)) {
fall == true;
if (kick_jump == false) {
this.gotoAndStop("fall");
}
}
}
((spy > 15) ? ((spy = 15)) : null);
((spy < -20) ? ((spy = -20)) : null);
if (((_root.plataforms.hitTest(_x, _y + bound_point_y, true) && (jump == true)) || (_root.plataforms.hitTest((_x + bound_point_x) - 10, _y + bound_point_y, true) && (jump == true))) || (_root.plataforms.hitTest((_x - bound_point_x) + 10, _y + bound_point_y, true) && (jump == true))) {
jump = false;
fall = false;
spy = 0;
kick_jump = false;
hitted = false;
}
if ((_root.plataforms.hitTest(_x, (_y + bound_point_y_max) - 3, true) || (_root.plataforms.hitTest((_x + bound_point_x) - 8, (_y + bound_point_y_max) - 3, true))) || (_root.plataforms.hitTest((_x - bound_point_x) + 8, (_y + bound_point_y_max) - 3, true))) {
_y = (_y - 6);
}
if ((_root.plataforms.hitTest(_x + bound_point_x, _y, true) || (_root.plataforms.hitTest(_x + 14, _y + 10, true))) || (_root.plataforms.hitTest(_x + 14, _y - 10, true))) {
if (combo3 == false) {
_x = (_x - spx);
if (sidescroll == true) {
_root._x = _root._x + spx;
_root.centerbox._x = _root.centerbox._x - spx;
_root.limitbox._x = _root.limitbox._x - spx;
_root.score_box._x = _root.score_box._x - spx;
_root.map_changer._x = _root.map_changer._x - spx;
}
}
if (combo3 == true) {
_x = (_x - velocidad_combo3);
combo3 = false;
}
hitted = false;
} else if ((_root.plataforms.hitTest(_x - bound_point_x, _y, true) || (_root.plataforms.hitTest(_x - 14, _y + 10, true))) || (_root.plataforms.hitTest(_x - 14, _y - 10, true))) {
if (combo3 == false) {
_x = (_x + spx);
if (sidescroll == true) {
_root._x = _root._x - spx;
_root.centerbox._x = _root.centerbox._x + spx;
_root.limitbox._x = _root.limitbox._x + spx;
_root.score_box._x = _root.score_box._x + spx;
_root.map_changer._x = _root.map_changer._x + spx;
}
}
if (combo3 == true) {
_x = (_x + velocidad_combo3);
combo3 = false;
}
hitted = false;
}
if (_root.plataforms.hitTest(_x + 5, _y - 25, true) || (_root.plataforms.hitTest(_x - 5, _y - 25, true))) {
trace("hi");
spy = 0;
_y = (_y + 10);
fall = true;
}
if ((((!_root.plataforms.hitTest(_x - bound_point_x, (_y + bound_point_y) + 10, true)) && (!_root.plataforms.hitTest(_x + bound_point_x, (_y + bound_point_y) + 10, true))) && (!_root.plataforms.hitTest(_x, (_y + bound_point_y) + 10, true))) && (jump == false)) {
jump = true;
kick = false;
}
if (((Key.isDown(83) && (kick == false)) && (jump == false)) && (kick_button == false)) {
kick = true;
this.gotoAndStop("kick1");
combo1 = true;
combo2 = false;
combo3 = false;
kick_button = true;
}
if ((!Key.isDown(83)) && (kick_button == true)) {
kick_button = false;
}
if (((((Key.isDown(83) && (kick == true)) && (jump == false)) && (combo1 == true)) && (this.kick_anim._currentframe > 6)) && (kick_button == false)) {
combo2 = true;
combo1 = false;
}
if (((((((Key.isDown(83) && (kick == true)) && (jump == false)) && (combo2 == true)) && (this.kick_anim._currentframe > 15)) && (kick_button == false)) && (sidescroll == false)) && (_root.enemies > 0)) {
combo3 = true;
combo2 = false;
}
if (((combo3 == true) && (this.kick_anim._currentframe > 26)) && (sidescroll == false)) {
if (!_root.plataforms.hitTest(_x - 30, _y, true)) {
if (_xscale == 100) {
_x = (_x - velocidad_combo3);
}
}
if (!_root.plataforms.hitTest(_x + 30, _y, true)) {
if (_xscale == -100) {
_x = (_x + velocidad_combo3);
}
}
}
if (((Key.isDown(83) && (jump == true)) && (kick_jump == false)) && (kick_button == false)) {
kick_jump = true;
this.gotoAndStop("kickjump");
}
if (hitted == true) {
if (sidescroll == false) {
if (side_empuje == "left") {
_x = (_x - sp_empuje);
}
if (side_empuje == "right") {
_x = (_x + sp_empuje);
}
} else {
if (side_empuje == "left") {
_x = (_x - sp_empuje);
_root._x = _root._x + sp_empuje;
_root.centerbox._x = _root.centerbox._x - sp_empuje;
_root.limitbox._x = _root.limitbox._x - sp_empuje;
_root.score_box._x = _root.score_box._x - sp_empuje;
_root.map_changer._x = _root.map_changer._x - sp_empuje;
}
if (side_empuje == "right") {
_x = (_x + sp_empuje);
_root._x = _root._x - sp_empuje;
_root.centerbox._x = _root.centerbox._x + sp_empuje;
_root.limitbox._x = _root.limitbox._x + sp_empuje;
_root.score_box._x = _root.score_box._x + sp_empuje;
_root.map_changer._x = _root.map_changer._x + sp_empuje;
}
}
red = new Color(this);
red.setTransform(_root.red);
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 20;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb2" + _root.orb_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
_root.hearth_id++;
size = Math.random() * 1;
_root.attachMovie("hearth", "hearth" + _root.hearth_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
i++;
}
} else {
normal = new Color(this);
normal.setTransform(_root.normal);
}
if (_root.health <= 0) {
grv = 20;
spy = spy - grv;
grv = 2;
death = true;
this.gotoAndStop("die");
}
if ((inmune == true) && (inmune_fps > 0)) {
inmune_fps--;
this._alpha = 30;
} else if ((inmune == true) && (inmune_fps <= 0)) {
inmune = false;
inmune_fps = 100;
this._alpha = 100;
}
}
if ((kick == false) && (kick_jump == false)) {
_root.combos_count = _root.combo;
_root.combo = 0;
}
if ((death == true) && (this.dieanim._currentframe < 20)) {
if (side_empuje == "left") {
_x = (_x - 20);
}
if (side_empuje == "right") {
_x = (_x + 20);
}
i = 1;
while (i < 5) {
_root.orb_id++;
size = Math.random() * 30;
_root.attachMovie("orb2", "orb2" + _root.orb_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
i++;
}
}
if (((this.hitTest(_root.box_appear1) && (_root.appear_box1.movement == false)) && (_root.appear_box2.movement == false)) && (deathway1 == false)) {
deathway1 = true;
deathway2 = false;
}
if (((this.hitTest(_root.box_appear2) && (_root.appear_box1.movement == false)) && (_root.appear_box2.movement == false)) && (deathway2 == false)) {
deathway2 = true;
deathway1 = false;
}
if (((death == true) && (this.dieanim._currentframe >= 20)) && (_root.lifes > 0)) {
_root.lifes--;
_root.health = 200;
hitted = false;
if ((_root.appear_box1.movement == false) && (_root.appear_box2.movement == false)) {
if ((((((((((_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y, true) && (sidescroll == true)) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 30, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 30, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 60, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 60, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 100, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 100, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 130, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 130, true) && (sidescroll == true))) || (sidescroll == false)) {
this._y = _root.centerbox._y - 226.5;
this._x = _root.centerbox._x;
}
if ((((((((((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y, true)) && (sidescroll == true)) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 30, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 30, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 60, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 60, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 100, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 100, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 130, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 130, true)) && (sidescroll == true))) {
this._y = _root.centerbox._y - 226.5;
this._x = _root.centerbox._x + 60;
sidescroll = false;
evento = true;
}
}
if (_root.appear_box1.movement == true) {
this._y = _root.appear_box1._y - 226.5;
this._x = _root.appear_box1._x;
sidescroll = false;
evento = true;
}
if (_root.appear_box2.movement == true) {
this._y = _root.appear_box2._y - 226.5;
this._x = _root.appear_box2._x;
sidescroll = false;
evento = true;
}
if (deathway1 == true) {
this._y = _root.appear_box1._y - 226.5;
this._x = _root.appear_box1._x;
sidescroll = false;
evento = true;
deathway1 = false;
}
if (deathway2 == true) {
this._y = _root.appear_box2._y - 226.5;
this._x = _root.appear_box2._x;
sidescroll = false;
evento = true;
deathway2 = false;
}
inmune = true;
death = false;
}
if (((this.hitTest(_root.nextmap) && (_root.changing_map == false)) && (endofmap == true)) && (death == false)) {
_root.level++;
_root.loaded = false;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
_root.map_changer.play();
_root.changing_map = true;
}
}
Frame 19
limit_map = 691;
level = 15;
Instance of Symbol 353 MovieClip "crawler" in Frame 19
onClipEvent (load) {
spx = 6;
spy = 0;
grv = 2;
bound_point_y = 22.5;
bound_point_y_max = 28;
bound_point_x = 12;
bound_point_xy = 12;
sidescroll = false;
bloqueoleft = false;
bloqueoright = false;
kick = false;
combo1 = false;
combo2 = false;
combo3 = false;
evento = false;
sp_land = spy;
jump = false;
fall = false;
kick_button = false;
hitted = false;
side_empuje = "";
sp_empuje = 5;
death = false;
inmune = false;
inmune_fps = 100;
velocidad_combo3 = 30;
endofmap = false;
limit = false;
}
onClipEvent (enterFrame) {
_y = (_y + spy);
if (((death == false) && (_root.evento_pause == false)) && (_root.changing_map == false)) {
if (((((_x < 275) && (sidescroll == false)) && (_root.enemies <= 0)) && (evento == false)) && (limit == false)) {
sidescroll = true;
} else if (((sidescroll == true) && (_root.enemies > 0)) && (evento == true)) {
sidescroll = false;
}
if ((_x > 275) && (sidescroll == true)) {
sidescroll = false;
}
if ((((_root._x >= _root.limit_map) && (sidescroll == true)) && (_root.enemies <= 0)) || (((_root._x >= _root.limit_map) && (sidescroll == false)) && (_root.enemies <= 0))) {
sidescroll = false;
limit = true;
endofmap = true;
} else if ((((_root._x >= _root.limit_map) && (sidescroll == true)) && (_root.enemies > 0)) || (((_root._x >= _root.limit_map) && (sidescroll == false)) && (_root.enemies > 0))) {
sidescroll = false;
limit = false;
endofmap = false;
}
if ((_root.enemies > 0) && (evento == false)) {
evento = true;
} else if (((_root.enemies <= 0) && (evento == true)) && (limit == false)) {
if ((_x < _root.centerbox._x) && (sidescroll == false)) {
_root._x = _root._x + 10;
_root.centerbox._x = _root.centerbox._x - 10;
_root.limitbox._x = _root.limitbox._x - 10;
_root.score_box._x = _root.score_box._x - 10;
_root.map_changer._x = _root.map_changer._x - 10;
} else if ((_x > _root.centerbox._x) && (_x < (_root.centerbox._x + 10))) {
evento = false;
}
}
if (((this._x - 10) < (_root.limitbox._x - 304.9)) && (endofmap == false)) {
this._x = (_root.limitbox._x - 304.9) + 10;
} else if ((this._x + 10) > (_root.limitbox._x + 264)) {
this._x = (_root.limitbox._x + 264) - 10;
}
if (this._y > 300) {
hitted = true;
grv = 10;
spy = spy - grv;
grv = 2;
_root.health = _root.health - 300;
}
if (sidescroll == false) {
if (((Key.isDown(37) && (jump == false)) && (!root.plataforms.hitTest(_x - bound_point_x, _y, true))) && (kick == false)) {
_x = (_x - spx);
this.gotoAndStop("walking");
_xscale = 100;
}
if (((Key.isDown(39) && (jump == false)) && (!root.plataforms.hitTest(_x + bound_point_x, _y, true))) && (kick == false)) {
_x = (_x + spx);
this.gotoAndStop("walking");
_xscale = -100;
}
if ((Key.isDown(37) && (jump == true)) && (kick == false)) {
_x = (_x - spx);
_xscale = 100;
} else if ((Key.isDown(39) && (jump == true)) && (kick == false)) {
_x = (_x + spx);
_xscale = -100;
}
} else if (sidescroll == true) {
if (((Key.isDown(37) && (jump == false)) && (!root.plataforms.hitTest((_x - bound_point_x) - 30, _y, true))) && (kick == false)) {
_x = (_x - spx);
_root._x = _root._x + spx;
_root.centerbox._x = _root.centerbox._x - spx;
_root.limitbox._x = _root.limitbox._x - spx;
_root.score_box._x = _root.score_box._x - spx;
_root.map_changer._x = _root.map_changer._x - spx;
this.gotoAndStop("walking");
_xscale = 100;
}
if (((Key.isDown(39) && (jump == false)) && (!root.plataforms.hitTest((_x + bound_point_x) + 20, _y, true))) && (kick == false)) {
_x = (_x + spx);
_root._x = _root._x - spx;
_root.centerbox._x = _root.centerbox._x + spx;
_root.limitbox._x = _root.limitbox._x + spx;
_root.score_box._x = _root.score_box._x + spx;
_root.map_changer._x = _root.map_changer._x + spx;
this.gotoAndStop("walking");
_xscale = -100;
}
if ((Key.isDown(37) && (jump == true)) && (kick == false)) {
_x = (_x - spx);
_root._x = _root._x + spx;
_root.centerbox._x = _root.centerbox._x - spx;
_root.limitbox._x = _root.limitbox._x - spx;
_root.score_box._x = _root.score_box._x - spx;
_root.map_changer._x = _root.map_changer._x - spx;
_xscale = 100;
} else if ((Key.isDown(39) && (jump == true)) && (kick == false)) {
_x = (_x + spx);
_root._x = _root._x - spx;
_root.centerbox._x = _root.centerbox._x + spx;
_root.limitbox._x = _root.limitbox._x + spx;
_root.score_box._x = _root.score_box._x + spx;
_root.map_changer._x = _root.map_changer._x + spx;
_xscale = -100;
}
}
if (((((!Key.isDown(37)) && (!Key.isDown(39))) && (jump == false)) && (fall == false)) && (kick == false)) {
this.gotoAndStop("stand");
}
if (((Key.isDown(65) && (jump == false)) && (fall == false)) && (kick == false)) {
grv = 25;
spy = spy - grv;
if (kick_jump == false) {
this.gotoAndStop("jump");
}
jump = true;
grv = 2;
}
if (jump == true) {
spy = spy + grv;
}
if ((jump == true) && (fall == false)) {
if ((spy > 0) && (spy)) {
fall == true;
if (kick_jump == false) {
this.gotoAndStop("fall");
}
}
}
((spy > 15) ? ((spy = 15)) : null);
((spy < -20) ? ((spy = -20)) : null);
if (((_root.plataforms.hitTest(_x, _y + bound_point_y, true) && (jump == true)) || (_root.plataforms.hitTest((_x + bound_point_x) - 10, _y + bound_point_y, true) && (jump == true))) || (_root.plataforms.hitTest((_x - bound_point_x) + 10, _y + bound_point_y, true) && (jump == true))) {
jump = false;
fall = false;
spy = 0;
kick_jump = false;
hitted = false;
}
if ((_root.plataforms.hitTest(_x, (_y + bound_point_y_max) - 3, true) || (_root.plataforms.hitTest((_x + bound_point_x) - 8, (_y + bound_point_y_max) - 3, true))) || (_root.plataforms.hitTest((_x - bound_point_x) + 8, (_y + bound_point_y_max) - 3, true))) {
_y = (_y - 6);
}
if ((_root.plataforms.hitTest(_x + bound_point_x, _y, true) || (_root.plataforms.hitTest(_x + 14, _y + 10, true))) || (_root.plataforms.hitTest(_x + 14, _y - 10, true))) {
if (combo3 == false) {
_x = (_x - spx);
if (sidescroll == true) {
_root._x = _root._x + spx;
_root.centerbox._x = _root.centerbox._x - spx;
_root.limitbox._x = _root.limitbox._x - spx;
_root.score_box._x = _root.score_box._x - spx;
_root.map_changer._x = _root.map_changer._x - spx;
}
}
if (combo3 == true) {
_x = (_x - velocidad_combo3);
combo3 = false;
}
hitted = false;
} else if ((_root.plataforms.hitTest(_x - bound_point_x, _y, true) || (_root.plataforms.hitTest(_x - 14, _y + 10, true))) || (_root.plataforms.hitTest(_x - 14, _y - 10, true))) {
if (combo3 == false) {
_x = (_x + spx);
if (sidescroll == true) {
_root._x = _root._x - spx;
_root.centerbox._x = _root.centerbox._x + spx;
_root.limitbox._x = _root.limitbox._x + spx;
_root.score_box._x = _root.score_box._x + spx;
_root.map_changer._x = _root.map_changer._x + spx;
}
}
if (combo3 == true) {
_x = (_x + velocidad_combo3);
combo3 = false;
}
hitted = false;
}
if (_root.plataforms.hitTest(_x + 5, _y - 25, true) || (_root.plataforms.hitTest(_x - 5, _y - 25, true))) {
trace("hi");
spy = 0;
_y = (_y + 10);
fall = true;
}
if ((((!_root.plataforms.hitTest(_x - bound_point_x, (_y + bound_point_y) + 10, true)) && (!_root.plataforms.hitTest(_x + bound_point_x, (_y + bound_point_y) + 10, true))) && (!_root.plataforms.hitTest(_x, (_y + bound_point_y) + 10, true))) && (jump == false)) {
jump = true;
kick = false;
}
if (((Key.isDown(83) && (kick == false)) && (jump == false)) && (kick_button == false)) {
kick = true;
this.gotoAndStop("kick1");
combo1 = true;
combo2 = false;
combo3 = false;
kick_button = true;
}
if ((!Key.isDown(83)) && (kick_button == true)) {
kick_button = false;
}
if (((((Key.isDown(83) && (kick == true)) && (jump == false)) && (combo1 == true)) && (this.kick_anim._currentframe > 6)) && (kick_button == false)) {
combo2 = true;
combo1 = false;
}
if (((((((Key.isDown(83) && (kick == true)) && (jump == false)) && (combo2 == true)) && (this.kick_anim._currentframe > 15)) && (kick_button == false)) && (sidescroll == false)) && (_root.enemies > 0)) {
combo3 = true;
combo2 = false;
}
if (((combo3 == true) && (this.kick_anim._currentframe > 26)) && (sidescroll == false)) {
if (!_root.plataforms.hitTest(_x - 30, _y, true)) {
if (_xscale == 100) {
_x = (_x - velocidad_combo3);
}
}
if (!_root.plataforms.hitTest(_x + 30, _y, true)) {
if (_xscale == -100) {
_x = (_x + velocidad_combo3);
}
}
}
if (((Key.isDown(83) && (jump == true)) && (kick_jump == false)) && (kick_button == false)) {
kick_jump = true;
this.gotoAndStop("kickjump");
}
if (hitted == true) {
if (sidescroll == false) {
if (side_empuje == "left") {
_x = (_x - sp_empuje);
}
if (side_empuje == "right") {
_x = (_x + sp_empuje);
}
} else {
if (side_empuje == "left") {
_x = (_x - sp_empuje);
_root._x = _root._x + sp_empuje;
_root.centerbox._x = _root.centerbox._x - sp_empuje;
_root.limitbox._x = _root.limitbox._x - sp_empuje;
_root.score_box._x = _root.score_box._x - sp_empuje;
_root.map_changer._x = _root.map_changer._x - sp_empuje;
}
if (side_empuje == "right") {
_x = (_x + sp_empuje);
_root._x = _root._x - sp_empuje;
_root.centerbox._x = _root.centerbox._x + sp_empuje;
_root.limitbox._x = _root.limitbox._x + sp_empuje;
_root.score_box._x = _root.score_box._x + sp_empuje;
_root.map_changer._x = _root.map_changer._x + sp_empuje;
}
}
red = new Color(this);
red.setTransform(_root.red);
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 20;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb2" + _root.orb_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
_root.hearth_id++;
size = Math.random() * 1;
_root.attachMovie("hearth", "hearth" + _root.hearth_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
i++;
}
} else {
normal = new Color(this);
normal.setTransform(_root.normal);
}
if (_root.health <= 0) {
grv = 20;
spy = spy - grv;
grv = 2;
death = true;
this.gotoAndStop("die");
}
if ((inmune == true) && (inmune_fps > 0)) {
inmune_fps--;
this._alpha = 30;
} else if ((inmune == true) && (inmune_fps <= 0)) {
inmune = false;
inmune_fps = 100;
this._alpha = 100;
}
}
if ((kick == false) && (kick_jump == false)) {
_root.combos_count = _root.combo;
_root.combo = 0;
}
if ((death == true) && (this.dieanim._currentframe < 20)) {
if (side_empuje == "left") {
_x = (_x - 20);
}
if (side_empuje == "right") {
_x = (_x + 20);
}
i = 1;
while (i < 5) {
_root.orb_id++;
size = Math.random() * 30;
_root.attachMovie("orb2", "orb2" + _root.orb_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
i++;
}
}
if (((death == true) && (this.dieanim._currentframe >= 20)) && (_root.lifes > 0)) {
_root.lifes--;
_root.health = 200;
hitted = false;
if ((((((((((_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y, true) && (sidescroll == true)) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 30, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 30, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 60, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 60, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 100, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 100, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 130, true) && (sidescroll == true))) || (_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 130, true) && (sidescroll == true))) || (sidescroll == false)) {
this._y = _root.centerbox._y - 226.5;
this._x = _root.centerbox._x;
}
if ((((((((((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y, true)) && (sidescroll == true)) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 30, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 30, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 60, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 60, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 100, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 100, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y + 130, true)) && (sidescroll == true))) || ((!_root.centerbox.hitTest(_root.plataform._x, _root.plataform._y - 130, true)) && (sidescroll == true))) {
this._y = _root.centerbox._y - 226.5;
this._x = _root.centerbox._x + 60;
sidescroll = false;
evento = true;
}
inmune = true;
death = false;
}
if (((this.hitTest(_root.nextmap) && (_root.changing_map == false)) && (endofmap == true)) && (death == false)) {
_root.level++;
_root.loaded = false;
_root.map_changer.swapDepths(_root.getNextHighestDepth());
_root.map_changer.play();
_root.changing_map = true;
}
}
Frame 20
stopAllSounds();
_root.music5.start(0, 1);
Frame 23
mochi.MochiScores.showLeaderboard({boardID:"80164cc7c95453fe", score:score});
stop();
Frame 24
MochiAd.showInterLevelAd({id:"34073bbdadc421a3", res:"570x320"});
Frame 25
stop();
stopAllSounds();
if (lose == true) {
_root.gotoAndStop("menu");
}
if (won == true) {
_root.gotoAndStop("credits");
}
Frame 28
mochi.MochiScores.showLeaderboard({boardID:"80164cc7c95453fe"});
Frame 29
this.gotoAndStop("menu");
_root.menus.gotoAndPlay(170);
Symbol 840 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.31");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
_rcvChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local2 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
allowDomains(_gatewayURL);
_clip = clip.createEmptyMovieClip(_local2, 10336, false);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _rcvChannel._callbacks[_local1.callbackID];
}
delete _rcvChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 841 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.2");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
}
Symbol 842 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
}
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (typeof(options.score) == "object") {
if (options.score.text != undefined) {
options.score = options.score.text;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 20 MovieClip [rawr] Frame 1
stop();
appear = false;
spx = (Math.random() * 2) + 4;
spy = 0;
jump = false;
grv = 2;
kicked = false;
size = 0;
bound_point_x = 26;
bound_point_x2 = 26;
bound_point_y = 27;
bound_point_y_max = 11;
jumping = false;
health = 200;
digits = 0;
digit1 = "";
digit2 = "";
digit3 = "";
damage1 = 20;
damage2 = 50;
scored = 0;
combo = false;
combo3 = false;
kick_jump = false;
death = false;
crawler_damage = 20;
anim_appear = false;
deathframes = 119;
this.onEnterFrame = function () {
_y = (_y + spy);
if ((this.detection_box.hitTest(_root.crawler) && (anim_appear == false)) && (_root.crawler.death == false)) {
this.play();
anim_appear = true;
_root.crawler.sidescroll = false;
_root.enemies++;
}
if ((anim_appear == true) && (_currentframe > 90)) {
grv = 10;
spy = spy - grv;
grv = 2;
appear = true;
anim_appear = false;
}
if (((appear == true) && (_currentframe >= 95)) && (death == false)) {
if (health > 0) {
if (this._y > 300) {
health = 0;
}
if ((this._x - 10) < (_root.limitbox._x - 304.9)) {
this._x = (_root.limitbox._x - 304.9) + 10;
} else if ((this._x + 10) > (_root.limitbox._x + 264)) {
this._x = (_root.limitbox._x + 264) - 10;
}
if ((_root.crawler._x < _x) && (kicked == false)) {
this.gotoAndStop("walking");
_xscale = -100;
this._x = this._x - spx;
}
if ((_root.crawler._x > _x) && (kicked == false)) {
this.gotoAndStop("walking");
_xscale = 100;
this._x = this._x + spx;
}
if ((jumping == true) && (jump == false)) {
grv = 20;
spy = spy - grv;
jumping = false;
jump = true;
grv = 2;
}
if (jump == true) {
spy = spy + grv;
}
((spy > 12) ? ((spy = 12)) : null);
((spy < -20) ? ((spy = -20)) : null);
if (((_root.plataforms.hitTest(_x, _y + 11, true) && (jump == true)) || (_root.plataforms.hitTest(_x - 9, _y + 11, true) && (jump == true))) || (_root.plataforms.hitTest(_x + 9, _y + 11, true) && (jump == true))) {
jump = false;
kicked = false;
combo = false;
combo3 = false;
kick_jump = false;
spy = 0;
}
if ((_root.plataforms.hitTest(_x, _y + 11, true) || (_root.plataforms.hitTest(_x - 10, _y + 11, true))) || (_root.plataforms.hitTest(_x + 10, _y + 11, true))) {
_y = (_y - 5);
}
if (((((_root.plataforms.hitTest((_x + bound_point_x) + 4, _y, true) || (_root.plataforms.hitTest((_x + bound_point_x) + 4, (_y + bound_point_xy) - 4, true))) || (_root.plataforms.hitTest((_x + bound_point_x) + 4, (_y - bound_point_xy) + 4, true))) || (_root.jump_plat.hitTest((_x + bound_point_x) + 4, _y, true))) || (_root.jump_plat.hitTest((_x + bound_point_x) + 4, (_y + bound_point_xy) - 4, true))) || (_root.jump_plat.hitTest((_x + bound_point_x) + 4, (_y - bound_point_xy) + 4, true))) {
if (combo == true) {
_x = (_x - 3);
}
if (combo3 == true) {
_x = (_x - 6);
}
if (kick_jump == true) {
_x = (_x - 10);
}
combo = false;
combo3 = false;
kick_jump = false;
jumping = true;
jump = false;
kicked = false;
_x = (_x - spx);
} else if (((((_root.plataforms.hitTest((_x - bound_point_x) - 4, _y, true) || (_root.plataforms.hitTest((_x - bound_point_x) - 4, (_y + bound_point_xy) - 4, true))) || (_root.plataforms.hitTest((_x - bound_point_x) - 4, (_y + bound_point_xy) - 4, true))) || (_root.jump_plat.hitTest((_x - bound_point_x) - 4, _y, true))) || (_root.jump_plat.hitTest((_x - bound_point_x) - 4, (_y + bound_point_xy) - 4, true))) || (_root.jump_plat.hitTest((_x - bound_point_x) - 4, (_y + bound_point_xy) - 4, true))) {
if (combo == true) {
_x = (_x + 3);
}
if (combo3 == true) {
_x = (_x + 6);
}
if (kick_jump == true) {
_x = (_x + 10);
}
combo = false;
combo3 = false;
kick_jump = false;
jumping = true;
jump = false;
kicked = false;
_x = (_x + spx);
}
if (_root.plataforms.hitTest(_x - 23, _y - 25, true) && (kicked == false)) {
health = health - 400;
kicked = true;
}
if ((_root.plataforms.hitTest(_x, _y - bound_point_y, true) || (_root.plataforms.hitTest((_x - bound_point_x) + 10, _y - bound_point_y, true))) || (_root.plataforms.hitTest((_x + bound_point_x) - 10, _y - bound_point_y, true))) {
spy = 0;
_y = (_y + 5);
jump = true;
}
if ((((!_root.plataforms.hitTest(_x - bound_point_x, _y + bound_point_y, true)) && (!_root.plataforms.hitTest(_x + bound_point_x, _y + bound_point_y, true))) && (!_root.plataforms.hitTest(_x, _y + bound_point_y, true))) && (jump == false)) {
jump = true;
}
if (((_root.crawler.kick_anim.kick_box.hitTest(this) && (kicked == false)) && (_xscale == 100)) || ((_root.crawler.kick_box.hitTest(this) && (kicked == false)) && (_xscale == 100))) {
this.gotoAndStop("kicked");
_root.combo++;
if (_root.crawler.combo3 == false) {
combo = true;
combo3 = false;
kick_jump = false;
kicked = true;
grv = 4;
spy = spy - grv;
grv = 2;
health = health - damage1;
_root.kick2.start(0.2, 1);
}
if (_root.crawler.combo3 == true) {
combo3 = true;
combo = false;
kick_jump = false;
kicked = true;
grv = 20;
spy = spy - grv;
grv = 2;
health = health - damage2;
_root.kick.start(0.2, 1);
}
if (_root.crawler.kick_jump == true) {
combo = false;
combo3 = false;
kick_jump = true;
kicked = true;
grv = 20;
spy = spy - grv;
grv = 2;
health = health - damage2;
_root.kick2.start(0.2, 1);
}
if (_root.crawler.combo1 == true) {
scored = Math.round((Math.random() * 9) + 1);
_root.score = _root.score + scored;
}
if (_root.crawler.combo2 == true) {
scored = Math.round((Math.random() * 60) + 30);
_root.score = _root.score + scored;
}
if (_root.crawler.combo3 == true) {
scored = Math.round((Math.random() * 100) + 61);
_root.score = _root.score + scored;
}
if (_root.crawler.kick_jump == true) {
scored = Math.round((Math.random() * 161) + 40);
_root.score = _root.score + scored;
}
if (scored <= 9) {
digits = String(scored);
digit1 = digits.charAt(0);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
}
if ((scored > 9) && (scored <= 99)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
}
if ((scored > 99) && (scored <= 999)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
digit3 = digits.charAt(2);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 0, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit3) + 1);
}
}
if (((_root.crawler.kick_anim.kick_box.hitTest(this) && (kicked == false)) && (_xscale == -100)) || ((_root.crawler.kick_box.hitTest(this) && (kicked == false)) && (_xscale == -100))) {
this.gotoAndStop("kicked");
_root.combo++;
if (_root.crawler.combo3 == false) {
combo = true;
combo3 = false;
kick_jump = false;
kicked = true;
grv = 4;
spy = spy - grv;
grv = 2;
health = health - damage1;
_root.kick2.start(0.2, 1);
}
if (_root.crawler.combo3 == true) {
combo3 = true;
combo = false;
kick_jump = false;
kicked = true;
grv = 20;
spy = spy - grv;
grv = 2;
health = health - damage2;
_root.kick.start(0.2, 1);
}
if (_root.crawler.kick_jump == true) {
combo = false;
combo3 = false;
kick_jump = true;
kicked = true;
grv = 20;
spy = spy - grv;
grv = 2;
health = health - damage2;
_root.kick2.start(0.2, 1);
}
if (_root.crawler.combo1 == true) {
scored = Math.round((Math.random() * 9) + 1);
_root.score = _root.score + scored;
}
if (_root.crawler.combo2 == true) {
scored = Math.round((Math.random() * 60) + 30);
_root.score = _root.score + scored;
}
if (_root.crawler.combo3 == true) {
scored = Math.round((Math.random() * 100) + 61);
_root.score = _root.score + scored;
}
if (_root.crawler.kick_jump == true) {
scored = Math.round((Math.random() * 161) + 40);
_root.score = _root.score + scored;
}
if (scored <= 9) {
digits = String(scored);
digit1 = digits.charAt(0);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
}
if ((scored > 9) && (scored <= 99)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
}
if ((scored > 99) && (scored <= 999)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
digit3 = digits.charAt(2);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 0, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit3) + 1);
}
}
if ((((kicked == true) && (_xscale == 100)) && (!_root.plataforms.hitTest((_x - bound_point_x) - 4, _y, true))) || (((kicked == true) && (_xscale == 100)) && (!_root.plataforms.hitTest((_x - bound_point_x) - 4, (_y + bound_point_xy) - 4, true)))) {
if (combo == true) {
_x = (_x - 3);
}
if (combo3 == true) {
_x = (_x - 6);
}
if (kick_jump == true) {
_x = (_x - 10);
}
} else if ((((kicked == true) && (_xscale == -100)) && (!_root.plataforms.hitTest((_x + bound_point_x) + 4, _y, true))) || (((kicked == true) && (_xscale == -100)) && (!_root.plataforms.hitTest((_x + bound_point_x) + 4, (_y + bound_point_xy) - 4, true)))) {
if (combo == true) {
_x = (_x + 3);
}
if (combo3 == true) {
_x = (_x + 6);
}
if (kick_jump == true) {
_x = (_x + 10);
}
}
if ((((this.hitTest(_root.crawler.hitbox) && (_root.crawler.hitted == false)) && (_root.crawler.inmune == false)) && (_root.crawler.combo3 == false)) && (kicked == false)) {
_root.kick2.start(0.2, 1);
_root.crawler.hitted = true;
_root.crawler.grv = 10;
_root.crawler.spy = _root.crawler.spy - _root.crawler.grv;
_root.crawler.grv = 2;
_root.health = _root.health - crawler_damage;
if (this._xscale == 100) {
_root.crawler.side_empuje = "right";
}
if (this._xscale == -100) {
_root.crawler.side_empuje = "left";
}
}
if (kicked == true) {
red = new Color(this);
red.setTransform(_root.red);
if (_root.crawler.combo1 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 30;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 20)) - 20, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
_root.plataformsx.swapDepths(_root.getNextHighestDepth());
i++;
}
}
if (_root.crawler.combo2 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 30;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 20)) - 20, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
_root.plataformsx.swapDepths(_root.getNextHighestDepth());
i++;
}
}
if (_root.crawler.combo3 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 20)) - 20, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
_root.plataformsx.swapDepths(_root.getNextHighestDepth());
i++;
}
}
} else {
normal = new Color(this);
normal.setTransform(_root.normal);
}
}
if (health <= 0) {
grv = 20;
spy = spy - grv;
grv = 2;
gotoAndPlay ("death");
_root.enemies--;
death = true;
}
}
if (death == true) {
play();
if (_currentframe <= deathframes) {
if (_xscale == -100) {
_x = (_x + 20);
}
if (_xscale == 100) {
_x = (_x - 20);
}
i = 1;
while (i < 10) {
_root.orb_id++;
size = Math.random() * 30;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
i++;
}
}
}
if ((_root.level == 18) && (_root.map_changer._currentframe >= 28)) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
};
Symbol 20 MovieClip [rawr] Frame 87
_root.crank.start(0, 1);
Symbol 20 MovieClip [rawr] Frame 88
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("rock4", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("rock3", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("rock2", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("rock1", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
Symbol 20 MovieClip [rawr] Frame 89
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("rock4", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("rock3", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("rock2", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("rock1", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
Symbol 20 MovieClip [rawr] Frame 116
stop();
this.removeMovieClip();
Symbol 32 MovieClip [fly] Frame 1
_root.enemies++;
spx = 0;
grv = 0.5;
spy = 0;
splimit = (Math.random() * 2) + 2;
health = 20;
damage1 = 20;
damage2 = 20;
damage3 = 30;
kicked = false;
combo = false;
combo3 = false;
kick_jump = false;
scored = 0;
digits = "";
digit1 = "";
digit2 = "";
digit3 = "";
size = 0;
deathframes = 24;
death = false;
crawler_damage = 10;
this.onEnterFrame = function () {
_x = (_x + spx);
_y = (_y + spy);
if (death == false) {
if ((_root.crawler._x < _x) && (kicked == false)) {
spx = spx - grv;
} else if ((_root.crawler._x > _x) && (kicked == false)) {
spx = spx + grv;
}
if ((_root.crawler._y < _y) && (kicked == false)) {
spy = spy - grv;
} else if ((_root.crawler._y > _y) && (kicked == false)) {
spy = spy + grv;
}
if (spx > splimit) {
spx = splimit;
} else if (spx < (-splimit)) {
spx = -splimit;
}
if (spy > splimit) {
spy = splimit;
} else if (spy < (-splimit)) {
spy = -splimit;
}
if ((_root.crawler.kick_anim.kick_box.hitTest(this) && (kicked == false)) || (_root.crawler.kick_box.hitTest(this) && (kicked == false))) {
_root.combo++;
if (_root.crawler.combo3 == false) {
combo = true;
combo3 = false;
kick_jump = false;
kicked = true;
health = health - damage1;
_root.kick2.start(0.2, 1);
}
if (_root.crawler.combo3 == true) {
combo3 = true;
combo = false;
kick_jump = false;
kicked = true;
health = health - damage2;
_root.kick.start(0.2, 1);
}
if (_root.crawler.kick_jump == true) {
combo = false;
combo3 = false;
kick_jump = true;
kicked = true;
health = health - damage2;
_root.kick2.start(0.2, 1);
}
if (_root.crawler.combo1 == true) {
scored = Math.round((Math.random() * 9) + 1);
_root.score = _root.score + scored;
}
if (_root.crawler.combo2 == true) {
scored = Math.round((Math.random() * 60) + 30);
_root.score = _root.score + scored;
}
if (_root.crawler.combo3 == true) {
scored = Math.round((Math.random() * 100) + 61);
_root.score = _root.score + scored;
}
if (_root.crawler.kick_jump == true) {
scored = Math.round((Math.random() * 161) + 40);
_root.score = _root.score + scored;
}
if (scored <= 9) {
digits = String(scored);
digit1 = digits.charAt(0);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
}
if ((scored > 9) && (scored <= 99)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
}
if ((scored > 99) && (scored <= 999)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
digit3 = digits.charAt(2);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 0, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit3) + 1);
}
}
if ((kicked == true) && (_root.crawler._xscale == 100)) {
if (combo == true) {
_x = (_x - 20);
}
if (combo3 == true) {
_x = (_x - 20);
}
if (kick_jump == true) {
_x = (_x - 20);
}
} else if ((kicked == true) && (_root.crawler._xscale == -100)) {
if (combo == true) {
_x = (_x + 20);
}
if (combo3 == true) {
_x = (_x + 20);
}
if (kick_jump == true) {
_x = (_x + 20);
}
}
if (kicked == true) {
red = new Color(this);
red.setTransform(_root.red);
if (_root.crawler.combo1 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 30;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 20)) - 20, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
i++;
}
if (i >= 5) {
kicked = false;
}
}
if (_root.crawler.combo2 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 30;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 20)) - 20, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
i++;
}
if (i >= 5) {
kicked = false;
}
}
if (_root.crawler.combo3 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 20)) - 20, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
i++;
}
if (i >= 5) {
kicked = false;
}
}
} else {
normal = new Color(this);
normal.setTransform(_root.normal);
}
if (health <= 0) {
grv = 20;
spy = spy - grv;
grv = 2;
gotoAndPlay ("death");
_root.enemies--;
death = true;
}
}
if ((((this.hitbox.hitTest(_root.crawler.hitbox) && (_root.crawler.hitted == false)) && (_root.crawler.inmune == false)) && (_root.crawler.combo3 == false)) && (kicked == false)) {
_root.kick2.start(0.2, 1);
_root.crawler.hitted = true;
_root.crawler.grv = 10;
_root.crawler.spy = _root.crawler.spy - _root.crawler.grv;
_root.crawler.grv = 2;
_root.health = _root.health - crawler_damage;
if (this._x < _root.crawler._x) {
_root.crawler.side_empuje = "right";
}
if (this._x > _root.crawler._x) {
_root.crawler.side_empuje = "left";
}
}
if (death == true) {
if (_currentframe <= deathframes) {
play();
if (_xscale == -100) {
_x = (_x + 20);
}
if (_xscale == 100) {
_x = (_x - 20);
}
i = 1;
while (i < 10) {
_root.orb_id++;
size = Math.random() * 30;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
i++;
}
}
}
if ((_root.level == 18) && (_root.map_changer._currentframe >= 28)) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
};
Symbol 32 MovieClip [fly] Frame 2
stop();
Symbol 32 MovieClip [fly] Frame 25
this.removeMovieClip();
this.stop();
Symbol 38 MovieClip [fly2] Frame 1
stop();
_root.enemies2++;
spx = 0;
grv = 0.5;
spy = 0;
splimit = (Math.random() * 2) + 2;
health = 20;
damage1 = 20;
damage2 = 20;
damage3 = 30;
kicked = false;
combo = false;
combo3 = false;
kick_jump = false;
scored = 0;
digits = "";
digit1 = "";
digit2 = "";
digit3 = "";
size = 0;
deathframes = 19;
death = false;
crawler_damage = 10;
this.onEnterFrame = function () {
if (_root.map_changer._currentframe == 28) {
this.removeMovieClip();
}
_x = (_x + spx);
_y = (_y + spy);
if (death == false) {
if ((_root.crawler._x < _x) && (kicked == false)) {
spx = spx - grv;
} else if ((_root.crawler._x > _x) && (kicked == false)) {
spx = spx + grv;
}
if ((_root.crawler._y < _y) && (kicked == false)) {
spy = spy - grv;
} else if ((_root.crawler._y > _y) && (kicked == false)) {
spy = spy + grv;
}
if (spx > splimit) {
spx = splimit;
} else if (spx < (-splimit)) {
spx = -splimit;
}
if (spy > splimit) {
spy = splimit;
} else if (spy < (-splimit)) {
spy = -splimit;
}
if ((_root.crawler.kick_anim.kick_box.hitTest(this) && (kicked == false)) || (_root.crawler.kick_box.hitTest(this) && (kicked == false))) {
_root.combo++;
if (_root.crawler.combo3 == false) {
combo = true;
combo3 = false;
kick_jump = false;
kicked = true;
health = health - damage1;
_root.kick2.start(0.2, 1);
}
if (_root.crawler.combo3 == true) {
combo3 = true;
combo = false;
kick_jump = false;
kicked = true;
health = health - damage2;
_root.kick.start(0.2, 1);
}
if (_root.crawler.kick_jump == true) {
combo = false;
combo3 = false;
kick_jump = true;
kicked = true;
health = health - damage2;
_root.kick2.start(0.2, 1);
}
if (_root.crawler.combo1 == true) {
scored = Math.round((Math.random() * 9) + 1);
_root.score = _root.score + scored;
}
if (_root.crawler.combo2 == true) {
scored = Math.round((Math.random() * 60) + 30);
_root.score = _root.score + scored;
}
if (_root.crawler.combo3 == true) {
scored = Math.round((Math.random() * 100) + 61);
_root.score = _root.score + scored;
}
if (_root.crawler.kick_jump == true) {
scored = Math.round((Math.random() * 161) + 40);
_root.score = _root.score + scored;
}
if (scored <= 9) {
digits = String(scored);
digit1 = digits.charAt(0);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
}
if ((scored > 9) && (scored <= 99)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
}
if ((scored > 99) && (scored <= 999)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
digit3 = digits.charAt(2);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 0, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit3) + 1);
}
}
if ((kicked == true) && (_root.crawler._xscale == 100)) {
if (combo == true) {
_x = (_x - 20);
}
if (combo3 == true) {
_x = (_x - 20);
}
if (kick_jump == true) {
_x = (_x - 20);
}
} else if ((kicked == true) && (_root.crawler._xscale == -100)) {
if (combo == true) {
_x = (_x + 20);
}
if (combo3 == true) {
_x = (_x + 20);
}
if (kick_jump == true) {
_x = (_x + 20);
}
}
if (kicked == true) {
red = new Color(this);
red.setTransform(_root.red);
if (_root.crawler.combo1 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 30;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 20)) - 20, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
i++;
}
if (i >= 5) {
kicked = false;
}
}
if (_root.crawler.combo2 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 30;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 20)) - 20, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
i++;
}
if (i >= 5) {
kicked = false;
}
}
if (_root.crawler.combo3 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 20)) - 20, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
i++;
}
if (i >= 5) {
kicked = false;
}
}
} else {
normal = new Color(this);
normal.setTransform(_root.normal);
}
if (health <= 0) {
grv = 20;
spy = spy - grv;
grv = 2;
gotoAndPlay ("death");
_root.enemies2--;
death = true;
}
}
if (((((this.hitbox.hitTest(_root.crawler.hitbox) && (_root.crawler.hitted == false)) && (_root.crawler.inmune == false)) && (_root.crawler.combo3 == false)) && (kicked == false)) && (death == false)) {
_root.kick2.start(0.2, 1);
_root.crawler.hitted = true;
_root.crawler.grv = 10;
_root.crawler.spy = _root.crawler.spy - _root.crawler.grv;
_root.crawler.grv = 2;
_root.health = _root.health - crawler_damage;
if (this._x < _root.crawler._x) {
_root.crawler.side_empuje = "right";
}
if (this._x > _root.crawler._x) {
_root.crawler.side_empuje = "left";
}
}
if (death == true) {
if (_currentframe <= deathframes) {
play();
if (_xscale == -100) {
_x = (_x + 20);
}
if (_xscale == 100) {
_x = (_x - 20);
}
i = 1;
while (i < 10) {
_root.orb_id++;
size = Math.random() * 30;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
i++;
}
}
}
if ((_root.level == 18) && (_root.map_changer._currentframe >= 28)) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
};
Symbol 38 MovieClip [fly2] Frame 20
stop();
this.removeMovieClip();
Symbol 63 MovieClip [jabali] Frame 1
stop();
appear = false;
spx = (Math.random() * 3) + 1;
spy = 0;
jump = false;
grv = 2;
kicked = false;
size = 0;
bound_point_x = 26;
bound_point_x2 = 26;
bound_point_y = 27;
bound_point_y_max = 11;
jumping = false;
health = 200;
digits = 0;
digit1 = "";
digit2 = "";
digit3 = "";
damage1 = 20;
damage2 = 50;
scored = 0;
combo = false;
combo3 = false;
kick_jump = false;
death = false;
crawler_damage = 20;
anim_appear = false;
deathframes = 119;
side_fps = 50;
side = 1;
ai = false;
this.onEnterFrame = function () {
_y = (_y + spy);
if ((this.detection_box.hitTest(_root.crawler) && (anim_appear == false)) && (_root.crawler.death == false)) {
this.play();
anim_appear = true;
_root.crawler.sidescroll = false;
_root.enemies++;
}
if ((anim_appear == true) && (_currentframe > 90)) {
grv = 10;
spy = spy - grv;
grv = 2;
appear = true;
anim_appear = false;
}
if (((appear == true) && (_currentframe >= 95)) && (death == false)) {
if (health > 0) {
if (this._y > 300) {
health = 0;
}
if ((this._x - 10) < (_root.limitbox._x - 304.9)) {
this._x = (_root.limitbox._x - 304.9) + 10;
side = 2;
} else if ((this._x + 10) > (_root.limitbox._x + 264)) {
this._x = (_root.limitbox._x + 264) - 10;
side = 1;
}
if (_root.up_box.ai == false) {
this.ai = false;
} else if (_root.up_box.ai == true) {
this.ai = true;
}
if (ai == false) {
if ((_root.crawler._x < _x) && (kicked == false)) {
this.gotoAndStop("walking");
_xscale = -100;
this._x = this._x - spx;
}
if ((_root.crawler._x > _x) && (kicked == false)) {
this.gotoAndStop("walking");
_xscale = 100;
this._x = this._x + spx;
}
}
if (ai == true) {
if (side_fps > 0) {
if ((side == 2) && (kicked == false)) {
this.gotoAndStop("walking");
_xscale = -100;
this._x = this._x - spx;
}
if ((side == 1) && (kicked == false)) {
this.gotoAndStop("walking");
_xscale = 100;
this._x = this._x + spx;
}
side_fps--;
} else if (side_fps <= 0) {
side = Math.round((Math.random() * 1.4) + 0.6);
side_fps = 50;
}
}
if ((jumping == true) && (jump == false)) {
grv = 20;
spy = spy - grv;
jumping = false;
jump = true;
grv = 2;
}
if (jump == true) {
spy = spy + grv;
}
((spy > 12) ? ((spy = 12)) : null);
((spy < -20) ? ((spy = -20)) : null);
if (((_root.plataforms.hitTest(_x, _y + 10, true) && (jump == true)) || (_root.plataforms.hitTest(_x - 9, _y + 10, true) && (jump == true))) || (_root.plataforms.hitTest(_x + 9, _y + 10, true) && (jump == true))) {
jump = false;
kicked = false;
combo = false;
combo3 = false;
kick_jump = false;
spy = 0;
}
if ((_root.plataforms.hitTest(_x, _y + 11, true) || (_root.plataforms.hitTest(_x - 10, _y + 11, true))) || (_root.plataforms.hitTest(_x + 10, _y + 11, true))) {
_y = (_y - 5);
}
if ((_root.plataforms.hitTest((_x + bound_point_x) + 4, _y, true) || (_root.plataforms.hitTest((_x + bound_point_x) + 4, (_y + bound_point_xy) - 4, true))) || (_root.plataforms.hitTest((_x + bound_point_x) + 4, (_y - bound_point_xy) + 4, true))) {
if (combo == true) {
_x = (_x - 3);
}
if (combo3 == true) {
_x = (_x - 6);
}
if (kick_jump == true) {
_x = (_x - 10);
}
combo = false;
combo3 = false;
kick_jump = false;
jumping = true;
jump = false;
kicked = false;
_x = (_x - spx);
} else if ((_root.plataforms.hitTest((_x - bound_point_x) - 4, _y, true) || (_root.plataforms.hitTest((_x - bound_point_x) - 4, (_y + bound_point_xy) - 4, true))) || (_root.plataforms.hitTest((_x - bound_point_x) - 4, (_y + bound_point_xy) - 4, true))) {
if (combo == true) {
_x = (_x + 3);
}
if (combo3 == true) {
_x = (_x + 6);
}
if (kick_jump == true) {
_x = (_x + 10);
}
combo = false;
combo3 = false;
kick_jump = false;
jumping = true;
jump = false;
kicked = false;
_x = (_x + spx);
}
if ((_root.plataforms.hitTest(_x, _y - bound_point_y, true) || (_root.plataforms.hitTest((_x - bound_point_x) + 10, _y - bound_point_y, true))) || (_root.plataforms.hitTest((_x + bound_point_x) - 10, _y - bound_point_y, true))) {
spy = 0;
_y = (_y + 5);
jump = true;
}
if ((((!_root.plataforms.hitTest(_x - bound_point_x, _y + bound_point_y, true)) && (!_root.plataforms.hitTest(_x + bound_point_x, _y + bound_point_y, true))) && (!_root.plataforms.hitTest(_x, _y + bound_point_y, true))) && (jump == false)) {
jump = true;
}
if (((_root.crawler.kick_anim.kick_box.hitTest(this) && (kicked == false)) && (_xscale == 100)) || ((_root.crawler.kick_box.hitTest(this) && (kicked == false)) && (_xscale == 100))) {
this.gotoAndStop("kicked");
_root.combo++;
if (_root.crawler.combo3 == false) {
combo = true;
combo3 = false;
kick_jump = false;
kicked = true;
grv = 4;
spy = spy - grv;
grv = 2;
health = health - damage1;
_root.kick2.start(0.2, 1);
}
if (_root.crawler.combo3 == true) {
combo3 = true;
combo = false;
kick_jump = false;
kicked = true;
grv = 20;
spy = spy - grv;
grv = 2;
health = health - damage2;
_root.kick.start(0.2, 1);
}
if (_root.crawler.kick_jump == true) {
combo = false;
combo3 = false;
kick_jump = true;
kicked = true;
grv = 20;
spy = spy - grv;
grv = 2;
health = health - damage2;
_root.kick2.start(0.2, 1);
}
if (_root.crawler.combo1 == true) {
scored = Math.round((Math.random() * 9) + 1);
_root.score = _root.score + scored;
}
if (_root.crawler.combo2 == true) {
scored = Math.round((Math.random() * 60) + 30);
_root.score = _root.score + scored;
}
if (_root.crawler.combo3 == true) {
scored = Math.round((Math.random() * 100) + 61);
_root.score = _root.score + scored;
}
if (_root.crawler.kick_jump == true) {
scored = Math.round((Math.random() * 161) + 40);
_root.score = _root.score + scored;
}
if (scored <= 9) {
digits = String(scored);
digit1 = digits.charAt(0);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
}
if ((scored > 9) && (scored <= 99)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
}
if ((scored > 99) && (scored <= 999)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
digit3 = digits.charAt(2);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 0, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit3) + 1);
}
}
if (((_root.crawler.kick_anim.kick_box.hitTest(this) && (kicked == false)) && (_xscale == -100)) || ((_root.crawler.kick_box.hitTest(this) && (kicked == false)) && (_xscale == -100))) {
this.gotoAndStop("kicked");
_root.combo++;
if (_root.crawler.combo3 == false) {
combo = true;
combo3 = false;
kick_jump = false;
kicked = true;
grv = 4;
spy = spy - grv;
grv = 2;
health = health - damage1;
_root.kick2.start(0.2, 1);
}
if (_root.crawler.combo3 == true) {
combo3 = true;
combo = false;
kick_jump = false;
kicked = true;
grv = 20;
spy = spy - grv;
grv = 2;
health = health - damage2;
_root.kick.start(0.2, 1);
}
if (_root.crawler.kick_jump == true) {
combo = false;
combo3 = false;
kick_jump = true;
kicked = true;
grv = 20;
spy = spy - grv;
grv = 2;
health = health - damage2;
_root.kick2.start(0.2, 1);
}
if (_root.crawler.combo1 == true) {
scored = Math.round((Math.random() * 9) + 1);
_root.score = _root.score + scored;
}
if (_root.crawler.combo2 == true) {
scored = Math.round((Math.random() * 60) + 30);
_root.score = _root.score + scored;
}
if (_root.crawler.combo3 == true) {
scored = Math.round((Math.random() * 100) + 61);
_root.score = _root.score + scored;
}
if (_root.crawler.kick_jump == true) {
scored = Math.round((Math.random() * 161) + 40);
_root.score = _root.score + scored;
}
if (scored <= 9) {
digits = String(scored);
digit1 = digits.charAt(0);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
}
if ((scored > 9) && (scored <= 99)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
}
if ((scored > 99) && (scored <= 999)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
digit3 = digits.charAt(2);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 0, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit3) + 1);
}
}
if ((((kicked == true) && (_xscale == 100)) && (!_root.plataforms.hitTest((_x - bound_point_x) - 4, _y, true))) || (((kicked == true) && (_xscale == 100)) && (!_root.plataforms.hitTest((_x - bound_point_x) - 4, (_y + bound_point_xy) - 4, true)))) {
if (combo == true) {
_x = (_x - 3);
}
if (combo3 == true) {
_x = (_x - 6);
}
if (kick_jump == true) {
_x = (_x - 10);
}
} else if ((((kicked == true) && (_xscale == -100)) && (!_root.plataforms.hitTest((_x + bound_point_x) + 4, _y, true))) || (((kicked == true) && (_xscale == -100)) && (!_root.plataforms.hitTest((_x + bound_point_x) + 4, (_y + bound_point_xy) - 4, true)))) {
if (combo == true) {
_x = (_x + 3);
}
if (combo3 == true) {
_x = (_x + 6);
}
if (kick_jump == true) {
_x = (_x + 10);
}
}
if ((((this.hitTest(_root.crawler.hitbox) && (_root.crawler.hitted == false)) && (_root.crawler.inmune == false)) && (_root.crawler.combo3 == false)) && (kicked == false)) {
_root.kick2.start(0.2, 1);
_root.crawler.hitted = true;
_root.crawler.grv = 10;
_root.crawler.spy = _root.crawler.spy - _root.crawler.grv;
_root.crawler.grv = 2;
_root.health = _root.health - crawler_damage;
if (this._xscale == 100) {
_root.crawler.side_empuje = "right";
}
if (this._xscale == -100) {
_root.crawler.side_empuje = "left";
}
}
if (kicked == true) {
red = new Color(this);
red.setTransform(_root.red);
if (_root.crawler.combo1 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 30;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 20)) - 20, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
_root.plataformsx.swapDepths(_root.getNextHighestDepth());
i++;
}
}
if (_root.crawler.combo2 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 30;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 20)) - 20, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
_root.plataformsx.swapDepths(_root.getNextHighestDepth());
i++;
}
}
if (_root.crawler.combo3 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 20)) - 20, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
_root.plataformsx.swapDepths(_root.getNextHighestDepth());
i++;
}
}
} else {
normal = new Color(this);
normal.setTransform(_root.normal);
}
}
if (health <= 0) {
grv = 20;
spy = spy - grv;
grv = 2;
gotoAndPlay ("death");
_root.enemies--;
death = true;
}
}
if (death == true) {
play();
if (_currentframe <= deathframes) {
if (_xscale == -100) {
_x = (_x + 20);
}
if (_xscale == 100) {
_x = (_x - 20);
}
i = 1;
while (i < 10) {
_root.orb_id++;
size = Math.random() * 30;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
i++;
}
}
}
if ((_root.level == 18) && (_root.map_changer._currentframe >= 28)) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
};
Symbol 63 MovieClip [jabali] Frame 88
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("hoja", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("hoja", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("hoja", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("hoja", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.crank.start(0, 1);
Symbol 63 MovieClip [jabali] Frame 89
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("hoja", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("hoja", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("hoja", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("hoja", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
Symbol 63 MovieClip [jabali] Frame 120
this.removeMovieClip();
Symbol 88 MovieClip [jabaligigante] Frame 1
stop();
appear = false;
spx = (Math.random() * 3) + 2;
spy = 0;
jump = false;
grv = 2;
kicked = false;
size = 0;
bound_point_x = 26;
bound_point_x2 = 26;
bound_point_y = 27;
bound_point_y_max = 11;
jumping = false;
health = 600;
digits = 0;
digit1 = "";
digit2 = "";
digit3 = "";
damage1 = 20;
damage2 = 50;
scored = 0;
combo = false;
combo3 = false;
kick_jump = false;
death = false;
crawler_damage = 20;
anim_appear = false;
deathframes = 108;
this.onEnterFrame = function () {
_y = (_y + spy);
if (this._y > 300) {
health = 0;
}
if ((this._x - 10) < (_root.limitbox._x - 304.9)) {
this._x = (_root.limitbox._x - 304.9) + 10;
} else if ((this._x + 10) > (_root.limitbox._x + 264)) {
this._x = (_root.limitbox._x + 264) - 10;
}
if ((this.detection_box.hitTest(_root.crawler) && (anim_appear == false)) && (_root.crawler.death == false)) {
this.play();
anim_appear = true;
_root.crawler.sidescroll = false;
_root.enemies++;
}
if ((anim_appear == true) && (_currentframe > 90)) {
grv = 10;
spy = spy - grv;
grv = 2;
appear = true;
anim_appear = false;
}
if (((appear == true) && (_currentframe >= 95)) && (death == false)) {
if (health > 0) {
if ((_root.crawler._x < _x) && (kicked == false)) {
this.gotoAndStop("walking");
_xscale = -100;
this._x = this._x - spx;
}
if ((_root.crawler._x > _x) && (kicked == false)) {
this.gotoAndStop("walking");
_xscale = 100;
this._x = this._x + spx;
}
if ((jumping == true) && (jump == false)) {
grv = 20;
spy = spy - grv;
jumping = false;
jump = true;
grv = 2;
}
if (jump == true) {
spy = spy + grv;
}
((spy > 12) ? ((spy = 12)) : null);
((spy < -20) ? ((spy = -20)) : null);
if (((_root.plataforms.hitTest(_x, _y + 12, true) && (jump == true)) || (_root.plataforms.hitTest(_x - 11, _y + 12, true) && (jump == true))) || (_root.plataforms.hitTest(_x + 11, _y + 12, true) && (jump == true))) {
jump = false;
kicked = false;
combo = false;
combo3 = false;
kick_jump = false;
spy = 0;
}
if ((_root.plataforms.hitTest(_x, _y + 12, true) || (_root.plataforms.hitTest(_x - 12, _y + 12, true))) || (_root.plataforms.hitTest(_x + 12, _y + 12, true))) {
_y = (_y - 5);
}
if ((_root.plataforms.hitTest((_x + bound_point_x) + 4, _y, true) || (_root.plataforms.hitTest((_x + bound_point_x) + 4, (_y + bound_point_xy) - 4, true))) || (_root.plataforms.hitTest((_x + bound_point_x) + 4, (_y - bound_point_xy) + 4, true))) {
if (combo == true) {
_x = (_x - 3);
}
if (combo3 == true) {
_x = (_x - 6);
}
if (kick_jump == true) {
_x = (_x - 10);
}
combo = false;
combo3 = false;
kick_jump = false;
jumping = true;
jump = false;
kicked = false;
_x = (_x - spx);
} else if ((_root.plataforms.hitTest((_x - bound_point_x) - 4, _y, true) || (_root.plataforms.hitTest((_x - bound_point_x) - 4, (_y + bound_point_xy) - 4, true))) || (_root.plataforms.hitTest((_x - bound_point_x) - 4, (_y + bound_point_xy) - 4, true))) {
if (combo == true) {
_x = (_x + 3);
}
if (combo3 == true) {
_x = (_x + 6);
}
if (kick_jump == true) {
_x = (_x + 10);
}
combo = false;
combo3 = false;
kick_jump = false;
jumping = true;
jump = false;
kicked = false;
_x = (_x + spx);
}
if ((_root.plataforms.hitTest(_x, _y - bound_point_y, true) || (_root.plataforms.hitTest((_x - bound_point_x) + 10, _y - bound_point_y, true))) || (_root.plataforms.hitTest((_x + bound_point_x) - 10, _y - bound_point_y, true))) {
spy = 0;
_y = (_y + 5);
jump = true;
}
if ((((!_root.plataforms.hitTest(_x - bound_point_x, _y + bound_point_y, true)) && (!_root.plataforms.hitTest(_x + bound_point_x, _y + bound_point_y, true))) && (!_root.plataforms.hitTest(_x, _y + bound_point_y, true))) && (jump == false)) {
jump = true;
}
if (((_root.crawler.kick_anim.kick_box.hitTest(this) && (kicked == false)) && (_xscale == 100)) || ((_root.crawler.kick_box.hitTest(this) && (kicked == false)) && (_xscale == 100))) {
this.gotoAndStop("kicked");
_root.combo++;
if (_root.crawler.combo3 == false) {
combo = true;
combo3 = false;
kick_jump = false;
kicked = true;
grv = 4;
spy = spy - grv;
grv = 2;
health = health - damage1;
_root.kick2.start(0.2, 1);
}
if (_root.crawler.combo3 == true) {
combo3 = true;
combo = false;
kick_jump = false;
kicked = true;
grv = 20;
spy = spy - grv;
grv = 2;
health = health - damage2;
_root.kick.start(0.2, 1);
}
if (_root.crawler.kick_jump == true) {
combo = false;
combo3 = false;
kick_jump = true;
kicked = true;
grv = 20;
spy = spy - grv;
grv = 2;
health = health - damage2;
_root.kick2.start(0.2, 1);
}
if (_root.crawler.combo1 == true) {
scored = Math.round((Math.random() * 9) + 1);
_root.score = _root.score + scored;
}
if (_root.crawler.combo2 == true) {
scored = Math.round((Math.random() * 60) + 30);
_root.score = _root.score + scored;
}
if (_root.crawler.combo3 == true) {
scored = Math.round((Math.random() * 100) + 61);
_root.score = _root.score + scored;
}
if (_root.crawler.kick_jump == true) {
scored = Math.round((Math.random() * 161) + 40);
_root.score = _root.score + scored;
}
if (scored <= 9) {
digits = String(scored);
digit1 = digits.charAt(0);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
}
if ((scored > 9) && (scored <= 99)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
}
if ((scored > 99) && (scored <= 999)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
digit3 = digits.charAt(2);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 0, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit3) + 1);
}
}
if (((_root.crawler.kick_anim.kick_box.hitTest(this) && (kicked == false)) && (_xscale == -100)) || ((_root.crawler.kick_box.hitTest(this) && (kicked == false)) && (_xscale == -100))) {
this.gotoAndStop("kicked");
_root.combo++;
if (_root.crawler.combo3 == false) {
combo = true;
combo3 = false;
kick_jump = false;
kicked = true;
grv = 4;
spy = spy - grv;
grv = 2;
health = health - damage1;
_root.kick2.start(0.2, 1);
}
if (_root.crawler.combo3 == true) {
combo3 = true;
combo = false;
kick_jump = false;
kicked = true;
grv = 20;
spy = spy - grv;
grv = 2;
health = health - damage2;
_root.kick.start(0.2, 1);
}
if (_root.crawler.kick_jump == true) {
combo = false;
combo3 = false;
kick_jump = true;
kicked = true;
grv = 20;
spy = spy - grv;
grv = 2;
health = health - damage2;
_root.kick2.start(0.2, 1);
}
if (_root.crawler.combo1 == true) {
scored = Math.round((Math.random() * 9) + 1);
_root.score = _root.score + scored;
}
if (_root.crawler.combo2 == true) {
scored = Math.round((Math.random() * 60) + 30);
_root.score = _root.score + scored;
}
if (_root.crawler.combo3 == true) {
scored = Math.round((Math.random() * 100) + 61);
_root.score = _root.score + scored;
}
if (_root.crawler.kick_jump == true) {
scored = Math.round((Math.random() * 161) + 40);
_root.score = _root.score + scored;
}
if (scored <= 9) {
digits = String(scored);
digit1 = digits.charAt(0);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
}
if ((scored > 9) && (scored <= 99)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
}
if ((scored > 99) && (scored <= 999)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
digit3 = digits.charAt(2);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 0, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit3) + 1);
}
}
if ((((kicked == true) && (_xscale == 100)) && (!_root.plataforms.hitTest((_x - bound_point_x) - 4, _y, true))) || (((kicked == true) && (_xscale == 100)) && (!_root.plataforms.hitTest((_x - bound_point_x) - 4, (_y + bound_point_xy) - 4, true)))) {
if (combo == true) {
_x = (_x - 3);
}
if (combo3 == true) {
_x = (_x - 6);
}
if (kick_jump == true) {
_x = (_x - 10);
}
} else if ((((kicked == true) && (_xscale == -100)) && (!_root.plataforms.hitTest((_x + bound_point_x) + 4, _y, true))) || (((kicked == true) && (_xscale == -100)) && (!_root.plataforms.hitTest((_x + bound_point_x) + 4, (_y + bound_point_xy) - 4, true)))) {
if (combo == true) {
_x = (_x + 3);
}
if (combo3 == true) {
_x = (_x + 6);
}
if (kick_jump == true) {
_x = (_x + 10);
}
}
if ((((this.hitTest(_root.crawler.hitbox) && (_root.crawler.hitted == false)) && (_root.crawler.inmune == false)) && (_root.crawler.combo3 == false)) && (kicked == false)) {
_root.kick2.start(0.2, 1);
_root.crawler.hitted = true;
_root.crawler.grv = 10;
_root.crawler.spy = _root.crawler.spy - _root.crawler.grv;
_root.crawler.grv = 2;
_root.health = _root.health - crawler_damage;
if (this._xscale == 100) {
_root.crawler.side_empuje = "right";
}
if (this._xscale == -100) {
_root.crawler.side_empuje = "left";
}
}
if (kicked == true) {
red = new Color(this);
red.setTransform(_root.red);
if (_root.crawler.combo1 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 30;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 20)) - 20, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
_root.plataformsx.swapDepths(_root.getNextHighestDepth());
i++;
}
}
if (_root.crawler.combo2 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 30;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 20)) - 20, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
_root.plataformsx.swapDepths(_root.getNextHighestDepth());
i++;
}
}
if (_root.crawler.combo3 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 20)) - 20, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
_root.plataformsx.swapDepths(_root.getNextHighestDepth());
i++;
}
}
} else {
normal = new Color(this);
normal.setTransform(_root.normal);
}
}
if (health <= 0) {
grv = 20;
spy = spy - grv;
grv = 2;
gotoAndPlay ("death");
_root.enemies--;
death = true;
}
}
if (death == true) {
if (_currentframe <= deathframes) {
play();
if (_xscale == -100) {
_x = (_x + 20);
}
if (_xscale == 100) {
_x = (_x - 20);
}
i = 1;
while (i < 10) {
_root.orb_id++;
size = Math.random() * 30;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
i++;
}
}
}
if ((_root.level == 18) && (_root.map_changer._currentframe >= 28)) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
};
Symbol 88 MovieClip [jabaligigante] Frame 88
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("hoja", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("hoja", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("hoja", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("hoja", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.crank.start(0, 1);
Symbol 88 MovieClip [jabaligigante] Frame 89
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("hoja", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("hoja", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("hoja", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("hoja", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
Symbol 88 MovieClip [jabaligigante] Frame 120
this.removeMovieClip();
Symbol 112 MovieClip [puerco] Frame 1
stop();
appear = false;
spx = (Math.random() * 2) + 3;
spy = 0;
jump = false;
grv = 2;
kicked = false;
size = 0;
bound_point_x = 26;
bound_point_x2 = 26;
bound_point_y = 27;
bound_point_y_max = 11;
jumping = false;
health = 100;
digits = 0;
digit1 = "";
digit2 = "";
digit3 = "";
damage1 = 20;
damage2 = 50;
scored = 0;
combo = false;
combo3 = false;
kick_jump = false;
death = false;
crawler_damage = 20;
crawler_detected = false;
deathframes = 25;
walking_side = Math.round(Math.random() * 1) + 1;
walking_fps = 100;
this.onEnterFrame = function () {
_y = (_y + spy);
if (this._y > 300) {
health = 0;
}
if (crawler_detected == false) {
if (walking_fps < 0) {
walking_side = Math.round(Math.random() * 1) + 1;
walking_fps = 100;
}
if (walking_side == 1) {
this.gotoAndStop("walking");
_xscale = -100;
this._x = this._x - spx;
walking_fps--;
}
if (walking_side == 2) {
this.gotoAndStop("walking");
_xscale = 100;
this._x = this._x + spx;
walking_fps--;
}
if ((jumping == true) && (jump == false)) {
grv = 20;
spy = spy - grv;
jumping = false;
jump = true;
grv = 2;
}
if (jump == true) {
spy = spy + grv;
}
((spy > 12) ? ((spy = 12)) : null);
((spy < -20) ? ((spy = -20)) : null);
if (((_root.plataforms.hitTest(_x, _y + 12, true) && (jump == true)) || (_root.plataforms.hitTest(_x - 11, _y + 12, true) && (jump == true))) || (_root.plataforms.hitTest(_x + 11, _y + 12, true) && (jump == true))) {
jump = false;
kicked = false;
combo = false;
combo3 = false;
kick_jump = false;
spy = 0;
}
if ((_root.plataforms.hitTest(_x, _y + 12, true) || (_root.plataforms.hitTest(_x - 12, _y + 12, true))) || (_root.plataforms.hitTest(_x + 12, _y + 12, true))) {
_y = (_y - 5);
}
if ((_root.plataforms.hitTest((_x + bound_point_x) + 4, _y, true) || (_root.plataforms.hitTest((_x + bound_point_x) + 4, (_y + bound_point_xy) - 4, true))) || (_root.plataforms.hitTest((_x + bound_point_x) + 4, (_y - bound_point_xy) + 4, true))) {
if (combo == true) {
_x = (_x - 3);
}
if (combo3 == true) {
_x = (_x - 6);
}
if (kick_jump == true) {
_x = (_x - 10);
}
combo = false;
combo3 = false;
kick_jump = false;
jumping = true;
jump = false;
kicked = false;
_x = (_x - spx);
} else if ((_root.plataforms.hitTest((_x - bound_point_x) - 4, _y, true) || (_root.plataforms.hitTest((_x - bound_point_x) - 4, (_y + bound_point_xy) - 4, true))) || (_root.plataforms.hitTest((_x - bound_point_x) - 4, (_y + bound_point_xy) - 4, true))) {
if (combo == true) {
_x = (_x + 3);
}
if (combo3 == true) {
_x = (_x + 6);
}
if (kick_jump == true) {
_x = (_x + 10);
}
combo = false;
combo3 = false;
kick_jump = false;
jumping = true;
jump = false;
kicked = false;
_x = (_x + spx);
}
if ((_root.plataforms.hitTest(_x, _y - bound_point_y, true) || (_root.plataforms.hitTest((_x - bound_point_x) + 10, _y - bound_point_y, true))) || (_root.plataforms.hitTest((_x + bound_point_x) - 10, _y - bound_point_y, true))) {
spy = 0;
_y = (_y + 5);
jump = true;
}
if ((((!_root.plataforms.hitTest((_x - bound_point_x) + 10, _y + bound_point_y, true)) && (!_root.plataforms.hitTest((_x + bound_point_x) - 10, _y + bound_point_y, true))) && (!_root.plataforms.hitTest(_x, _y + bound_point_y, true))) && (jump == false)) {
jump = true;
}
if (health <= 0) {
grv = 20;
spy = spy - grv;
grv = 2;
gotoAndPlay ("death");
death = true;
}
}
if ((this.detection_box.hitTest(_root.crawler) && (crawler_detected == false)) && (_root.crawler.death == false)) {
crawler_detected = true;
_root.enemies++;
}
if ((crawler_detected == true) && (death == false)) {
if ((this._x - 10) < (_root.limitbox._x - 304.9)) {
this._x = (_root.limitbox._x - 304.9) + 10;
} else if ((this._x + 10) > (_root.limitbox._x + 264)) {
this._x = (_root.limitbox._x + 264) - 10;
}
if (health > 0) {
if ((_root.crawler._x < _x) && (kicked == false)) {
this.gotoAndStop("walking");
_xscale = -100;
this._x = this._x - spx;
}
if ((_root.crawler._x > _x) && (kicked == false)) {
this.gotoAndStop("walking");
_xscale = 100;
this._x = this._x + spx;
}
if ((jumping == true) && (jump == false)) {
grv = 20;
spy = spy - grv;
jumping = false;
jump = true;
grv = 2;
}
if (jump == true) {
spy = spy + grv;
}
((spy > 12) ? ((spy = 12)) : null);
((spy < -20) ? ((spy = -20)) : null);
if (((_root.plataforms.hitTest(_x, _y + 12, true) && (jump == true)) || (_root.plataforms.hitTest(_x - 11, _y + 12, true) && (jump == true))) || (_root.plataforms.hitTest(_x + 11, _y + 12, true) && (jump == true))) {
jump = false;
kicked = false;
combo = false;
combo3 = false;
kick_jump = false;
spy = 0;
}
if ((_root.plataforms.hitTest(_x, _y + 12, true) || (_root.plataforms.hitTest(_x - 12, _y + 12, true))) || (_root.plataforms.hitTest(_x + 12, _y + 12, true))) {
_y = (_y - 5);
}
if ((_root.plataforms.hitTest((_x + bound_point_x) - 10, _y, true) || (_root.plataforms.hitTest((_x + bound_point_x) - 10, (_y + bound_point_xy) - 4, true))) || (_root.plataforms.hitTest((_x + bound_point_x) - 10, (_y - bound_point_xy) + 4, true))) {
if (combo == true) {
_x = (_x - 3);
}
if (combo3 == true) {
_x = (_x - 6);
}
if (kick_jump == true) {
_x = (_x - 10);
}
combo = false;
combo3 = false;
kick_jump = false;
jumping = true;
jump = false;
kicked = false;
_x = (_x - spx);
} else if ((_root.plataforms.hitTest((_x - bound_point_x) + 10, _y, true) || (_root.plataforms.hitTest((_x - bound_point_x) + 10, (_y + bound_point_xy) - 4, true))) || (_root.plataforms.hitTest((_x - bound_point_x) + 10, (_y + bound_point_xy) - 4, true))) {
if (combo == true) {
_x = (_x + 3);
}
if (combo3 == true) {
_x = (_x + 6);
}
if (kick_jump == true) {
_x = (_x + 10);
}
combo = false;
combo3 = false;
kick_jump = false;
jumping = true;
jump = false;
kicked = false;
_x = (_x + spx);
}
if ((_root.plataforms.hitTest(_x, _y - bound_point_y, true) || (_root.plataforms.hitTest((_x - bound_point_x) + 10, _y - bound_point_y, true))) || (_root.plataforms.hitTest((_x + bound_point_x) - 10, _y - bound_point_y, true))) {
spy = 0;
_y = (_y + 5);
jump = true;
}
if ((((!_root.plataforms.hitTest((_x - bound_point_x) + 10, _y + bound_point_y, true)) && (!_root.plataforms.hitTest((_x + bound_point_x) - 10, _y + bound_point_y, true))) && (!_root.plataforms.hitTest(_x, _y + bound_point_y, true))) && (jump == false)) {
jump = true;
}
if (((_root.crawler.kick_anim.kick_box.hitTest(this.hitbox) && (kicked == false)) && (_xscale == 100)) || ((_root.crawler.kick_box.hitTest(this.hitbox) && (kicked == false)) && (_xscale == 100))) {
this.gotoAndStop("kicked");
_root.combo++;
if (_root.crawler.combo3 == false) {
combo = true;
combo3 = false;
kick_jump = false;
kicked = true;
grv = 4;
spy = spy - grv;
grv = 2;
health = health - damage1;
_root.kick2.start(0, 1);
}
if (_root.crawler.combo3 == true) {
combo3 = true;
combo = false;
kick_jump = false;
kicked = true;
grv = 6;
spy = spy - grv;
grv = 2;
health = health - damage2;
_root.kick.start(0, 1);
}
if (_root.crawler.kick_jump == true) {
combo = false;
combo3 = false;
kick_jump = true;
kicked = true;
grv = 20;
spy = spy - grv;
grv = 2;
health = health - damage2;
_root.kick2.start(0, 1);
}
if (_root.crawler.combo1 == true) {
scored = Math.round((Math.random() * 9) + 1);
_root.score = _root.score + scored;
}
if (_root.crawler.combo2 == true) {
scored = Math.round((Math.random() * 60) + 30);
_root.score = _root.score + scored;
}
if (_root.crawler.combo3 == true) {
scored = Math.round((Math.random() * 100) + 61);
_root.score = _root.score + scored;
}
if (_root.crawler.kick_jump == true) {
scored = Math.round((Math.random() * 161) + 40);
_root.score = _root.score + scored;
}
if (scored <= 9) {
digits = String(scored);
digit1 = digits.charAt(0);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
}
if ((scored > 9) && (scored <= 99)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
}
if ((scored > 99) && (scored <= 999)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
digit3 = digits.charAt(2);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 0, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit3) + 1);
}
}
if (((_root.crawler.kick_anim.kick_box.hitTest(this.hitbox) && (kicked == false)) && (_xscale == -100)) || ((_root.crawler.kick_box.hitTest(this.hitbox) && (kicked == false)) && (_xscale == -100))) {
this.gotoAndStop("kicked");
_root.combo++;
if (_root.crawler.combo3 == false) {
combo = true;
combo3 = false;
kick_jump = false;
kicked = true;
grv = 4;
spy = spy - grv;
grv = 2;
health = health - damage1;
_root.kick2.start(0, 1);
}
if (_root.crawler.combo3 == true) {
combo3 = true;
combo = false;
kick_jump = false;
kicked = true;
grv = 20;
spy = spy - grv;
grv = 2;
health = health - damage2;
_root.kick.start(0, 1);
}
if (_root.crawler.kick_jump == true) {
combo = false;
combo3 = false;
kick_jump = true;
kicked = true;
grv = 20;
spy = spy - grv;
grv = 2;
health = health - damage2;
_root.kick2.start(0, 1);
}
if (_root.crawler.combo1 == true) {
scored = Math.round((Math.random() * 9) + 1);
_root.score = _root.score + scored;
}
if (_root.crawler.combo2 == true) {
scored = Math.round((Math.random() * 60) + 30);
_root.score = _root.score + scored;
}
if (_root.crawler.combo3 == true) {
scored = Math.round((Math.random() * 100) + 61);
_root.score = _root.score + scored;
}
if (_root.crawler.kick_jump == true) {
scored = Math.round((Math.random() * 161) + 40);
_root.score = _root.score + scored;
}
if (scored <= 9) {
digits = String(scored);
digit1 = digits.charAt(0);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
}
if ((scored > 9) && (scored <= 99)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
}
if ((scored > 99) && (scored <= 999)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
digit3 = digits.charAt(2);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 0, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit3) + 1);
}
}
if ((((kicked == true) && (_xscale == 100)) && (!_root.plataforms.hitTest((_x - bound_point_x) - 4, _y, true))) || (((kicked == true) && (_xscale == 100)) && (!_root.plataforms.hitTest((_x - bound_point_x) - 4, (_y + bound_point_xy) - 4, true)))) {
if (combo == true) {
_x = (_x - 3);
}
if (combo3 == true) {
_x = (_x - 6);
}
if (kick_jump == true) {
_x = (_x - 10);
}
} else if ((((kicked == true) && (_xscale == -100)) && (!_root.plataforms.hitTest((_x + bound_point_x) + 4, _y, true))) || (((kicked == true) && (_xscale == -100)) && (!_root.plataforms.hitTest((_x + bound_point_x) + 4, (_y + bound_point_xy) - 4, true)))) {
if (combo == true) {
_x = (_x + 3);
}
if (combo3 == true) {
_x = (_x + 6);
}
if (kick_jump == true) {
_x = (_x + 10);
}
}
if (((this.hitbox.hitTest(_root.crawler.hitbox) && (_root.crawler.hitted == false)) && (_root.crawler.inmune == false)) && (_root.crawler.combo3 == false)) {
_root.kick2.start(0, 1);
_root.crawler.hitted = true;
_root.crawler.grv = 10;
_root.crawler.spy = _root.crawler.spy - _root.crawler.grv;
_root.crawler.grv = 2;
_root.health = _root.health - crawler_damage;
if (this._xscale == 100) {
_root.crawler.side_empuje = "right";
}
if (this._xscale == -100) {
_root.crawler.side_empuje = "left";
}
}
if (kicked == true) {
red = new Color(this);
red.setTransform(_root.red);
if (_root.crawler.combo1 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 30;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 20)) - 20, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
i++;
}
}
if (_root.crawler.combo2 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 20)) - 20, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
i++;
}
}
if (_root.crawler.combo3 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 20)) - 20, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
i++;
}
}
} else {
normal = new Color(this);
normal.setTransform(_root.normal);
}
}
if (health <= 0) {
grv = 20;
spy = spy - grv;
grv = 2;
gotoAndPlay ("death");
_root.enemies--;
death = true;
}
}
if (death == true) {
if (_currentframe <= deathframes) {
play();
if (_xscale == -100) {
_x = (_x + 20);
}
if (_xscale == 100) {
_x = (_x - 20);
}
i = 1;
while (i < 10) {
_root.orb_id++;
size = Math.random() * 30;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
i++;
}
}
}
if ((_root.level == 18) && (_root.map_changer._currentframe >= 28)) {
this.removeMovieClip();
}
};
Symbol 112 MovieClip [puerco] Frame 26
stop();
Symbol 123 MovieClip [sheebee] Frame 1
spx = (Math.random() * 5) + 10;
size = 0;
appear = false;
crawler_damage = 10;
xpoint = _x;
this.onEnterFrame = function () {
if (_root.lose == false) {
if (appear == false) {
_root.enemies++;
appear = true;
}
if (side == "Left") {
trace("LEFT");
_x = (_x - spx);
_root.orb_id++;
size = Math.random() * 30;
_root.attachMovie("orbs", "orbs" + _root.orb_id, _root.getNextHighestDepth(), {_x:this._x + 34, _y:this._y + (Math.random() * 14), _width:size, _height:size});
this._xscale = -100;
}
if (side == "Right") {
trace("RIGHT");
_x = (_x + spx);
_root.orb_id++;
size = Math.random() * 30;
_root.attachMovie("orbs", "orbs" + _root.orb_id, _root.getNextHighestDepth(), {_x:this._x - 34, _y:this._y + (Math.random() * 14), _width:size, _height:size});
this._xscale = 100;
}
if (((this.hitbox.hitTest(_root.crawler.hitbox) && (_root.crawler.hitted == false)) && (_root.crawler.inmune == false)) && (_root.crawler.combo3 == false)) {
_root.kick2.start(0, 1);
_root.crawler.hitted = true;
_root.crawler.grv = 10;
_root.crawler.spy = _root.crawler.spy - _root.crawler.grv;
_root.crawler.grv = 2;
_root.health = _root.health - crawler_damage;
if (this._xscale == 100) {
_root.crawler.side_empuje = "right";
}
if (this._xscale == -100) {
_root.crawler.side_empuje = "left";
}
}
if (this._x < (this.xpoint - 1000)) {
_root.enemies--;
this.removeMovieClip();
}
if (this._x > (this.xpoint + 1000)) {
_root.enemies--;
this.removeMovieClip();
}
}
if ((_root.level == 18) && (_root.map_changer._currentframe >= 28)) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
};
Symbol 123 MovieClip [sheebee] Frame 2
stop();
Symbol 142 MovieClip [taros] Frame 1
stop();
appear = false;
spx = (Math.random() * 3) + 2;
spy = 0;
jump = false;
grv = 2;
kicked = false;
size = 0;
bound_point_x = 26;
bound_point_x2 = 26;
bound_point_y = 27;
bound_point_y_max = 11;
jumping = false;
health = 600;
digits = 0;
digit1 = "";
digit2 = "";
digit3 = "";
damage1 = 20;
damage2 = 50;
scored = 0;
combo = false;
combo3 = false;
kick_jump = false;
death = false;
crawler_damage = 20;
anim_appear = false;
deathframes = 108;
this.onEnterFrame = function () {
_y = (_y + spy);
if (this._y > 300) {
health = 0;
}
if ((this._x - 10) < (_root.limitbox._x - 304.9)) {
this._x = (_root.limitbox._x - 304.9) + 10;
} else if ((this._x + 10) > (_root.limitbox._x + 264)) {
this._x = (_root.limitbox._x + 264) - 10;
}
if ((this.detection_box.hitTest(_root.crawler) && (anim_appear == false)) && (_root.crawler.death == false)) {
this.play();
anim_appear = true;
_root.crawler.sidescroll = false;
_root.enemies++;
}
if ((anim_appear == true) && (_currentframe > 90)) {
grv = 10;
spy = spy - grv;
grv = 2;
appear = true;
anim_appear = false;
}
if (((appear == true) && (_currentframe >= 95)) && (death == false)) {
if (health > 0) {
if ((_root.crawler._x < _x) && (kicked == false)) {
this.gotoAndStop("walking");
_xscale = -100;
this._x = this._x - spx;
}
if ((_root.crawler._x > _x) && (kicked == false)) {
this.gotoAndStop("walking");
_xscale = 100;
this._x = this._x + spx;
}
if ((jumping == true) && (jump == false)) {
grv = 20;
spy = spy - grv;
jumping = false;
jump = true;
grv = 2;
}
if (jump == true) {
spy = spy + grv;
}
((spy > 12) ? ((spy = 12)) : null);
((spy < -20) ? ((spy = -20)) : null);
if (((_root.plataforms.hitTest(_x, _y + 12, true) && (jump == true)) || (_root.plataforms.hitTest(_x - 11, _y + 12, true) && (jump == true))) || (_root.plataforms.hitTest(_x + 11, _y + 12, true) && (jump == true))) {
jump = false;
kicked = false;
combo = false;
combo3 = false;
kick_jump = false;
spy = 0;
}
if ((_root.plataforms.hitTest(_x, _y + 12, true) || (_root.plataforms.hitTest(_x - 12, _y + 12, true))) || (_root.plataforms.hitTest(_x + 12, _y + 12, true))) {
_y = (_y - 5);
}
if (((((_root.plataforms.hitTest((_x + bound_point_x) + 4, _y, true) || (_root.plataforms.hitTest((_x + bound_point_x) + 4, (_y + bound_point_xy) - 4, true))) || (_root.plataforms.hitTest((_x + bound_point_x) + 4, (_y - bound_point_xy) + 4, true))) || (_root.jump_plat.hitTest((_x + bound_point_x) + 4, _y, true))) || (_root.jump_plat.hitTest((_x + bound_point_x) + 4, (_y + bound_point_xy) - 4, true))) || (_root.jump_plat.hitTest((_x + bound_point_x) + 4, (_y - bound_point_xy) + 4, true))) {
if (combo == true) {
_x = (_x - 3);
}
if (combo3 == true) {
_x = (_x - 6);
}
if (kick_jump == true) {
_x = (_x - 10);
}
combo = false;
combo3 = false;
kick_jump = false;
jumping = true;
jump = false;
kicked = false;
_x = (_x - spx);
} else if (((((_root.plataforms.hitTest((_x - bound_point_x) - 4, _y, true) || (_root.plataforms.hitTest((_x - bound_point_x) - 4, (_y + bound_point_xy) - 4, true))) || (_root.plataforms.hitTest((_x - bound_point_x) - 4, (_y + bound_point_xy) - 4, true))) || (_root.jump_plat.hitTest((_x - bound_point_x) - 4, _y, true))) || (_root.jump_plat.hitTest((_x - bound_point_x) - 4, (_y + bound_point_xy) - 4, true))) || (_root.jump_plat.hitTest((_x - bound_point_x) - 4, (_y + bound_point_xy) - 4, true))) {
if (combo == true) {
_x = (_x + 3);
}
if (combo3 == true) {
_x = (_x + 6);
}
if (kick_jump == true) {
_x = (_x + 10);
}
combo = false;
combo3 = false;
kick_jump = false;
jumping = true;
jump = false;
kicked = false;
_x = (_x + spx);
}
if (_root.plataforms.hitTest(_x - 23, _y - 25, true) && (kicked == false)) {
health = health - 400;
kicked = true;
}
if ((_root.plataforms.hitTest(_x, _y - bound_point_y, true) || (_root.plataforms.hitTest((_x - bound_point_x) + 10, _y - bound_point_y, true))) || (_root.plataforms.hitTest((_x + bound_point_x) - 10, _y - bound_point_y, true))) {
spy = 0;
_y = (_y + 5);
jump = true;
}
if ((((!_root.plataforms.hitTest(_x - bound_point_x, _y + bound_point_y, true)) && (!_root.plataforms.hitTest(_x + bound_point_x, _y + bound_point_y, true))) && (!_root.plataforms.hitTest(_x, _y + bound_point_y, true))) && (jump == false)) {
jump = true;
}
if (((_root.crawler.kick_anim.kick_box.hitTest(this) && (kicked == false)) && (_xscale == 100)) || ((_root.crawler.kick_box.hitTest(this) && (kicked == false)) && (_xscale == 100))) {
this.gotoAndStop("kicked");
_root.combo++;
if (_root.crawler.combo3 == false) {
combo = true;
combo3 = false;
kick_jump = false;
kicked = true;
grv = 4;
spy = spy - grv;
grv = 2;
health = health - damage1;
_root.kick2.start(0.2, 1);
}
if (_root.crawler.combo3 == true) {
combo3 = true;
combo = false;
kick_jump = false;
kicked = true;
grv = 20;
spy = spy - grv;
grv = 2;
health = health - damage2;
_root.kick.start(0.2, 1);
}
if (_root.crawler.kick_jump == true) {
combo = false;
combo3 = false;
kick_jump = true;
kicked = true;
grv = 20;
spy = spy - grv;
grv = 2;
health = health - damage2;
_root.kick2.start(0.2, 1);
}
if (_root.crawler.combo1 == true) {
scored = Math.round((Math.random() * 9) + 1);
_root.score = _root.score + scored;
}
if (_root.crawler.combo2 == true) {
scored = Math.round((Math.random() * 60) + 30);
_root.score = _root.score + scored;
}
if (_root.crawler.combo3 == true) {
scored = Math.round((Math.random() * 100) + 61);
_root.score = _root.score + scored;
}
if (_root.crawler.kick_jump == true) {
scored = Math.round((Math.random() * 161) + 40);
_root.score = _root.score + scored;
}
if (scored <= 9) {
digits = String(scored);
digit1 = digits.charAt(0);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
}
if ((scored > 9) && (scored <= 99)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
}
if ((scored > 99) && (scored <= 999)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
digit3 = digits.charAt(2);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 0, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit3) + 1);
}
}
if (((_root.crawler.kick_anim.kick_box.hitTest(this) && (kicked == false)) && (_xscale == -100)) || ((_root.crawler.kick_box.hitTest(this) && (kicked == false)) && (_xscale == -100))) {
this.gotoAndStop("kicked");
_root.combo++;
if (_root.crawler.combo3 == false) {
combo = true;
combo3 = false;
kick_jump = false;
kicked = true;
grv = 4;
spy = spy - grv;
grv = 2;
health = health - damage1;
_root.kick2.start(0.2, 1);
}
if (_root.crawler.combo3 == true) {
combo3 = true;
combo = false;
kick_jump = false;
kicked = true;
grv = 20;
spy = spy - grv;
grv = 2;
health = health - damage2;
_root.kick.start(0.2, 1);
}
if (_root.crawler.kick_jump == true) {
combo = false;
combo3 = false;
kick_jump = true;
kicked = true;
grv = 20;
spy = spy - grv;
grv = 2;
health = health - damage2;
_root.kick2.start(0.2, 1);
}
if (_root.crawler.combo1 == true) {
scored = Math.round((Math.random() * 9) + 1);
_root.score = _root.score + scored;
}
if (_root.crawler.combo2 == true) {
scored = Math.round((Math.random() * 60) + 30);
_root.score = _root.score + scored;
}
if (_root.crawler.combo3 == true) {
scored = Math.round((Math.random() * 100) + 61);
_root.score = _root.score + scored;
}
if (_root.crawler.kick_jump == true) {
scored = Math.round((Math.random() * 161) + 40);
_root.score = _root.score + scored;
}
if (scored <= 9) {
digits = String(scored);
digit1 = digits.charAt(0);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
}
if ((scored > 9) && (scored <= 99)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
}
if ((scored > 99) && (scored <= 999)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
digit3 = digits.charAt(2);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 0, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit3) + 1);
}
}
if ((((kicked == true) && (_xscale == 100)) && (!_root.plataforms.hitTest((_x - bound_point_x) - 4, _y, true))) || (((kicked == true) && (_xscale == 100)) && (!_root.plataforms.hitTest((_x - bound_point_x) - 4, (_y + bound_point_xy) - 4, true)))) {
if (combo == true) {
_x = (_x - 3);
}
if (combo3 == true) {
_x = (_x - 6);
}
if (kick_jump == true) {
_x = (_x - 10);
}
} else if ((((kicked == true) && (_xscale == -100)) && (!_root.plataforms.hitTest((_x + bound_point_x) + 4, _y, true))) || (((kicked == true) && (_xscale == -100)) && (!_root.plataforms.hitTest((_x + bound_point_x) + 4, (_y + bound_point_xy) - 4, true)))) {
if (combo == true) {
_x = (_x + 3);
}
if (combo3 == true) {
_x = (_x + 6);
}
if (kick_jump == true) {
_x = (_x + 10);
}
}
if ((((this.hitTest(_root.crawler.hitbox) && (_root.crawler.hitted == false)) && (_root.crawler.inmune == false)) && (_root.crawler.combo3 == false)) && (kicked == false)) {
_root.kick2.start(0.2, 1);
_root.crawler.hitted = true;
_root.crawler.grv = 10;
_root.crawler.spy = _root.crawler.spy - _root.crawler.grv;
_root.crawler.grv = 2;
_root.health = _root.health - crawler_damage;
if (this._xscale == 100) {
_root.crawler.side_empuje = "right";
}
if (this._xscale == -100) {
_root.crawler.side_empuje = "left";
}
}
if (kicked == true) {
red = new Color(this);
red.setTransform(_root.red);
if (_root.crawler.combo1 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 30;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 20)) - 20, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
_root.plataformsx.swapDepths(_root.getNextHighestDepth());
i++;
}
}
if (_root.crawler.combo2 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 30;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 20)) - 20, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
_root.plataformsx.swapDepths(_root.getNextHighestDepth());
i++;
}
}
if (_root.crawler.combo3 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 20)) - 20, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
_root.plataformsx.swapDepths(_root.getNextHighestDepth());
i++;
}
}
} else {
normal = new Color(this);
normal.setTransform(_root.normal);
}
}
if (health <= 0) {
grv = 20;
spy = spy - grv;
grv = 2;
gotoAndPlay ("death");
_root.enemies--;
death = true;
}
}
if (death == true) {
if (_currentframe <= deathframes) {
play();
if (_xscale == -100) {
_x = (_x + 20);
}
if (_xscale == 100) {
_x = (_x - 20);
}
i = 1;
while (i < 10) {
_root.orb_id++;
size = Math.random() * 30;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
i++;
}
}
}
if ((_root.level == 18) && (_root.map_changer._currentframe >= 28)) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
};
Symbol 142 MovieClip [taros] Frame 88
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("rock4", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("rock3", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("rock2", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("rock1", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.crank.start(0, 1);
Symbol 142 MovieClip [taros] Frame 89
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("rock4", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("rock3", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("rock2", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.hoja_id++;
size = Math.random() * 30;
_root.attachMovie("rock1", "hoja" + _root.hoja_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.orb_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
Symbol 142 MovieClip [taros] Frame 120
this.removeMovieClip();
Symbol 148 MovieClip [coin] Frame 1
stop();
scored = 0;
taken = false;
this.onEnterFrame = function () {
if ((_root.crawler.hitTest(this.coinbox) && (taken == false)) && (_root.crawler.death == false)) {
scored = 10;
_root.score = _root.score + scored;
_root.coin1.start(0.2, 1);
if (scored <= 9) {
digits = String(scored);
digit1 = digits.charAt(0);
_root.digit_id++;
_root.attachMovie("coindigit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
}
if ((scored > 9) && (scored <= 99)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
_root.digit_id++;
_root.attachMovie("coindigit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 15, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("coindigit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 15, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
}
if ((scored > 99) && (scored <= 999)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
digit3 = digits.charAt(2);
_root.digit_id++;
_root.attachMovie("coindigit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("coindigit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 0, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
_root.digit_id++;
_root.attachMovie("coindigit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit3) + 1);
}
play();
taken = true;
i = 1;
while (i < 5) {
_root.orb_id++;
size = Math.random() * 30;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
i++;
}
}
if (_root.crawler.hitTest(this.coinbox)) {
}
if (_root.map_changer._currentframe == 10) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
};
Symbol 148 MovieClip [coin] Frame 9
this.removeMovieClip();
stop();
Symbol 149 MovieClip [coin_move] Frame 1
stop();
scored = 0;
taken = false;
grv = 2;
spy = 0;
jump = false;
side = Math.round((Math.random() * 1.4) + 0.6);
this.onEnterFrame = function () {
this._y = this._y + spy;
if (jump == false) {
grv = (Math.random() * 15) + 10;
spy = spy - grv;
grv = 2;
jump = true;
} else if (jump == true) {
spy = spy + grv;
}
if (side == 1) {
this._x = this._x - (Math.random() * 6);
}
if (side == 2) {
this._x = this._x + (Math.random() * 6);
}
((spy > 9) ? ((spy = 9)) : null);
((spy < -25) ? ((spy = -25)) : null);
if ((_root.crawler.hitTest(this.coinbox) && (taken == false)) && (_root.crawler.death == false)) {
scored = 10;
_root.score = _root.score + scored;
_root.coin1.start(0.2, 1);
if (scored <= 9) {
digits = String(scored);
digit1 = digits.charAt(0);
_root.digit_id++;
_root.attachMovie("coindigit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
}
if ((scored > 9) && (scored <= 99)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
_root.digit_id++;
_root.attachMovie("coindigit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 15, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("coindigit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 15, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
}
if ((scored > 99) && (scored <= 999)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
digit3 = digits.charAt(2);
_root.digit_id++;
_root.attachMovie("coindigit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("coindigit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 0, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
_root.digit_id++;
_root.attachMovie("coindigit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit3) + 1);
}
play();
taken = true;
i = 1;
while (i < 5) {
_root.orb_id++;
size = Math.random() * 30;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
i++;
}
}
if (_root.crawler.hitTest(this.coinbox)) {
}
if (_root.map_changer._currentframe >= 28) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
if (this._y > 400) {
this.removeMovieClip();
}
};
Symbol 149 MovieClip [coin_move] Frame 9
this.removeMovieClip();
stop();
Symbol 170 MovieClip Frame 1
stop();
Symbol 171 MovieClip [coindigit] Frame 1
spy = 0;
grv = 2;
jump = false;
side = "";
this.onEnterFrame = function () {
_y = (_y + spy);
if (jump == false) {
grv = 20;
spy = spy - grv;
grv = 2;
jump = true;
if (_root.crawler._xscale == -100) {
side = "left";
}
if (_root.crawler._xscale == 100) {
side = "right";
}
}
if (jump == true) {
spy = spy + grv;
if (side == "left") {
_x = (_x + 5);
}
if (side == "right") {
_x = (_x - 5);
}
}
if (spy < -29) {
spy = -29;
}
};
Symbol 171 MovieClip [coindigit] Frame 38
this.removeMovieClip();
Symbol 174 MovieClip [1up] Frame 1
stop();
taken = false;
this.onEnterFrame = function () {
if (_root.crawler.hitTest(this) && (taken == false)) {
_root.lifes++;
_root.redorbs.start(0, 1);
play();
i = 1;
while (i < 9) {
_root.rock_id++;
size = Math.random() * 50;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
i++;
}
taken = true;
}
if ((_root.level == 18) && (_root.map_changer._currentframe >= 28)) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
};
Symbol 174 MovieClip [1up] Frame 10
stop();
this.removeMovieClip();
Symbol 179 MovieClip [redorb] Frame 1
stop();
scored = 0;
taken = false;
this.onEnterFrame = function () {
if ((_root.crawler.hitTest(this) && (taken == false)) && (_root.crawler.death == false)) {
scored = 200;
_root.score = _root.score + scored;
_root.redorb++;
_root.redorbs.start(0, 1);
if (scored <= 9) {
digits = String(scored);
digit1 = digits.charAt(0);
_root.digit_id++;
_root.attachMovie("coindigit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
}
if ((scored > 9) && (scored <= 99)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
_root.digit_id++;
_root.attachMovie("coindigit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 15, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("coindigit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 15, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
}
if ((scored > 99) && (scored <= 999)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
digit3 = digits.charAt(2);
_root.digit_id++;
_root.attachMovie("coindigit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("coindigit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 0, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
_root.digit_id++;
_root.attachMovie("coindigit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit3) + 1);
}
play();
i = 1;
while (i < 9) {
_root.rock_id++;
size = Math.random() * 50;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
i++;
}
taken = true;
}
if (_root.map_changer._currentframe == 10) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
};
Symbol 179 MovieClip [redorb] Frame 10
this.removeMovieClip();
stop();
Symbol 180 MovieClip [ruby_move] Frame 1
stop();
scored = 0;
taken = false;
grv = 2;
spy = 0;
jump = false;
side = Math.round((Math.random() * 1.4) + 0.6);
this.onEnterFrame = function () {
this._y = this._y + spy;
if (jump == false) {
grv = (Math.random() * 15) + 10;
spy = spy - grv;
grv = 2;
jump = true;
} else if (jump == true) {
spy = spy + grv;
}
if (side == 1) {
this._x = this._x - (Math.random() * 6);
}
if (side == 2) {
this._x = this._x + (Math.random() * 6);
}
((spy > 9) ? ((spy = 9)) : null);
((spy < -25) ? ((spy = -25)) : null);
if ((_root.crawler.hitTest(this) && (taken == false)) && (_root.crawler.death == false)) {
scored = 200;
_root.score = _root.score + scored;
_root.redorb++;
_root.redorbs.start(0, 1);
if (scored <= 9) {
digits = String(scored);
digit1 = digits.charAt(0);
_root.digit_id++;
_root.attachMovie("coindigit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
}
if ((scored > 9) && (scored <= 99)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
_root.digit_id++;
_root.attachMovie("coindigit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 15, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("coindigit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 15, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
}
if ((scored > 99) && (scored <= 999)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
digit3 = digits.charAt(2);
_root.digit_id++;
_root.attachMovie("coindigit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("coindigit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 0, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
_root.digit_id++;
_root.attachMovie("coindigit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit3) + 1);
}
play();
i = 1;
while (i < 9) {
_root.rock_id++;
size = Math.random() * 50;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
i++;
}
taken = true;
}
if (_root.map_changer._currentframe == 10) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
if (this._y > 400) {
this.removeMovieClip();
}
};
Symbol 180 MovieClip [ruby_move] Frame 10
this.removeMovieClip();
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 202 MovieClip [digitshit] Frame 1
spy = 0;
grv = 2;
jump = false;
side = "";
this.onEnterFrame = function () {
_y = (_y + spy);
if (jump == false) {
grv = 20;
spy = spy - grv;
grv = 2;
jump = true;
if (_root.crawler._xscale == -100) {
side = "left";
}
if (_root.crawler._xscale == 100) {
side = "right";
}
}
if (jump == true) {
spy = spy + grv;
if (side == "left") {
_x = (_x + 5);
}
if (side == "right") {
_x = (_x - 5);
}
}
if (spy < -29) {
spy = -29;
}
};
_root.rock_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
Symbol 202 MovieClip [digitshit] Frame 2
_root.rock_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
Symbol 202 MovieClip [digitshit] Frame 37
spy = 0;
grv = 2;
jump = false;
this.onEnterFrame = function () {
_y = (_y + spy);
if (jump == false) {
grv = 20;
spy = spy - grv;
grv = 2;
jump = true;
}
if (jump == true) {
spy = spy + grv;
if (_root.crawler._xscale == -100) {
_x = (_x + 20);
}
}
if (spy < -29) {
spy = -29;
}
};
this.removeMovieClip();
Symbol 205 MovieClip [hearth] Frame 20
this.removeMovieClip();
Symbol 206 MovieClip [hitdigit] Frame 1
stop();
Symbol 209 MovieClip [hoja] Frame 20
this.removeMovieClip();
Symbol 212 MovieClip [orb_blood] Frame 10
this.removeMovieClip();
Symbol 215 MovieClip [orb2] Frame 10
stop();
this.removeMovieClip();
Symbol 216 MovieClip [orbs] Frame 16
stop();
this.removeMovieClip();
Symbol 219 MovieClip [rock1] Frame 10
this.removeMovieClip();
Symbol 222 MovieClip [rock2] Frame 10
this.removeMovieClip();
Symbol 225 MovieClip [rock3] Frame 10
this.removeMovieClip();
Symbol 228 MovieClip [rock4] Frame 10
this.removeMovieClip();
Symbol 247 Button
on (release) {
getURL ("http://logiccollisiongames.com/", _blank);
}
Symbol 260 Button
on (release) {
getURL ("http://logiccollisiongames.com/", _blank);
}
Symbol 264 Button
on (release) {
_parent.gotoAndPlay("instructions");
}
Symbol 268 Button
on (release) {
_parent.gotoAndPlay("game");
}
Instance of Symbol 272 MovieClip in Symbol 273 MovieClip Frame 1
on (release) {
_root.gotoAndStop("viewhighscores");
}
Symbol 302 MovieClip Frame 1
stop();
Symbol 334 MovieClip Frame 2
_root.kick_nothing.start(0, 1);
Symbol 334 MovieClip Frame 9
if ((_root.crawler.combo2 == false) && (_root.crawler.kick == true)) {
_root.crawler.kick = false;
_root.crawler.combo1 = false;
_root.crawler.gotoAndStop("crawler");
}
Symbol 334 MovieClip Frame 10
_root.kick_nothing2.start(0, 1);
Symbol 334 MovieClip Frame 17
if ((_root.crawler.combo3 == false) && (_root.crawler.kick == true)) {
_root.crawler.kick = false;
_root.crawler.combo2 == false;
_root.crawler.gotoAndStop("crawler");
}
Symbol 334 MovieClip Frame 22
_root.wosh.start(0, 1);
Symbol 334 MovieClip Frame 37
_root.crawler.gotoAndStop("crawler");
_root.crawler.combo3 = false;
_root.crawler.kick = false;
Symbol 353 MovieClip Frame 1
stop();
_root.crawler.combo3 = false;
Symbol 353 MovieClip Frame 2
stop();
Symbol 353 MovieClip Frame 3
_root.kick_nothing.start(0, 1);
Symbol 353 MovieClip Frame 5
combo1 = true;
Symbol 367 MovieClip Frame 37
_root.crawler.gotoAndStop("crawler");
_root.crawler.combo3 = false;
_root.crawler.kick = false;
Symbol 368 MovieClip Frame 1
stop();
_root.crawler.combo3 = false;
Symbol 368 MovieClip Frame 2
stop();
Symbol 368 MovieClip Frame 3
_root.kick_nothing.start(0, 1);
Symbol 368 MovieClip Frame 5
combo1 = true;
Symbol 371 Button
on (release) {
_parent.play();
}
Symbol 374 MovieClip Frame 2
_root.music3.start(0, 99999);
_root.music3.setVolume(30);
Symbol 374 MovieClip Frame 339
stop();
Instance of Symbol 353 MovieClip "crawler" in Symbol 374 MovieClip Frame 376
onClipEvent (load) {
spx = 6;
spy = 0;
grv = 2;
bound_point_y = 22.5;
bound_point_y_max = 28;
bound_point_x = 12;
bound_point_xy = 12;
sidescroll = false;
bloqueoleft = false;
bloqueoright = false;
kick = false;
combo1 = false;
combo2 = false;
combo3 = false;
evento = false;
sp_land = spy;
jump = false;
fall = false;
kick_button = false;
hitted = false;
side_empuje = "";
sp_empuje = 5;
death = false;
inmune = false;
inmune_fps = 100;
velocidad_combo3 = 30;
endofmap = false;
limit = false;
jumping = true;
}
onClipEvent (enterFrame) {
_y = (_y + spy);
if (((jumping == true) && (jump == false)) && (fall == false)) {
grv = 25;
spy = spy - grv;
if (kick_jump == false) {
this.gotoAndStop("jump");
}
jump = true;
grv = 2;
jumping = false;
}
if (jump == true) {
spy = spy + grv;
}
if ((jump == true) && (fall == false)) {
if ((spy > 0) && (spy)) {
fall == true;
if (kick_jump == false) {
this.gotoAndStop("fall");
}
}
}
((spy > 15) ? ((spy = 15)) : null);
((spy < -20) ? ((spy = -20)) : null);
if (this._y > 92.8) {
this._y = 91;
jump = false;
kick = false;
fall = false;
spy = 0;
kick_jump = false;
hitted = false;
jumping = true;
}
}
Instance of Symbol 353 MovieClip "crawler" in Symbol 374 MovieClip Frame 376
onClipEvent (load) {
spx = 6;
spy = 0;
grv = 2;
bound_point_y = 22.5;
bound_point_y_max = 28;
bound_point_x = 12;
bound_point_xy = 12;
sidescroll = false;
bloqueoleft = false;
bloqueoright = false;
kick = false;
combo1 = false;
combo2 = false;
combo3 = false;
evento = false;
sp_land = spy;
jump = false;
fall = false;
kick_button = false;
hitted = false;
side_empuje = "";
sp_empuje = 5;
death = false;
inmune = false;
inmune_fps = 100;
velocidad_combo3 = 30;
endofmap = false;
limit = false;
jumping = true;
}
onClipEvent (enterFrame) {
_y = (_y + spy);
if (((jumping == true) && (jump == false)) && (fall == false)) {
grv = 25;
spy = spy - grv;
if (kick_jump == false) {
this.gotoAndStop("kickjump");
}
jump = true;
grv = 2;
jumping = false;
}
if (jump == true) {
spy = spy + grv;
}
if ((jump == true) && (fall == false)) {
if ((spy > 0) && (spy)) {
fall == true;
if (kick_jump == false) {
this.gotoAndStop("kickjump");
}
}
}
((spy > 15) ? ((spy = 15)) : null);
((spy < -20) ? ((spy = -20)) : null);
if (this._y > 92.8) {
this._y = 91;
jump = false;
kick = false;
fall = false;
spy = 0;
kick_jump = false;
hitted = false;
jumping = true;
}
}
Instance of Symbol 368 MovieClip "crawler" in Symbol 374 MovieClip Frame 376
onClipEvent (load) {
spx = 6;
spy = 0;
grv = 2;
bound_point_y = 22.5;
bound_point_y_max = 28;
bound_point_x = 12;
bound_point_xy = 12;
sidescroll = false;
bloqueoleft = false;
bloqueoright = false;
kick = false;
combo1 = false;
combo2 = false;
combo3 = false;
evento = false;
sp_land = spy;
jump = false;
fall = false;
kick_button = false;
hitted = false;
side_empuje = "";
sp_empuje = 5;
death = false;
inmune = false;
inmune_fps = 100;
velocidad_combo3 = 30;
endofmap = false;
limit = false;
jumping = true;
}
onClipEvent (enterFrame) {
this.gotoAndStop("kick1");
}
Instance of Symbol 353 MovieClip "crawler" in Symbol 374 MovieClip Frame 376
onClipEvent (load) {
spx = 6;
spy = 0;
grv = 2;
bound_point_y = 22.5;
bound_point_y_max = 28;
bound_point_x = 12;
bound_point_xy = 12;
sidescroll = false;
bloqueoleft = false;
bloqueoright = false;
kick = false;
combo1 = false;
combo2 = false;
combo3 = false;
evento = false;
sp_land = spy;
jump = false;
fall = false;
kick_button = false;
hitted = false;
side_empuje = "";
sp_empuje = 5;
death = false;
inmune = false;
inmune_fps = 100;
velocidad_combo3 = 30;
endofmap = false;
limit = false;
jumping = true;
side = "left";
}
onClipEvent (enterFrame) {
this.gotoAndStop("walking");
if (_x < -39.8) {
side = "right";
}
if (_x > 119.7) {
side = "left";
}
if (side == "left") {
_x = (_x - spx);
_xscale = 100;
}
if (side == "right") {
_x = (_x + spx);
_xscale = -100;
}
}
Instance of Symbol 353 MovieClip "crawler" in Symbol 374 MovieClip Frame 377
onClipEvent (load) {
spx = 6;
spy = 0;
grv = 2;
bound_point_y = 22.5;
bound_point_y_max = 28;
bound_point_x = 12;
bound_point_xy = 12;
sidescroll = false;
bloqueoleft = false;
bloqueoright = false;
kick = false;
combo1 = false;
combo2 = false;
combo3 = false;
evento = false;
sp_land = spy;
jump = false;
fall = false;
kick_button = false;
hitted = false;
side_empuje = "";
sp_empuje = 5;
death = false;
inmune = false;
inmune_fps = 100;
velocidad_combo3 = 30;
endofmap = false;
limit = false;
jumping = true;
}
onClipEvent (enterFrame) {
_y = (_y + spy);
if (((jumping == true) && (jump == false)) && (fall == false)) {
grv = 25;
spy = spy - grv;
if (kick_jump == false) {
this.gotoAndStop("jump");
}
jump = true;
grv = 2;
jumping = false;
}
if (jump == true) {
spy = spy + grv;
}
if ((jump == true) && (fall == false)) {
if ((spy > 0) && (spy)) {
fall == true;
if (kick_jump == false) {
this.gotoAndStop("fall");
}
}
}
((spy > 15) ? ((spy = 15)) : null);
((spy < -20) ? ((spy = -20)) : null);
if (this._y > 92.8) {
this._y = 91;
jump = false;
kick = false;
fall = false;
spy = 0;
kick_jump = false;
hitted = false;
jumping = true;
}
}
Instance of Symbol 353 MovieClip "crawler" in Symbol 374 MovieClip Frame 377
onClipEvent (load) {
spx = 6;
spy = 0;
grv = 2;
bound_point_y = 22.5;
bound_point_y_max = 28;
bound_point_x = 12;
bound_point_xy = 12;
sidescroll = false;
bloqueoleft = false;
bloqueoright = false;
kick = false;
combo1 = false;
combo2 = false;
combo3 = false;
evento = false;
sp_land = spy;
jump = false;
fall = false;
kick_button = false;
hitted = false;
side_empuje = "";
sp_empuje = 5;
death = false;
inmune = false;
inmune_fps = 100;
velocidad_combo3 = 30;
endofmap = false;
limit = false;
jumping = true;
}
onClipEvent (enterFrame) {
_y = (_y + spy);
if (((jumping == true) && (jump == false)) && (fall == false)) {
grv = 25;
spy = spy - grv;
if (kick_jump == false) {
this.gotoAndStop("kickjump");
}
jump = true;
grv = 2;
jumping = false;
}
if (jump == true) {
spy = spy + grv;
}
if ((jump == true) && (fall == false)) {
if ((spy > 0) && (spy)) {
fall == true;
if (kick_jump == false) {
this.gotoAndStop("kickjump");
}
}
}
((spy > 15) ? ((spy = 15)) : null);
((spy < -20) ? ((spy = -20)) : null);
if (this._y > 92.8) {
this._y = 91;
jump = false;
kick = false;
fall = false;
spy = 0;
kick_jump = false;
hitted = false;
jumping = true;
}
}
Instance of Symbol 368 MovieClip "crawler" in Symbol 374 MovieClip Frame 377
onClipEvent (load) {
spx = 6;
spy = 0;
grv = 2;
bound_point_y = 22.5;
bound_point_y_max = 28;
bound_point_x = 12;
bound_point_xy = 12;
sidescroll = false;
bloqueoleft = false;
bloqueoright = false;
kick = false;
combo1 = false;
combo2 = false;
combo3 = false;
evento = false;
sp_land = spy;
jump = false;
fall = false;
kick_button = false;
hitted = false;
side_empuje = "";
sp_empuje = 5;
death = false;
inmune = false;
inmune_fps = 100;
velocidad_combo3 = 30;
endofmap = false;
limit = false;
jumping = true;
}
onClipEvent (enterFrame) {
this.gotoAndStop("kick1");
}
Instance of Symbol 353 MovieClip "crawler" in Symbol 374 MovieClip Frame 377
onClipEvent (load) {
spx = 6;
spy = 0;
grv = 2;
bound_point_y = 22.5;
bound_point_y_max = 28;
bound_point_x = 12;
bound_point_xy = 12;
sidescroll = false;
bloqueoleft = false;
bloqueoright = false;
kick = false;
combo1 = false;
combo2 = false;
combo3 = false;
evento = false;
sp_land = spy;
jump = false;
fall = false;
kick_button = false;
hitted = false;
side_empuje = "";
sp_empuje = 5;
death = false;
inmune = false;
inmune_fps = 100;
velocidad_combo3 = 30;
endofmap = false;
limit = false;
jumping = true;
side = "left";
}
onClipEvent (enterFrame) {
this.gotoAndStop("walking");
if (_x < -39.8) {
side = "right";
}
if (_x > 119.7) {
side = "left";
}
if (side == "left") {
_x = (_x - spx);
_xscale = 100;
}
if (side == "right") {
_x = (_x + spx);
_xscale = -100;
}
}
Symbol 374 MovieClip Frame 403
stop();
Symbol 374 MovieClip Frame 432
this.gotoAndPlay("afterinst");
Symbol 374 MovieClip Frame 433
stop();
Symbol 374 MovieClip Frame 479
stop();
_root.gotoAndStop("intro");
Symbol 402 Button
on (release) {
_root.gotoAndStop("jungle1");
}
Symbol 467 MovieClip Frame 45
stopAllSounds();
_root.music5.start(0, 2);
Symbol 467 MovieClip Frame 1404
_root.gotoAndStop("jungle1");
stop();
Symbol 473 MovieClip Frame 1
falling = false;
grv = 0.5;
spy = 0;
crawler_damage = 20;
this.onEnterFrame = function () {
_y = (_y + spy);
if ((((_root.crawler._x > ((this._x - (_width / 2)) + 5)) && (_root.crawler._x < ((this._x + (_width / 2)) - 5))) && (falling == false)) && (_root.crawler._y > this._y)) {
falling = true;
}
if (falling == true) {
spy = spy + grv;
if (this.hitTest(_root.crawler) && (_root.crawler.hitted == false)) {
_root.kick.start(0, 1);
_root.crawler.hitted = true;
_root.crawler.grv = 10;
_root.crawler.spy = _root.crawler.spy - _root.crawler.grv;
_root.crawler.grv = 2;
_root.health = _root.health - crawler_damage;
if (this._xscale == 100) {
_root.crawler.side_empuje = "right";
}
if (this._xscale == -100) {
_root.crawler.side_empuje = "left";
}
}
}
if ((_y > (_root.crawler._y + 400)) && (falling == true)) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
};
Symbol 480 MovieClip Frame 1
appear = false;
this.onEnterFrame = function () {
if ((_root.crawler.hitTest(this) && (appear == false)) && (_root.crawler.death == false)) {
_root.jabali_id++;
_root.attachMovie("jabali", "jabali" + _root.jabali_id, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root.crawler.swapDepths(_root["jabali" + _root.jabali_id]);
_root.plataformsx.swapDepths(_root["jabali" + _root.jabali_id]);
appear = true;
}
};
Symbol 482 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.crawler)) {
ai = true;
} else {
ai = false;
}
};
Symbol 507 MovieClip Frame 1
stop();
Symbol 514 MovieClip Frame 1
stop();
Symbol 521 MovieClip Frame 1
stop();
Instance of Symbol 521 MovieClip in Symbol 522 MovieClip Frame 1
onClipEvent (load) {
soundyes = true;
soundno = false;
}
on (release) {
if ((soundyes == true) & (soundno == false)) {
soundyes = false;
soundno = true;
this.gotoAndStop(2);
_root.music1.setVolume(0);
_root.kick2.setVolume(0);
trace("off");
} else if ((soundyes == false) && (soundno == true)) {
soundyes = true;
soundno = false;
this.gotoAndStop(1);
_root.music1.setVolume(30);
_root.kick2.setVolume(30);
trace("on");
}
}
Symbol 535 MovieClip Frame 173
_root.loadlevel();
Symbol 535 MovieClip Frame 194
stop();
Symbol 540 MovieClip Frame 1
stop();
Symbol 540 MovieClip Frame 20
if (_root.level != 16) {
this.gotoAndPlay(84);
}
if (lose == true) {
this.gotoAndPlay(84);
}
Symbol 540 MovieClip Frame 103
_root.loadlevel();
Symbol 552 MovieClip Frame 1
appear = false;
this.onEnterFrame = function () {
if ((_root.crawler.hitTest(this) && (appear == false)) && (_root.crawler.death == false)) {
_root.jabali_id++;
_root.attachMovie("jabaligigante", "jabali" + _root.jabali_id, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root.crawler.swapDepths(_root["jabali" + _root.jabali_id]);
_root.plataformsx.swapDepths(_root["jabali" + _root.jabali_id]);
appear = true;
}
};
Symbol 556 MovieClip Frame 1
crawler_damage = 200;
this.onEnterFrame = function () {
if ((this.hitTest(_root.crawler) && (_root.crawler.hitted == false)) && (_root.crawler.inmune == false)) {
_root.kick.start(0, 1);
_root.crawler.hitted = true;
_root.crawler.grv = 10;
_root.crawler.spy = _root.crawler.spy - _root.crawler.grv;
_root.crawler.grv = 2;
_root.health = _root.health - crawler_damage;
if (this._xscale == 100) {
_root.crawler.side_empuje = "right";
}
if (this._xscale == -100) {
_root.crawler.side_empuje = "left";
}
}
};
Symbol 558 MovieClip Frame 1
crawler_damage = 200;
this.onEnterFrame = function () {
if ((this.hitTest(_root.crawler) && (_root.crawler.hitted == false)) && (_root.crawler.inmune == false)) {
_root.kick.start(0, 1);
_root.crawler.hitted = true;
_root.crawler.grv = 10;
_root.crawler.spy = _root.crawler.spy - _root.crawler.grv;
_root.crawler.grv = 2;
_root.health = _root.health - crawler_damage;
if (this._xscale == 100) {
_root.crawler.side_empuje = "right";
}
if (this._xscale == -100) {
_root.crawler.side_empuje = "left";
}
}
};
Symbol 563 MovieClip Frame 1
evento = "off";
fps = 0;
fps_total = 400;
side = 1;
this.onEnterFrame = function () {
if ((_root.crawler.hitTest(this) && (evento == "off")) && (_root.crawler.death == false)) {
evento = "on";
}
if (((evento == "on") && (fps <= 0)) && (fps_total > 0)) {
_root.sheebee_id++;
side = Math.round((Math.random() * 0.6) + 1.4);
if (side == 1) {
_root.attachMovie("sheebee", "sheebee" + _root.sheebee_id, _root.getNextHighestDepth(), {_x:_root.limitbox._x + 400, _y:(Math.random() * 200) + 0, side:"Left"});
}
if (side == 2) {
_root.attachMovie("sheebee", "sheebee" + _root.sheebee_id, _root.getNextHighestDepth(), {_x:_root.limitbox._x - 400, _y:(Math.random() * 200) + 0, side:"Right"});
}
fps = 25;
} else if ((evento == "on") && (fps > 0)) {
fps--;
}
if (evento == "on") {
fps_total--;
}
};
Symbol 577 MovieClip Frame 1
evento = "off";
fps = 0;
fps_total = 200;
this.onEnterFrame = function () {
if (_root.lose == false) {
if ((_root.crawler.hitTest(this) && (evento == "off")) && (_root.crawler.death == false)) {
evento = "on";
}
if ((((evento == "on") && (fps <= 0)) && (fps_total > 0)) && (_root.enemies < 3)) {
_root.fly_id++;
_root.attachMovie("fly", "fly" + _root.fly_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 400)) - 400, _y:this._y - 150});
} else if ((evento == "on") && (fps > 0)) {
fps--;
}
if (evento == "on") {
fps_total--;
}
}
};
Symbol 608 MovieClip Frame 1
spx = 4;
side = "left";
side_detected = 1;
fps = 2;
crawler_damage = 500;
this.onEnterFrame = function () {
if (_root.level == 18) {
this.removeMovieClip();
}
if (fps < 0) {
side_detected = Math.round((Math.random() * 1.4) + 0.6);
fps = 100;
} else if (fps >= 0) {
fps--;
}
((side_detected == 1) ? ((side = "left")) : null);
((side_detected == 2) ? ((side = "right")) : null);
if (side == "left") {
_x = (_x - spx);
_xscale = 100;
if ((_root.crawler.hitTest(this.move_box) || (_root.crawler.hitTest(this.pelo))) || (_root.crawler.hitTest(this.move_box2))) {
if (_root.crawler.sidescroll == true) {
_root.crawler._x = _root.crawler._x - spx;
_root.crawler._root._x = _root.crawler._root._x + spx;
_root.crawler._root.centerbox._x = _root.crawler._root.centerbox._x - spx;
_root.crawler._root.limitbox._x = _root.crawler._root.limitbox._x - spx;
_root.crawler._root.score_box._x = _root.crawler._root.score_box._x - spx;
_root.crawler._root.map_changer._x = _root.crawler._root.map_changer._x - spx;
} else if (_root.crawler.sidescroll == false) {
_root.crawler._x = _root.crawler._x - spx;
}
}
} else if (side == "right") {
_x = (_x + spx);
_xscale = -100;
if ((_root.crawler.hitTest(this.move_box) || (_root.crawler.hitTest(this.pelo))) || (_root.crawler.hitTest(this.move_box2))) {
if (_root.crawler.sidescroll == true) {
_root.crawler._x = _root.crawler._x + spx;
_root.crawler._root._x = _root.crawler._root._x - spx;
_root.crawler._root.centerbox._x = _root.crawler._root.centerbox._x + spx;
_root.crawler._root.limitbox._x = _root.crawler._root.limitbox._x + spx;
_root.crawler._root.score_box._x = _root.crawler._root.score_box._x + spx;
_root.crawler._root.map_changer._x = _root.crawler._root.map_changer._x + spx;
} else if (_root.crawler.sidescroll == false) {
_root.crawler._x = _root.crawler._x + spx;
}
}
}
if (((this.hitbox.hitTest(_root.crawler.hitbox) && (_root.crawler.death == false)) && (_root.crawler.combo3 == false)) || ((this.hitbox2.hitTest(_root.crawler.hitbox) && (_root.crawler.death == false)) && (_root.crawler.combo3 == false))) {
_root.kick2.start(0.2, 1);
_root.crawler.hitted = true;
_root.crawler.grv = 10;
_root.crawler.spy = _root.crawler.spy - _root.crawler.grv;
_root.crawler.grv = 2;
_root.health = _root.health - crawler_damage;
_root.crawler.death = true;
_root.crawler.gotoAndStop("die");
if (this._xscale == 100) {
_root.crawler.side_empuje = "right";
}
if (this._xscale == -100) {
_root.crawler.side_empuje = "left";
}
}
if (_x < -1200) {
side_detected = 2;
fps = 100;
}
if (_x > 1000) {
side_detected = 1;
fps = 100;
}
};
Symbol 609 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.level == 18) {
this.removeMovieClip();
}
if ((_root.level == 7) && (_root.map_changer._currentframe == 28)) {
this.removeMovieClip();
}
};
Symbol 643 MovieClip Frame 8
_parent.gotoAndStop("stand");
Symbol 659 MovieClip Frame 1
appear = false;
spx = 4;
spy = 0;
jump = false;
grv = 2;
kicked = false;
size = 0;
bound_point_x = 16;
bound_point_xy = 12;
bound_point_y = 18;
bound_point_y_max = 20;
jumping = false;
health = 250;
digits = 0;
digit1 = "";
digit2 = "";
digit3 = "";
damage1 = 20;
damage2 = 50;
scored = 0;
combo = false;
combo3 = false;
kick_jump = false;
death = false;
crawler_damage = 20;
deathframes = 19;
this.onEnterFrame = function () {
_y = (_y + spy);
if ((this.detection_box.hitTest(_root.crawler) && (appear == false)) && (_root.crawler.death == false)) {
this.nextFrame();
appear = true;
grv = 5;
spy = spy - grv;
grv = 2;
_root.crawler.sidescroll = false;
_root.enemies++;
}
if (((appear == true) && (_currentframe >= 9)) && (death == false)) {
if (health > 0) {
if (this._y > 300) {
health = 0;
}
if ((this._x - 10) < (_root.limitbox._x - 304.9)) {
this._x = (_root.limitbox._x - 304.9) + 10;
} else if ((this._x + 10) > (_root.limitbox._x + 264)) {
this._x = (_root.limitbox._x + 264) - 10;
}
if ((_root.crawler._x < _x) && (kicked == false)) {
this.gotoAndStop("walking");
_xscale = -100;
this._x = this._x - spx;
}
if ((_root.crawler._x > _x) && (kicked == false)) {
this.gotoAndStop("walking");
_xscale = 100;
this._x = this._x + spx;
}
if ((jumping == true) && (jump == false)) {
grv = 20;
spy = spy - grv;
jumping = false;
jump = true;
grv = 2;
}
if (jump == true) {
spy = spy + grv;
}
((spy > 12) ? ((spy = 12)) : null);
((spy < -20) ? ((spy = -20)) : null);
if (((_root.plataforms.hitTest(_x, _y + 8, true) && (jump == true)) || (_root.plataforms.hitTest(_x - 9, _y + 8, true) && (jump == true))) || (_root.plataforms.hitTest(_x + 9, _y + 9, true) && (jump == true))) {
jump = false;
kicked = false;
combo = false;
combo3 = false;
kick_jump = false;
spy = 0;
}
if ((_root.plataforms.hitTest(_x, _y + 9, true) || (_root.plataforms.hitTest(_x - 10, _y + 9, true))) || (_root.plataforms.hitTest(_x + 10, _y + 10, true))) {
_y = (_y - 6);
}
if (((((_root.plataforms.hitTest((_x + bound_point_x) + 4, _y, true) || (_root.plataforms.hitTest((_x + bound_point_x) + 4, (_y + bound_point_xy) - 4, true))) || (_root.plataforms.hitTest((_x + bound_point_x) + 4, (_y - bound_point_xy) + 4, true))) || (_root.jump_plat.hitTest((_x + bound_point_x) + 4, _y, true))) || (_root.jump_plat.hitTest((_x + bound_point_x) + 4, (_y + bound_point_xy) - 4, true))) || (_root.jump_plat.hitTest((_x + bound_point_x) + 4, (_y - bound_point_xy) + 4, true))) {
if (combo == true) {
_x = (_x - 3);
}
if (combo3 == true) {
_x = (_x - 6);
}
if (kick_jump == true) {
_x = (_x - 10);
}
combo = false;
combo3 = false;
kick_jump = false;
jumping = true;
jump = false;
kicked = false;
_x = (_x - spx);
} else if (((((_root.plataforms.hitTest((_x - bound_point_x) - 4, _y, true) || (_root.plataforms.hitTest((_x - bound_point_x) - 4, (_y + bound_point_xy) - 4, true))) || (_root.plataforms.hitTest((_x - bound_point_x) - 4, (_y + bound_point_xy) - 4, true))) || (_root.jump_plat.hitTest((_x - bound_point_x) - 4, _y, true))) || (_root.jump_plat.hitTest((_x - bound_point_x) - 4, (_y + bound_point_xy) - 4, true))) || (_root.jump_plat.hitTest((_x - bound_point_x) - 4, (_y + bound_point_xy) - 4, true))) {
if (combo == true) {
_x = (_x + 3);
}
if (combo3 == true) {
_x = (_x + 6);
}
if (kick_jump == true) {
_x = (_x + 10);
}
combo = false;
combo3 = false;
kick_jump = false;
jumping = true;
jump = false;
kicked = false;
_x = (_x + spx);
}
if ((_root.plataforms.hitTest(_x, _y - bound_point_y, true) || (_root.plataforms.hitTest((_x - bound_point_x) + 10, _y - bound_point_y, true))) || (_root.plataforms.hitTest((_x + bound_point_x) - 10, _y - bound_point_y, true))) {
spy = 0;
_y = (_y + 5);
jump = true;
}
if ((((!_root.plataforms.hitTest(_x - bound_point_x, _y + bound_point_y, true)) && (!_root.plataforms.hitTest(_x + bound_point_x, _y + bound_point_y, true))) && (!_root.plataforms.hitTest(_x, _y + bound_point_y, true))) && (jump == false)) {
jump = true;
}
if (((_root.crawler.kick_anim.kick_box.hitTest(this) && (kicked == false)) && (_xscale == 100)) || ((_root.crawler.kick_box.hitTest(this) && (kicked == false)) && (_xscale == 100))) {
this.gotoAndStop("kicked");
_root.combo++;
if (_root.crawler.combo3 == false) {
combo = true;
combo3 = false;
kick_jump = false;
kicked = true;
grv = 4;
spy = spy - grv;
grv = 2;
health = health - damage1;
_root.kick2.start(0.2, 1);
}
if (_root.crawler.combo3 == true) {
combo3 = true;
combo = false;
kick_jump = false;
kicked = true;
grv = 20;
spy = spy - grv;
grv = 2;
health = health - damage2;
_root.kick.start(0.2, 1);
}
if (_root.crawler.kick_jump == true) {
combo = false;
combo3 = false;
kick_jump = true;
kicked = true;
grv = 20;
spy = spy - grv;
grv = 2;
health = health - damage2;
_root.kick2.start(0.2, 1);
}
if (_root.crawler.combo1 == true) {
scored = Math.round((Math.random() * 9) + 1);
_root.score = _root.score + scored;
}
if (_root.crawler.combo2 == true) {
scored = Math.round((Math.random() * 60) + 30);
_root.score = _root.score + scored;
}
if (_root.crawler.combo3 == true) {
scored = Math.round((Math.random() * 100) + 61);
_root.score = _root.score + scored;
}
if (_root.crawler.kick_jump == true) {
scored = Math.round((Math.random() * 161) + 40);
_root.score = _root.score + scored;
}
if (scored <= 9) {
digits = String(scored);
digit1 = digits.charAt(0);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
}
if ((scored > 9) && (scored <= 99)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
}
if ((scored > 99) && (scored <= 999)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
digit3 = digits.charAt(2);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 0, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit3) + 1);
}
}
if (((_root.crawler.kick_anim.kick_box.hitTest(this) && (kicked == false)) && (_xscale == -100)) || ((_root.crawler.kick_box.hitTest(this) && (kicked == false)) && (_xscale == -100))) {
this.gotoAndStop("kicked");
_root.combo++;
if (_root.crawler.combo3 == false) {
combo = true;
combo3 = false;
kick_jump = false;
kicked = true;
grv = 4;
spy = spy - grv;
grv = 2;
health = health - damage1;
_root.kick2.start(0.2, 1);
}
if (_root.crawler.combo3 == true) {
combo3 = true;
combo = false;
kick_jump = false;
kicked = true;
grv = 20;
spy = spy - grv;
grv = 2;
health = health - damage2;
_root.kick.start(0.2, 1);
}
if (_root.crawler.kick_jump == true) {
combo = false;
combo3 = false;
kick_jump = true;
kicked = true;
grv = 20;
spy = spy - grv;
grv = 2;
health = health - damage2;
_root.kick2.start(0.2, 1);
}
if (_root.crawler.combo1 == true) {
scored = Math.round((Math.random() * 9) + 1);
_root.score = _root.score + scored;
}
if (_root.crawler.combo2 == true) {
scored = Math.round((Math.random() * 60) + 30);
_root.score = _root.score + scored;
}
if (_root.crawler.combo3 == true) {
scored = Math.round((Math.random() * 100) + 61);
_root.score = _root.score + scored;
}
if (_root.crawler.kick_jump == true) {
scored = Math.round((Math.random() * 161) + 40);
_root.score = _root.score + scored;
}
if (scored <= 9) {
digits = String(scored);
digit1 = digits.charAt(0);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
}
if ((scored > 9) && (scored <= 99)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 20, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
}
if ((scored > 99) && (scored <= 999)) {
digits = String(scored);
digit1 = digits.charAt(0);
digit2 = digits.charAt(1);
digit3 = digits.charAt(2);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x - 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit1) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 0, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit2) + 1);
_root.digit_id++;
_root.attachMovie("digitshit", "digit" + _root.digit_id, _root.getNextHighestDepth(), {_x:this._x + 35, _y:this._y});
_root["digit" + _root.digit_id].digit.gotoAndStop(Number(digit3) + 1);
}
}
if ((((kicked == true) && (_xscale == 100)) && (!_root.plataforms.hitTest((_x - bound_point_x) - 4, _y, true))) || (((kicked == true) && (_xscale == 100)) && (!_root.plataforms.hitTest((_x - bound_point_x) - 4, (_y + bound_point_xy) - 4, true)))) {
if (combo == true) {
_x = (_x - 3);
}
if (combo3 == true) {
_x = (_x - 6);
}
if (kick_jump == true) {
_x = (_x - 10);
}
} else if ((((kicked == true) && (_xscale == -100)) && (!_root.plataforms.hitTest((_x + bound_point_x) + 4, _y, true))) || (((kicked == true) && (_xscale == -100)) && (!_root.plataforms.hitTest((_x + bound_point_x) + 4, (_y + bound_point_xy) - 4, true)))) {
if (combo == true) {
_x = (_x + 3);
}
if (combo3 == true) {
_x = (_x + 6);
}
if (kick_jump == true) {
_x = (_x + 10);
}
}
if ((((this.hitTest(_root.crawler.hitbox) && (_root.crawler.hitted == false)) && (_root.crawler.inmune == false)) && (_root.crawler.combo3 == false)) && (kicked == false)) {
_root.kick2.start(0.2, 1);
_root.crawler.hitted = true;
_root.crawler.grv = 10;
_root.crawler.spy = _root.crawler.spy - _root.crawler.grv;
_root.crawler.grv = 2;
_root.health = _root.health - crawler_damage;
if (this._xscale == 100) {
_root.crawler.side_empuje = "right";
}
if (this._xscale == -100) {
_root.crawler.side_empuje = "left";
}
}
if (kicked == true) {
red = new Color(this);
red.setTransform(_root.red);
if (_root.crawler.combo1 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 30;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 20)) - 20, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
_root.plataformsx.swapDepths(_root.getNextHighestDepth());
i++;
}
}
if (_root.crawler.combo2 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 30;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 20)) - 20, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
_root.plataformsx.swapDepths(_root.getNextHighestDepth());
i++;
}
}
if (_root.crawler.combo3 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb_blood" + _root.blood_id, _root.getNextHighestDepth(), {_x:(this._x + (Math.random() * 20)) - 20, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
_root.plataformsx.swapDepths(_root.getNextHighestDepth());
i++;
}
}
} else {
normal = new Color(this);
normal.setTransform(_root.normal);
}
}
if (health <= 0) {
grv = 20;
spy = spy - grv;
grv = 2;
gotoAndPlay ("death");
_root.enemies--;
death = true;
}
}
if (death == true) {
play();
if (_currentframe <= deathframes) {
if (_xscale == -100) {
_x = (_x + 20);
}
if (_xscale == 100) {
_x = (_x - 20);
}
i = 1;
while (i < 10) {
_root.orb_id++;
size = Math.random() * 30;
_root.attachMovie("orb2", "orb" + _root.orb_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
i++;
}
}
}
if ((_root.level == 18) && (_root.map_changer._currentframe >= 28)) {
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
};
stop();
Symbol 659 MovieClip Frame 2
_root.rock_id++;
size = Math.random() * 30;
_root.attachMovie("rock1", "rock" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.rock_id++;
size = Math.random() * 30;
_root.attachMovie("rock1", "rock" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.rock_id++;
size = Math.random() * 30;
_root.attachMovie("rock1", "rock" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.rock_id++;
size = Math.random() * 30;
_root.attachMovie("rock1", "rock" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.crank.start(0, 1);
Symbol 659 MovieClip Frame 3
_root.rock_id++;
size = Math.random() * 30;
_root.attachMovie("rock1", "rock" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.rock_id++;
size = Math.random() * 30;
_root.attachMovie("rock1", "rock" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.rock_id++;
size = Math.random() * 30;
_root.attachMovie("rock1", "rock" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.rock_id++;
size = Math.random() * 30;
_root.attachMovie("rock1", "rock" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 10)) - 10, _y:this._y + 10, _width:size, _height:size, _rotation:Math.random() * 360});
_root.rock_id++;
size = Math.random() * 30;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 30;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 30;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 30;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 30;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 30;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 10, _width:size, _height:size});
Symbol 659 MovieClip Frame 9
stop();
Symbol 659 MovieClip Frame 11
stop();
Symbol 659 MovieClip Frame 20
stop();
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
Symbol 675 MovieClip Frame 1
appear = false;
this._visible = false;
this.onEnterFrame = function () {
if ((_root.crawler.hitTest(this) && (appear == false)) && (_root.crawler.death == false)) {
_root.jabali_id++;
_root.attachMovie("rawr", "jabali" + _root.jabali_id, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root.crawler.swapDepths(_root["jabali" + _root.jabali_id]);
_root.plataformsx.swapDepths(_root["jabali" + _root.jabali_id]);
appear = true;
}
};
Symbol 684 MovieClip Frame 1
spx = 2;
side = "left";
pos_x = this._x;
movement = false;
stoped = false;
this.onEnterFrame = function () {
if ((_root.crawler.hitTest(this) && (movement == false)) && (stoped == false)) {
_root.lights.lights = "off";
movement = true;
}
if ((_root.crawler.sidescroll == false) || (_root.crawler.sidescroll == true)) {
if ((movement == true) && (_root.crawler.death == false)) {
if (this._x >= (pos_x - 1699.4)) {
side = "left";
} else if (this._x <= (pos_x - 1699.4)) {
movement = false;
stoped = true;
}
if (side == "left") {
_x = (_x - spx);
} else if (side == "right") {
_x = (_x + spx);
}
if (_root.crawler.hitTest(this)) {
if (_root.crawler.sidescroll == true) {
_root.crawler._x = _root.crawler._x - spx;
_root.crawler._root._x = _root.crawler._root._x + spx;
_root.crawler._root.centerbox._x = _root.crawler._root.centerbox._x - spx;
_root.crawler._root.limitbox._x = _root.crawler._root.limitbox._x - spx;
_root.crawler._root.score_box._x = _root.crawler._root.score_box._x - spx;
_root.crawler._root.map_changer._x = _root.crawler._root.map_changer._x - spx;
} else if (_root.crawler.sidescroll == false) {
_root.crawler._x = _root.crawler._x - spx;
}
}
}
}
};
Symbol 686 MovieClip Frame 1
spx = 2;
side = "left";
pos_x = this._x;
movement = false;
stoped = false;
this.onEnterFrame = function () {
if ((_root.crawler.hitTest(this) && (movement == false)) && (stoped == false)) {
movement = true;
}
if ((_root.crawler.sidescroll == false) || (_root.crawler.sidescroll == true)) {
if ((movement == true) && (_root.crawler.death == false)) {
if (this._x >= (pos_x - 1699.4)) {
side = "left";
} else if (this._x <= (pos_x - 1699.4)) {
movement = false;
stoped = true;
}
if (side == "left") {
_x = (_x - spx);
} else if (side == "right") {
_x = (_x + spx);
}
}
}
};
Symbol 687 MovieClip Frame 1
evento = "off";
fps = 0;
fps_total = 200;
this.onEnterFrame = function () {
if (_root.lose == false) {
if ((_root.crawler.hitTest(this) && (evento == "off")) && (_root.crawler.death == false)) {
evento = "on";
}
if ((((evento == "on") && (fps <= 0)) && (fps_total > 0)) && (_root.enemies2 < 4)) {
_root.fly_id++;
_root.attachMovie("fly2", "fly" + _root.fly_id, _root.getNextHighestDepth(), {_x:(_root.centerbox._x + (Math.random() * 600)) - 700, _y:_root.centerbox._y - 300});
} else if ((evento == "on") && (fps > 0)) {
fps--;
}
if (evento == "on") {
fps_total--;
}
}
};
Symbol 717 MovieClip Frame 13
stop();
Symbol 718 MovieClip Frame 1
spY = 0;
grv = 2;
fall = true;
crawler_damage = 30;
Symbol 718 MovieClip Frame 2
this.onEnterFrame = function () {
_y = (_y + spY);
if (fall == true) {
spY = spY + grv;
}
if (spY > 0) {
this._rotation = -90;
} else {
this._rotation = 100;
}
if (this._y > 320) {
this.gotoAndStop(3);
spY = 0;
this._y = 320;
}
if ((this.dest._currentframe >= 13) && (this._currentframe == 3)) {
this.gotoAndStop(2);
spY = 0;
grv = 35;
spY = spY - grv;
grv = 2;
}
if (((this.hitTest(_root.crawler) && (_root.crawler.hitted == false)) && (_root.crawler.death == false)) && (_root.crawler.inmune == false)) {
_root.kick.start(0, 1);
_root.crawler.hitted = true;
_root.crawler.grv = 10;
_root.crawler.spy = _root.crawler.spy - _root.crawler.grv;
_root.crawler.grv = 2;
_root.health = _root.health - crawler_damage;
if (this._xscale == 100) {
_root.crawler.side_empuje = "right";
}
if (this._xscale == -100) {
_root.crawler.side_empuje = "left";
}
}
};
stop();
Symbol 722 MovieClip Frame 1
appear = false;
this._visible = false;
this.onEnterFrame = function () {
if ((_root.crawler.hitTest(this) && (appear == false)) && (_root.crawler.death == false)) {
_root.jabali_id++;
_root.attachMovie("taros", "jabali" + _root.jabali_id, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root.crawler.swapDepths(_root["jabali" + _root.jabali_id]);
_root.plataformsx.swapDepths(_root["jabali" + _root.jabali_id]);
appear = true;
}
};
Symbol 734 MovieClip Frame 1
fall = false;
spY = 0;
fps = 40;
fp = 5;
posX = _x;
posY = _y;
Symbol 734 MovieClip Frame 2
stop();
this.onEnterFrame = function () {
if ((this.hitTest(_root.crawler) && (fall == false)) && (_root.crawler.death == false)) {
play();
} else if (((!this.hitTest(_root.crawler)) && (fall == false)) && (_root.crawler.death == false)) {
stop();
}
if (fall == true) {
spY = spY + 3;
_y = (_y + spY);
}
if ((fps > 0) && (fall == true)) {
fps--;
}
if ((fps == 0) && (fall == true)) {
fps = 40;
spY = 0;
fall = false;
this._x = posX;
this._y = posY;
}
};
Symbol 734 MovieClip Frame 34
gotoAndStop (2);
fall = true;
Symbol 738 MovieClip Frame 1
spx = 2;
side = "left";
pos_x = this._x;
movement = false;
stoped = false;
this.onEnterFrame = function () {
if (((_root.crawler.hitTest(this) && (movement == false)) && (stoped == false)) && ((!_root.enemies) > 0)) {
_root.lights.lights = "off";
movement = true;
}
if ((_root.crawler.sidescroll == false) || (_root.crawler.sidescroll == true)) {
if ((movement == true) && (_root.crawler.death == false)) {
if (this._x >= (pos_x - 686.7)) {
side = "left";
} else if (this._x <= (pos_x - 686.7)) {
movement = false;
stoped = true;
}
if (side == "left") {
_x = (_x - spx);
} else if (side == "right") {
_x = (_x + spx);
}
if (_root.crawler.hitTest(this)) {
if (_root.crawler.sidescroll == true) {
_root.crawler._x = _root.crawler._x - spx;
_root.crawler._root._x = _root.crawler._root._x + spx;
_root.crawler._root.centerbox._x = _root.crawler._root.centerbox._x - spx;
_root.crawler._root.limitbox._x = _root.crawler._root.limitbox._x - spx;
_root.crawler._root.score_box._x = _root.crawler._root.score_box._x - spx;
_root.crawler._root.map_changer._x = _root.crawler._root.map_changer._x - spx;
} else if (_root.crawler.sidescroll == false) {
_root.crawler._x = _root.crawler._x - spx;
}
}
}
}
};
Symbol 742 MovieClip Frame 1
spx = 2;
side = "left";
pos_x = this._x;
movement = false;
stoped = false;
this.onEnterFrame = function () {
if ((_root.crawler.hitTest(_root.plataforms.plat) && (movement == false)) && (stoped == false)) {
movement = true;
}
if ((_root.crawler.sidescroll == true) || (_root.crawler.sidescroll == false)) {
if ((movement == true) && (_root.crawler.death == false)) {
if (this._x >= (pos_x - 686.7)) {
side = "left";
} else if (this._x <= (pos_x - 686.7)) {
movement = false;
stoped = true;
}
if (side == "left") {
_x = (_x - spx);
} else if (side == "right") {
_x = (_x + spx);
}
}
}
};
Symbol 743 MovieClip Frame 1
spx = 2;
side = "left";
pos_x = this._x;
movement = false;
stoped = false;
this.onEnterFrame = function () {
if ((_root.crawler.hitTest(_root.plataforms.plat2) && (movement == false)) && (stoped == false)) {
movement = true;
}
if ((_root.crawler.sidescroll == true) || (_root.crawler.sidescroll == false)) {
if ((movement == true) && (_root.crawler.death == false)) {
if (this._x >= (pos_x - 686.7)) {
side = "left";
} else if (this._x <= (pos_x - 686.7)) {
movement = false;
stoped = true;
}
if (side == "left") {
_x = (_x - spx);
} else if (side == "right") {
_x = (_x + spx);
}
}
}
};
Symbol 751 MovieClip Frame 1
boss = false;
this.onEnterFrame = function () {
if ((_root.crawler.hitTest(this) && (_root.enemies <= 0)) && (boss == false)) {
_root.enemies++;
boss = true;
stopAllSounds();
}
};
Symbol 758 MovieClip Frame 1
stop();
crawler_damage = 10;
death = false;
this.onEnterFrame = function () {
if ((_parent._parent.hit == true) && (death == false)) {
if ((_parent._parent.health <= 0) && (death == false)) {
this.gotoAndPlay("death");
death = true;
}
if ((((((((this.hitTest(_root.crawler._x, _root.crawler._y, true) || (this.hitTest(_root.crawler._x + 21, _root.crawler._y + 30, true))) || (this.hitTest(_root.crawler._x - 21, _root.crawler._y + 30, true))) || (this.hitTest(_root.crawler._x + 21, _root.crawler._y - 30, true))) || (this.hitTest(_root.crawler._x + 21, _root.crawler._y + 30, true))) || (this.hitTest(_root.crawler._x + 21, _root.crawler._y, true))) || (this.hitTest(_root.crawler._x - 21, _root.crawler._y, true))) || (this.hitTest(_root.crawler._x, _root.crawler._y - 30, true))) || (this.hitTest(_root.crawler._x, _root.crawler._y + 30, true))) {
trace("hi");
if (((this.hitTest(_root.crawler.hitbox) && (_root.crawler.hitted == false)) && (_root.crawler.inmune == false)) && (_root.crawler.combo3 == false)) {
_root.kick2.start(0.2, 1);
_root.crawler.hitted = true;
_root.crawler.grv = 10;
_root.crawler.spy = _root.crawler.spy - _root.crawler.grv;
_root.crawler.grv = 2;
_root.health = _root.health - crawler_damage;
if (this._xscale == 100) {
_root.crawler.side_empuje = "right";
}
if (this._xscale == -100) {
_root.crawler.side_empuje = "left";
}
}
}
}
};
Symbol 758 MovieClip Frame 2
this._parent.orb_id++;
size = Math.random() * 20;
this._parent.attachMovie("orb2", "orb2" + this._parent.orb_id, this._parent.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
this._parent.orb_id++;
size = Math.random() * 20;
this._parent.attachMovie("orb2", "orb2" + this._parent.orb_id, this._parent.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
this._parent.orb_id++;
size = Math.random() * 20;
this._parent.attachMovie("orb2", "orb2" + this._parent.orb_id, this._parent.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
this._parent.orb_id++;
size = Math.random() * 20;
this._parent.attachMovie("orb2", "orb2" + this._parent.orb_id, this._parent.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
Symbol 758 MovieClip Frame 15
stop();
Symbol 762 MovieClip Frame 1
combo = false;
combo2 = false;
combo3 = false;
kick_jump = false;
kicked = false;
scored = 0;
digits = "";
digit1 = "";
digit2 = "";
digit3 = "";
size = 0;
fps = 0;
death = false;
stop();
this.onEnterFrame = function () {
if ((_parent._parent.hit == true) && (death == false)) {
if ((_parent._parent.health <= 0) && (death == false)) {
this.gotoAndPlay("death");
i = 1;
while (i < 4) {
_root.coin_id++;
_root.attachMovie("coin_move", "coin_move" + _root.coin_id, _root.getNextHighestDepth(), {_x:(_root.worm._x + (Math.random() * 400)) + 0, _y:_root.worm._y - 320});
i++;
}
i = 1;
while (i < 2) {
_root.coin_id++;
_root.attachMovie("ruby_move", "coin_move" + _root.coin_id, _root.getNextHighestDepth(), {_x:(_root.worm._x + (Math.random() * 400)) + 0, _y:_root.worm._y - 320});
i++;
}
death = true;
}
if ((_root.crawler.kick_anim.kick_box.hitTest(this) && (kicked == false)) || (_root.crawler.kick_box.hitTest(this) && (kicked == false))) {
this.play();
_root.kick2.start(0.2, 1);
_root.combo++;
_parent._parent.health = _parent._parent.health - 50;
if (_root.crawler.combo1 == true) {
scored = Math.round((Math.random() * 9) + 1);
_root.score = _root.score + scored;
}
if (_root.crawler.combo2 == true) {
scored = Math.round((Math.random() * 60) + 30);
_root.score = _root.score + scored;
}
if (_root.crawler.combo3 == true) {
scored = Math.round((Math.random() * 100) + 61);
_root.score = _root.score + scored;
}
if (_root.crawler.kick_jump == true) {
scored = Math.round((Math.random() * 161) + 40);
_root.score = _root.score + scored;
}
kicked = true;
fps = 10;
}
if ((kicked == true) && (fps >= 0)) {
fps--;
if (_root.crawler.combo1 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 40;
this._parent.attachMovie("orb_blood", "orb_blood" + _root.blood_id, this._parent.getNextHighestDepth(), {_x:(this._x + (Math.random() * 60)) - 30, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
i++;
}
}
if (_root.crawler.combo2 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 40;
this._parent.attachMovie("orb_blood", "orb_blood" + _root.blood_id, this._parent.getNextHighestDepth(), {_x:(this._x + (Math.random() * 60)) - 30, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
i++;
}
}
if (_root.crawler.combo3 == true) {
i = 1;
while (i < 5) {
_root.blood_id++;
size = Math.random() * 40;
this._parent.attachMovie("orb_blood", "orb_blood" + _root.blood_id, this._parent.getNextHighestDepth(), {_x:(this._x + (Math.random() * 60)) - 30, _y:(this._y + (Math.random() * 20)) - 20, _width:size, _height:size});
i++;
}
}
} else if ((kicked == true) && (fps < 0)) {
kicked = false;
fps = 10;
}
}
};
Symbol 762 MovieClip Frame 15
this.gotoAndStop(2);
Symbol 762 MovieClip Frame 16
this._parent.orb_id++;
size = Math.random() * 20;
this._parent.attachMovie("orb2", "orb2" + this._parent.orb_id, this._parent.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
this._parent.orb_id++;
size = Math.random() * 20;
this._parent.attachMovie("orb2", "orb2" + this._parent.orb_id, this._parent.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
this._parent.orb_id++;
size = Math.random() * 20;
this._parent.attachMovie("orb2", "orb2" + this._parent.orb_id, this._parent.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
this._parent.orb_id++;
size = Math.random() * 20;
this._parent.attachMovie("orb2", "orb2" + this._parent.orb_id, this._parent.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
this._parent.orb_id++;
size = Math.random() * 20;
this._parent.attachMovie("orb2", "orb2" + this._parent.orb_id, this._parent.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
this._parent.orb_id++;
size = Math.random() * 20;
this._parent.attachMovie("orb2", "orb2" + this._parent.orb_id, this._parent.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
this._parent.orb_id++;
size = Math.random() * 20;
this._parent.attachMovie("orb2", "orb2" + this._parent.orb_id, this._parent.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
this._parent.orb_id++;
size = Math.random() * 20;
this._parent.attachMovie("orb2", "orb2" + this._parent.orb_id, this._parent.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
Symbol 762 MovieClip Frame 17
this._parent.orb_id++;
size = Math.random() * 20;
this._parent.attachMovie("orb2", "orb2" + this._parent.orb_id, this._parent.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
this._parent.orb_id++;
size = Math.random() * 20;
this._parent.attachMovie("orb2", "orb2" + this._parent.orb_id, this._parent.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
this._parent.orb_id++;
size = Math.random() * 20;
this._parent.attachMovie("orb2", "orb2" + this._parent.orb_id, this._parent.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
this._parent.orb_id++;
size = Math.random() * 20;
this._parent.attachMovie("orb2", "orb2" + this._parent.orb_id, this._parent.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
Symbol 762 MovieClip Frame 30
stop();
_parent._parent.gotoAndStop("stop");
Symbol 769 MovieClip Frame 1
stop();
crawler_damage = 10;
death = false;
this.onEnterFrame = function () {
if ((_parent._parent.hit == true) && (death == false)) {
if ((_parent._parent.health <= 0) && (death == false)) {
this.gotoAndPlay("death");
death = true;
}
if ((((((((this.hitTest(_root.crawler._x, _root.crawler._y, true) || (this.hitTest(_root.crawler._x + 21, _root.crawler._y + 30, true))) || (this.hitTest(_root.crawler._x - 21, _root.crawler._y + 30, true))) || (this.hitTest(_root.crawler._x + 21, _root.crawler._y - 30, true))) || (this.hitTest(_root.crawler._x + 21, _root.crawler._y + 30, true))) || (this.hitTest(_root.crawler._x + 21, _root.crawler._y, true))) || (this.hitTest(_root.crawler._x - 21, _root.crawler._y, true))) || (this.hitTest(_root.crawler._x, _root.crawler._y - 30, true))) || (this.hitTest(_root.crawler._x, _root.crawler._y + 30, true))) {
trace("hi");
if (((this.hitTest(_root.crawler.hitbox) && (_root.crawler.hitted == false)) && (_root.crawler.inmune == false)) && (_root.crawler.combo3 == false)) {
_root.kick2.start(0.2, 1);
_root.crawler.hitted = true;
_root.crawler.grv = 10;
_root.crawler.spy = _root.crawler.spy - _root.crawler.grv;
_root.crawler.grv = 2;
_root.health = _root.health - crawler_damage;
if (this._xscale == 100) {
_root.crawler.side_empuje = "right";
}
if (this._xscale == -100) {
_root.crawler.side_empuje = "left";
}
}
}
}
};
Symbol 769 MovieClip Frame 45
this._parent.orb_id++;
size = Math.random() * 20;
this._parent.attachMovie("orb2", "orb2" + this._parent.orb_id, this._parent.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
this._parent.orb_id++;
size = Math.random() * 20;
this._parent.attachMovie("orb2", "orb2" + this._parent.orb_id, this._parent.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
this._parent.orb_id++;
size = Math.random() * 20;
this._parent.attachMovie("orb2", "orb2" + this._parent.orb_id, this._parent.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
this._parent.orb_id++;
size = Math.random() * 20;
this._parent.attachMovie("orb2", "orb2" + this._parent.orb_id, this._parent.getNextHighestDepth(), {_x:(this._x + (Math.random() * 50)) - 20, _y:(this._y + (Math.random() * 50)) - 20, _width:size, _height:size});
Symbol 769 MovieClip Frame 55
stop();
Symbol 772 MovieClip Frame 1
Symbol 772 MovieClip Frame 2
stop();
kicked = false;
crawler_damage = 10;
health = 4000;
evento = "off";
fps = 0;
fps_total = 400;
stoped = false;
death = false;
_root.enemies2 = 0;
hit = false;
this.onEnterFrame = function () {
if (((_root.enemies > 0) && (stoped == false)) && (death == false)) {
play();
}
if ((health <= 0) && (death == false)) {
death = true;
stopAllSounds();
_root.music2.start(0, 99999);
_root.enemies--;
stop();
}
if ((hit == true) && (death == false)) {
trace(_root.enemies2);
if ((_currentframe >= 1665) && (stoped == true)) {
evento = "on";
if ((((evento == "on") && (fps <= 0)) && (fps_total > 0)) && (_root.enemies2 < 5)) {
_root.fly_id++;
_root.attachMovie("fly2", "fly" + _root.fly_id, _root.getNextHighestDepth(), {_x:_root.eve(Math.random() * 600) - 700, _y:_root.eve._y - 300});
fps = 10;
} else if ((evento == "on") && (fps > 0)) {
fps--;
}
if (evento == "on") {
fps_total--;
}
if (fps_total <= 0) {
stoped = false;
this.gotoAndPlay(335);
fps_total = 400;
}
}
}
};
Symbol 772 MovieClip Frame 56
_root.music3.start(0, 99999);
Symbol 772 MovieClip Frame 255
this.head.play();
Symbol 772 MovieClip Frame 394
hit = true;
Symbol 772 MovieClip Frame 1668
stoped = true;
Symbol 772 MovieClip Frame 1680
stop();
Symbol 791 MovieClip Frame 98
spy = 0;
grv = 2;
this.onEnterFrame = function () {
this.gameover._y = this.gameover._y + spy;
spy = spy + grv;
};
Symbol 791 MovieClip Frame 106
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
Symbol 791 MovieClip Frame 107
_root.rock_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 20;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
Symbol 791 MovieClip Frame 108
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
Symbol 791 MovieClip Frame 109
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb2", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
_root.rock_id++;
size = Math.random() * 40;
_root.attachMovie("orb_blood", "orb" + _root.rock_id, _root.getNextHighestDepth(), {_x:((this._x + 10) + (Math.random() * 20)) - 20, _y:this._y + 20, _width:size, _height:size});
Symbol 791 MovieClip Frame 187
_root.gotoAndStop("submit_score");
Symbol 804 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("menu");
}
Symbol 810 Button
on (release) {
getURL ("http://logiccollisiongames.com/", _blank);
}
Symbol 828 MovieClip Frame 1
stopAllSounds();
_root.music4.start(0, 9999);
Symbol 828 MovieClip Frame 973
stop();
Instance of Symbol 836 MovieClip "score_box" in Symbol 837 MovieClip Frame 28
onClipEvent (enterFrame) {
digits = String(_root.score);
process_score = "" + digits;
while (process_score.length <= 7) {
process_score = "0" + process_score;
}
i = 1;
while (i < 10) {
showscore = process_score.charAt(i - 1);
showscore++;
this["dig" + i].gotoAndStop(showscore);
i++;
}
digits2 = String(_root.redorb);
process_redorbs = "" + digits2;
while (process_redorbs.length <= 2) {
process_redorbs = "0" + process_redorbs;
}
i = 1;
while (i < 4) {
showscore_redorbs = process_redorbs.charAt(i - 1);
showscore_redorbs++;
this["digorbs" + i].gotoAndStop(showscore_redorbs);
i++;
}
digits3 = String(_root.lifes);
process_lifes = "" + digits3;
while (process_lifes.length <= 1) {
process_lifes = "0" + process_lifes;
}
i = 1;
while (i < 3) {
showscore_lifes = process_lifes.charAt(i - 1);
showscore_lifes++;
this["diglifes" + i].gotoAndStop(showscore_lifes);
i++;
}
}
Instance of Symbol 836 MovieClip "score_box" in Symbol 837 MovieClip Frame 43
onClipEvent (load) {
detected = false;
}
onClipEvent (enterFrame) {
if (detected == false) {
_root.score = ((_root.lifes * 1000) + (_root.redorb * 500)) + _root.score;
detected = true;
}
digits = String(_root.score);
process_score = "" + digits;
while (process_score.length <= 7) {
process_score = "0" + process_score;
}
i = 1;
while (i < 10) {
showscore = process_score.charAt(i - 1);
showscore++;
this["dig" + i].gotoAndStop(showscore);
i++;
}
digits2 = String(_root.redorb);
process_redorbs = "" + digits2;
while (process_redorbs.length <= 2) {
process_redorbs = "0" + process_redorbs;
}
i = 1;
while (i < 4) {
showscore_redorbs = process_redorbs.charAt(i - 1);
showscore_redorbs++;
this["digorbs" + i].gotoAndStop(showscore_redorbs);
i++;
}
digits3 = String(_root.lifes);
process_lifes = "" + digits3;
while (process_lifes.length <= 1) {
process_lifes = "0" + process_lifes;
}
i = 1;
while (i < 3) {
showscore_lifes = process_lifes.charAt(i - 1);
showscore_lifes++;
this["diglifes" + i].gotoAndStop(showscore_lifes);
i++;
}
}
Instance of Symbol 836 MovieClip "score_box" in Symbol 837 MovieClip Frame 105
onClipEvent (enterFrame) {
digits = String(_root.score);
process_score = "" + digits;
while (process_score.length <= 7) {
process_score = "0" + process_score;
}
i = 1;
while (i < 10) {
showscore = process_score.charAt(i - 1);
showscore++;
this["dig" + i].gotoAndStop(showscore);
i++;
}
digits2 = String(_root.redorb);
process_redorbs = "" + digits2;
while (process_redorbs.length <= 2) {
process_redorbs = "0" + process_redorbs;
}
i = 1;
while (i < 4) {
showscore_redorbs = process_redorbs.charAt(i - 1);
showscore_redorbs++;
this["digorbs" + i].gotoAndStop(showscore_redorbs);
i++;
}
digits3 = String(_root.lifes);
process_lifes = "" + digits3;
while (process_lifes.length <= 1) {
process_lifes = "0" + process_lifes;
}
i = 1;
while (i < 3) {
showscore_lifes = process_lifes.charAt(i - 1);
showscore_lifes++;
this["diglifes" + i].gotoAndStop(showscore_lifes);
i++;
}
}
Symbol 837 MovieClip Frame 121
_root.gotoAndStop("showscore");
Symbol 839 Button
on (release) {
play();
}