Combined Code
frame 1 {
YOUR_MOVIE_ID = 2863;
var Newgrounds_API = new NewgroundsAPI_AS2(YOUR_MOVIE_ID);
}
frame 1 {
function gotoMySite2() {
_global.NewgroundsAPI_DataObject.API.LoadNewgrounds();
}
stop();
_quality = 'High';
stop();
stop();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var mySiteLink2 = new ContextMenuItem('Newgrounds©', gotoMySite2);
myMenu.customItems.push(mySiteLink, copyrightNotice);
myMenu.customItems.push(mySiteLink2, copyrightNotice2);
_root.menu = myMenu;
}
frame 1 {
stop();
if (lives == undefined) {
lives = 9;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldlives = savefile.data.lives;
if (savefile.data.lives == undefined) {
_root.oldlives = 9;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldworld = savefile.data.world;
if (savefile.data.world == undefined) {
_root.oldworld = 1;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoala1 = savefile.data.goala1;
if (savefile.data.goala1 == undefined) {
_root.oldgoala1 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoala2 = savefile.data.goala2;
if (savefile.data.goala2 == undefined) {
_root.oldgoala2 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoala3 = savefile.data.goala3;
if (savefile.data.goala3 == undefined) {
_root.oldgoala3 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoala4 = savefile.data.goala4;
if (savefile.data.goala4 == undefined) {
_root.oldgoala4 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoala5 = savefile.data.goala5;
if (savefile.data.goala5 == undefined) {
_root.oldgoala5 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoala6 = savefile.data.goala6;
if (savefile.data.goala6 == undefined) {
_root.oldgoala6 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoalb1 = savefile.data.goalb1;
if (savefile.data.goalb1 == undefined) {
_root.oldgoalb1 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoalb2 = savefile.data.goalb2;
if (savefile.data.goalb2 == undefined) {
_root.oldgoalb2 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoalb3 = savefile.data.goalb3;
if (savefile.data.goalb3 == undefined) {
_root.oldgoalb3 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoalb4 = savefile.data.goalb4;
if (savefile.data.goalb4 == undefined) {
_root.oldgoalb4 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoalb5 = savefile.data.goalb5;
if (savefile.data.goalb5 == undefined) {
_root.oldgoalb5 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoalb6 = savefile.data.goalb6;
if (savefile.data.goalb6 == undefined) {
_root.oldgoalb6 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoalc1 = savefile.data.goalc1;
if (savefile.data.goalc1 == undefined) {
_root.oldgoalc1 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoalc2 = savefile.data.goalc2;
if (savefile.data.goalc2 == undefined) {
_root.oldgoalc2 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoalc3 = savefile.data.goalc3;
if (savefile.data.goalc3 == undefined) {
_root.oldgoalc3 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoalc4 = savefile.data.goalc4;
if (savefile.data.goalc4 == undefined) {
_root.oldgoalc4 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoalc5 = savefile.data.goalc5;
if (savefile.data.goalc5 == undefined) {
_root.oldgoalc5 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoalc6 = savefile.data.goalc6;
if (savefile.data.goalc6 == undefined) {
_root.oldgoalc6 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoald1 = savefile.data.goald1;
if (savefile.data.goald1 == undefined) {
_root.oldgoald1 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoald2 = savefile.data.goald2;
if (savefile.data.goald2 == undefined) {
_root.oldgoald2 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoald3 = savefile.data.goald3;
if (savefile.data.goald3 == undefined) {
_root.oldgoald3 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoald4 = savefile.data.goald4;
if (savefile.data.goald4 == undefined) {
_root.oldgoald4 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoald5 = savefile.data.goald5;
if (savefile.data.goald5 == undefined) {
_root.oldgoald5 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoald6 = savefile.data.goald6;
if (savefile.data.goald6 == undefined) {
_root.oldgoald6 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoale1 = savefile.data.goale1;
if (savefile.data.goale1 == undefined) {
_root.oldgoale1 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoale2 = savefile.data.goale2;
if (savefile.data.goale2 == undefined) {
_root.oldgoale2 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoale3 = savefile.data.goale3;
if (savefile.data.goale3 == undefined) {
_root.oldgoale3 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoale4 = savefile.data.goale4;
if (savefile.data.goale4 == undefined) {
_root.oldgoale4 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoale5 = savefile.data.goale5;
if (savefile.data.goale5 == undefined) {
_root.oldgoale5 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoale6 = savefile.data.goale6;
if (savefile.data.goale6 == undefined) {
_root.oldgoale6 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldpercent2 = savefile.data.percent2;
if (savefile.data.percent2 == undefined) {
_root.oldpercent2 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldpercent3 = savefile.data.percent3;
if (savefile.data.percent3 == undefined) {
_root.oldpercent4 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldpercent4 = savefile.data.percent4;
if (savefile.data.percent4 == undefined) {
_root.oldpercent4 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldpercent5 = savefile.data.percent5;
if (savefile.data.percent5 == undefined) {
_root.oldpercent5 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldpercent1 = savefile.data.percent1;
if (savefile.data.percent1 == undefined) {
_root.oldpercent1 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldpuzzleco2 = savefile.data.puzzleco2;
if (savefile.data.puzzleco2 == undefined) {
_root.oldpuzzleco2 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldpuzzleco3 = savefile.data.puzzleco3;
if (savefile.data.puzzleco3 == undefined) {
_root.oldpuzzleco4 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldpuzzleco4 = savefile.data.puzzleco4;
if (savefile.data.puzzleco4 == undefined) {
_root.oldpuzzleco4 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldpuzzleco5 = savefile.data.puzzleco5;
if (savefile.data.puzzleco5 == undefined) {
_root.oldpuzzleco5 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldpuzzleco1 = savefile.data.puzzleco1;
if (savefile.data.puzzleco1 == undefined) {
_root.oldpuzzleco1 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldblueco2 = savefile.data.blueco2;
if (savefile.data.blueco2 == undefined) {
_root.oldblueco2 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldblueco3 = savefile.data.blueco3;
if (savefile.data.blueco3 == undefined) {
_root.oldblueco4 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldblueco4 = savefile.data.blueco4;
if (savefile.data.blueco4 == undefined) {
_root.oldblueco4 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldblueco5 = savefile.data.blueco5;
if (savefile.data.blueco5 == undefined) {
_root.oldblueco5 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldblueco1 = savefile.data.blueco1;
if (savefile.data.blueco1 == undefined) {
_root.oldblueco1 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoals1 = savefile.data.goals1;
if (savefile.data.goals1 == undefined) {
_root.oldgoals1 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoals3 = savefile.data.goals3;
if (savefile.data.goals3 == undefined) {
_root.oldgoals3 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoals2 = savefile.data.goals2;
if (savefile.data.goals2 == undefined) {
_root.oldgoals2 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldgoals4 = savefile.data.goals4;
if (savefile.data.goals4 == undefined) {
_root.oldgoals4 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldachieva1 = savefile.data.achieva1;
if (savefile.data.achieva1 == undefined) {
_root.oldachieva1 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldachieva2 = savefile.data.achieva2;
if (savefile.data.achieva2 == undefined) {
_root.oldachieva2 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldachieva3 = savefile.data.achieva3;
if (savefile.data.achieva3 == undefined) {
_root.oldachieva3 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldachieva4 = savefile.data.achieva4;
if (savefile.data.achieva4 == undefined) {
_root.oldachieva4 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldachieva5 = savefile.data.achieva5;
if (savefile.data.achieva5 == undefined) {
_root.oldachieva5 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldachieva6 = savefile.data.achieva6;
if (savefile.data.achieva6 == undefined) {
_root.oldachieva6 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldachievb1 = savefile.data.achievb1;
if (savefile.data.achievb1 == undefined) {
_root.oldachievb1 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldachievb2 = savefile.data.achievb2;
if (savefile.data.achievb2 == undefined) {
_root.oldachievb2 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldachievb3 = savefile.data.achievb3;
if (savefile.data.achievb3 == undefined) {
_root.oldachievb3 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldachievb4 = savefile.data.achievb4;
if (savefile.data.achievb4 == undefined) {
_root.oldachievb4 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldachievb5 = savefile.data.achievb5;
if (savefile.data.achievb5 == undefined) {
_root.oldachievb5 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldachievb6 = savefile.data.achievb6;
if (savefile.data.achievb6 == undefined) {
_root.oldachievb6 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldachievc1 = savefile.data.achievc1;
if (savefile.data.achievc1 == undefined) {
_root.oldachievc1 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldachievc2 = savefile.data.achievc2;
if (savefile.data.achievc2 == undefined) {
_root.oldachievc2 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldachievc3 = savefile.data.achievc3;
if (savefile.data.achievc3 == undefined) {
_root.oldachievc3 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldachievc4 = savefile.data.achievc4;
if (savefile.data.achievc4 == undefined) {
_root.oldachievc4 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldachievc5 = savefile.data.achievc5;
if (savefile.data.achievc5 == undefined) {
_root.oldachievc5 = 0;
}
var savefile = SharedObject.getLocal('gyros');
_root.oldachievc6 = savefile.data.achievc6;
if (savefile.data.achievc6 == undefined) {
_root.oldachievc6 = 0;
}
}
frame 1 {
NewgroundsAPI.connectMovie(2863);
}
movieClip 4 {
}
movieClip 8 {
}
movieClip 18 {
frame 40 {
stop();
}
}
movieClip 31 {
}
button 32 {
on (press) {
tellTarget ('_root') {
nextFrame();
}
}
}
button 33 {
on (press) {
gotoAndStop('end');
_root.play();
}
}
movieClip 34 {
instance of movieClip 8 {
onClipEvent (load) {
_root.stop();
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndStop('lastframe');
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndPlay('loaded');
}
}
}
frame 101 {
play();
}
frame 165 {
stop();
}
}
button 40 {
on (release) {
NewgroundsAPI.loadNewgrounds();
}
}
button 46 {
on (release) {
NewgroundsAPI.loadNewgrounds();
}
}
movieClip 47 {
}
movieClip 48 {
frame 1 {
function startAd(ngad_url) {
trace('opening ' + ngad_url);
System.security.allowDomain('70.87.128.99');
System.security.allowInsecureDomain('70.87.128.99');
System.security.allowDomain('ads.shizmoo.com');
System.security.allowInsecureDomain('ads.shizmoo.com');
System.security.allowDomain('www.cpmstar.com');
System.security.allowInsecureDomain('www.cpmstar.com');
System.security.allowDomain('server.cpmstar.com');
System.security.allowInsecureDomain('server.cpmstar.com');
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace('[NEWGROUNDS FLASH ADS] :: You may get a \'Security Sandbox Violation\' ... this is normal, do not freak out!');
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), 'GET');
} else {}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
}
}
movieClip 54 {
}
movieClip 63 {
}
movieClip 94 {
}
movieClip 96 {
frame 1 {
stop();
}
frame 15 {
stop();
}
}
movieClip 98 {
}
button 99 {
on (release) {
getURL('http://www.newgrounds.com/portal/view/425475', '_blank');
}
}
movieClip 101 {
}
button 102 {
on (release) {
getURL('http://www.youtube.com/watch?v=9Q5oZnuff1s', '_blank');
}
}
// unknown tag 88 length 73
// unknown tag 88 length 90
movieClip 108 {
}
movieClip 124 {
}
movieClip 126 {
}
movieClip 138 {
}
movieClip 139 {
}
movieClip 174 {
}
movieClip 175 {
frame 1 {
stop();
}
frame 11 {
stop();
}
}
movieClip 179 {
}
movieClip 180 {
frame 45 {
gotoAndPlay(1);
}
frame 55 {
stop();
}
}
movieClip 182 {
}
movieClip 183 {
frame 45 {
gotoAndPlay(1);
}
frame 55 {
stop();
}
}
movieClip 185 {
}
movieClip 186 {
frame 45 {
gotoAndPlay(1);
}
frame 55 {
stop();
}
}
movieClip 188 {
}
movieClip 189 {
frame 45 {
gotoAndPlay(1);
}
frame 55 {
stop();
}
}
movieClip 192 {
}
movieClip 196 {
}
movieClip 217 {
}
movieClip 219 {
frame 53 {
gotoAndPlay(1);
}
frame 55 {
stop();
}
}
movieClip 224 {
}
movieClip 227 {
}
movieClip 230 {
}
movieClip 234 {
}
movieClip 263 {
}
movieClip 264 {
}
movieClip 265 {
frame 1 {
stop();
}
frame 11 {
stop();
}
}
movieClip 267 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
}
instance of movieClip 267 {
onClipEvent (load) {
kiz = 0.7;
}
onClipEvent (enterFrame) {
if (kiz > 8.300000000000001) {
kiz = 0.7;
}
this.gotoAndStop(Math.round(kiz));
kiz += 0.0025;
}
}
movieClip 2016 __Packages.NewgroundsAPI {
#initclip
if (!_global.NewgroundsAPI) {
var v1 = function () {};
_global.NewgroundsAPI = v1;
var v2 = v1.prototype;
v1.connectMovie = function (id) {
if (!id) {
NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.connectMovie(id:Number)');
} else {
if (!NewgroundsAPI.tracker_id) {
NewgroundsAPI.SendMessage('Connecting to API gateway...');
NewgroundsAPI.tracker_id = id;
NewgroundsAPI.host = (_url.split('/'))[2].toLowerCase();
if (NewgroundsAPI.host.length < 1) {
NewgroundsAPI.host = 'localhost';
}
var v2 = new Object();
NewgroundsAPI.SendEvent(NewgroundsAPI.MOVIE_VIEWS);
}
}
};
v1.setMovieVersion = function (movie_version) {
if (!movie_version) {
NewgroundsAPI.SendError('Missing required \'version\' in NewgroundsAPI.setMovieVersion(version:String)');
} else {
NewgroundsAPI.version = movie_version;
}
};
v1.debugMode = function () {
NewgroundsAPI.debug = true;
};
v1.addCustomEvent = function (stat_id, stat_name) {
if (!stat_id) {
NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)');
} else {
if (!stat_name) {
NewgroundsAPI.SendError('Missing required \'event_name\' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)');
} else {
NewgroundsAPI.custom_events[stat_name] = NewgroundsAPI.CUSTOM_STATS + stat_id;
NewgroundsAPI.SendMessage('Created custom event: ' + stat_name);
}
}
};
v1.addCustomLink = function (stat_id, stat_name) {
if (!stat_id) {
NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)');
} else {
if (!stat_name) {
NewgroundsAPI.SendError('Missing required \'link_name\' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)');
} else {
NewgroundsAPI.custom_links[stat_name] = NewgroundsAPI.CUSTOM_STATS + stat_id;
NewgroundsAPI.SendMessage('Created custom link ' + stat_id + ': ' + stat_name);
}
}
};
v1.loadMySite = function () {
NewgroundsAPI.SendLink(NewgroundsAPI.AUTHOR_SITE);
};
v1.loadNewgrounds = function (special) {
if (special) {
var v1 = {'page': special};
}
NewgroundsAPI.SendLink(NewgroundsAPI.NEWGROUNDS, v1);
};
v1.logCustomEvent = function (event_name) {
if (!event_name) {
NewgroundsAPI.SendError('Missing required \'event_name\' parameter in NewgroundsAPI.logCustomEvent(event_name:String)');
} else {
if (!NewgroundsAPI.custom_events[event_name]) {
NewgroundsAPI.SendError('Attempted to log undefined custom event: ' + event_name);
} else {
NewgroundsAPI.SendEvent(NewgroundsAPI.custom_events[event_name]);
}
}
};
v1.loadCustomLink = function (link_name) {
if (!link_name) {
NewgroundsAPI.SendError('Missing required \'link_name\' parameter in NewgroundsAPI.loadCustomLink(link_name:String)');
} else {
if (!NewgroundsAPI.custom_links[link_name]) {
NewgroundsAPI.SendError('Attempted to open undefined custom link: ' + link_name);
} else {
NewgroundsAPI.SendLink(NewgroundsAPI.custom_links[link_name]);
}
}
};
v1.getAdURL = function () {
return NewgroundsAPI.movie_options.ad_url;
};
v1.getMovieURL = function () {
if (NewgroundsAPI.movie_options.movie_url) {
return NewgroundsAPI.movie_options.movie_url;
} else {
return 'Newgrounds.com';
}
};
v1.getNewVersionURL = function () {
return NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&host=' + escape(NewgroundsAPI.host) + '&stat=' + NewgroundsAPI.NEW_VERSION;
};
v1.SendEvent = function (id) {
NewgroundsAPI.SendStat(id, false);
};
v1.SendLink = function (id, extra) {
NewgroundsAPI.SendStat(id, true, extra);
};
v1.ReadGatewayData = function (params) {
for (var v2 in params) {
params[v2] = unescape(params[v2]);
NewgroundsAPI.movie_options[v2] = params[v2];
}
if (params.settings_loaded) {
NewgroundsAPI.SendMessage('You have successfully connected to the Newgrounds API gateway!');
NewgroundsAPI.SendMessage('Movie Identified as \'' + NewgroundsAPI.movie_options.movie_name + '\'');
if (NewgroundsAPI.movie_options.message) {
NewgroundsAPI.SendMessage(NewgroundsAPI.movie_options.message);
}
if (NewgroundsAPI.movie_options.ad_url) {
NewgroundsAPI.SendMessage('Your movie has been approved to run Flash Ads');
NewgroundsAPI.onAdsApproved(NewgroundsAPI.movie_options.ad_url);
}
if (NewgroundsAPI.movie_options.movie_version and NewgroundsAPI.movie_options.movie_version.toString() != NewgroundsAPI.version.toString()) {
NewgroundsAPI.SendMessage('WARNING: The movie version configured in your API settings does not match this movie\'s version!');
NewgroundsAPI.onNewVersionAvailable(NewgroundsAPI.movie_options.movie_version, NewgroundsAPI.getMovieURL(), NewgroundsAPI.getNewVersionURL());
}
if (NewgroundsAPI.movie_options.deny_host) {
NewgroundsAPI.SendMessage('You have blocked \'localHost\' in your API settings.');
NewgroundsAPI.SendMessage('If you wish to test your movie you will need to remove this block.');
NewgroundsAPI.onDenyHost(NewgroundsAPI.host, NewgroundsAPI.getMovieURL(), NewgroundsAPI.getNewVersionURL());
}
if (NewgroundsAPI.movie_options.request_portal_url == 1) {
var v4 = NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&portal_url=' + escape(_url);
var v3 = new XML();
v3.ignoreWhite = true;
v3.load(v4);
}
} else {
if (!NewgroundsAPI.movie_options.settings_loaded) {
NewgroundsAPI.SendError('Could not establish connection to the API gateway.');
}
}
};
v1.SendStat = function (stat_id, open_in_browser, extra) {
if (!NewgroundsAPI.tracker_id) {
NewgroundsAPI.SendError('API calls cannot be made without a valid movie id.');
NewgroundsAPI.SendError('Did you remember to add the "NewgroundsAPI.connectMovie()" code?');
} else {
var v7 = NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&host=' + escape(NewgroundsAPI.host) + '&stat=' + stat_id;
for (var v9 in extra) {
v7 += '&' + escape(v9) + '=' + escape(extra[v9]);
}
trace(v7);
if (NewgroundsAPI.debug) {
v7 += '&debug=1';
}
if (open_in_browser) {
getURL(v7, '_blank');
} else {
var v10 = new XML();
v10.ignoreWhite = true;
v10.onLoad = function (success) {
var v6 = new Object();
var v3 = 0;
while (v3 < this.firstChild.childNodes.length) {
var v4 = this.firstChild.childNodes[v3];
var v5 = v4.nodeName;
var v2 = v4.attributes.value;
if (v2 == Number(v2)) {
v2 = Number(v2);
}
v6[v5] = v2;
++v3;
}
NewgroundsAPI.ReadGatewayData(v6);
};
v10.load(v7);
}
}
};
v1.SendError = function (msg) {
trace('[NEWGROUNDS API ERROR] :: ' + msg);
};
v1.SendMessage = function (msg) {
trace('[NEWGROUNDS API] :: ' + msg);
};
v1.InitTextFormats = function () {
if (!NewgroundsAPI.error_format) {
NewgroundsAPI.error_format = new TextFormat();
NewgroundsAPI.error_format.font = 'Arial Black';
NewgroundsAPI.error_format.size = 48;
NewgroundsAPI.error_format.color = 16711680;
}
if (!NewgroundsAPI.header_format) {
NewgroundsAPI.header_format = new TextFormat();
NewgroundsAPI.header_format.font = 'Arial Black';
NewgroundsAPI.header_format.size = 24;
NewgroundsAPI.header_format.color = 16777215;
}
if (!NewgroundsAPI.normal_format) {
NewgroundsAPI.normal_format = new TextFormat();
NewgroundsAPI.normal_format.font = 'Arial';
NewgroundsAPI.normal_format.bold = true;
NewgroundsAPI.normal_format.size = 12;
NewgroundsAPI.normal_format.color = 16777215;
}
if (!NewgroundsAPI.link_format) {
NewgroundsAPI.link_format = new TextFormat();
NewgroundsAPI.link_format.color = 16776960;
NewgroundsAPI.link_format.underline = true;
}
};
v1.onNewVersionAvailable = function (version, movie_url, redirect_url) {
NewgroundsAPI.InitTextFormats();
var v2 = new Object();
v2.x = Stage.width / 2;
v2.y = Stage.height / 2;
_root.createEmptyMovieClip('NGAPI_new_version_overlay', _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(1, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(0, 70);
_root.NGAPI_new_version_overlay.moveTo(-10, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, -10);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(v2.x - 240, v2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip('exit', 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0, 50);
_root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 210, v2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 214, v2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 226, v2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 226, v2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 214, v2.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var v3 = 'Version ' + version + ' is now available at:' + '\n';
var v5 = v3.length;
v3 += movie_url;
var v4 = v3.length;
_root.NGAPI_new_version_overlay.createTextField('mouseblocker', 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField('newversion', 100, v2.x - 210, v2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = 'New Version Available!';
_root.NGAPI_new_version_overlay.newversion.setTextFormat(NewgroundsAPI.header_format);
_root.NGAPI_new_version_overlay.createTextField('message', 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = v3;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(NewgroundsAPI.normal_format);
NewgroundsAPI.link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(v5, v4, NewgroundsAPI.link_format);
};
v1.onDenyHost = function (hostname, movie_url, redirect_url) {
NewgroundsAPI.InitTextFormats();
_root.createEmptyMovieClip('NGAPI_deny_host_overlay', _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var v2 = 'This movie has not been approved for use on ' + hostname + '.';
v2 += '\r\rFor an aproved copy, please visit:\r';
var v4 = v2.length;
v2 += movie_url;
var v3 = v2.length;
_root.NGAPI_deny_host_overlay.createTextField('mousekill', 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField('error', 101, (Stage.width - 400) / 2, Stage.height / 2 - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = 'ERROR!';
_root.NGAPI_deny_host_overlay.error.setTextFormat(NewgroundsAPI.error_format);
_root.NGAPI_deny_host_overlay.createTextField('message', 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = v2;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(NewgroundsAPI.normal_format);
NewgroundsAPI.link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(v4, v3, NewgroundsAPI.link_format);
};
v1.isInstalled = function () {
return true;
};
v1.onAdsApproved = function (ad_url) {};
v1.movie_options = new Object();
v1.custom_events = new Object();
v1.custom_links = new Object();
v1.MOVIE_VIEWS = 1;
v1.AUTHOR_SITE = 2;
v1.NEWGROUNDS = 3;
v1.NEW_VERSION = 4;
v1.CUSTOM_STATS = 50;
v1.GATEWAY_URL = 'http://www.ngads.com/gateway.php';
ASSetPropFlags(_global.NewgroundsAPI.prototype, null, 1);
}
#endinitclip
}
frame 2 {
stop();
}
// unknown tag 88 length 41
movieClip 272 {
}
movieClip 274 {
}
movieClip 277 {
}
movieClip 279 {
}
movieClip 281 {
}
movieClip 284 {
}
movieClip 286 {
}
movieClip 290 {
}
movieClip 292 {
}
movieClip 295 {
}
movieClip 297 {
}
movieClip 300 {
}
movieClip 302 {
}
movieClip 305 {
}
movieClip 307 {
}
movieClip 310 {
}
movieClip 312 {
}
movieClip 315 {
}
movieClip 317 {
}
movieClip 320 {
}
movieClip 322 {
}
movieClip 325 {
}
movieClip 328 {
}
movieClip 330 {
}
movieClip 336 {
}
movieClip 337 {
}
movieClip 339 {
}
movieClip 341 {
}
movieClip 343 {
}
movieClip 345 {
}
movieClip 348 {
}
movieClip 350 {
}
movieClip 353 {
}
movieClip 355 {
}
movieClip 357 {
}
movieClip 359 {
}
movieClip 361 {
}
movieClip 364 {
}
movieClip 366 {
}
movieClip 368 {
}
movieClip 374 {
}
movieClip 375 {
}
movieClip 379 {
}
movieClip 380 {
}
movieClip 381 {
}
movieClip 384 {
}
movieClip 388 {
}
movieClip 389 {
}
movieClip 391 {
}
movieClip 393 {
frame 144 {
stop();
}
}
movieClip 395 {
instance of movieClip 277 {
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.menus.gotoAndPlay(733);
}
}
}
frame 739 {
stop();
_root.mainmen.gotoAndStop(2);
_root.mainmen.bobo = true;
}
frame 740 {
stopAllSounds();
}
frame 807 {
if (_root.loadedx == true) {
_root.gotoAndPlay('worldselect');
}
if (_root.loadedx != true) {
_root.play();
}
}
}
// unknown tag 88 length 48
movieClip 399 {
frame 1 {
stop();
}
frame 55 {
gotoAndStop(1);
}
}
movieClip 402 {
}
movieClip 403 {
}
movieClip 405 {
}
movieClip 407 {
}
movieClip 409 {
}
movieClip 410 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 411 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
instance skuz of movieClip 410 {
onClipEvent (load) {
select = 1;
corack = true;
_root.loadedx = false;
}
onClipEvent (enterFrame) {
if (select > 3) {
select = 1;
}
if (select < 1) {
select = 3;
}
if (Key.isDown(37) && skuz != true) {
select -= 1;
skuz = true;
}
if (Key.isDown(39) && skuz != true) {
select += 1;
skuz = true;
}
if (!Key.isDown(37) && !Key.isDown(39)) {
skuz = false;
}
if (Key.isDown(32) && select <= 1 && _root.mainmen.gogo != true) {
_root.fenway.play();
}
if (Key.isDown(32) && select >= 3 && _root.mainmen.gogo != true) {
getURL('http://www.newgrounds.com', '_blank');
}
if (Key.isDown(32) && select == 2 && corack != true && _root.mainmen.gogo != true) {
corack = true;
_root.menus.play();
_root.loadedx = false;
_root.mainmen._visible = false;
}
if (!Key.isDown(32) && corack == true) {
corack = false;
}
this.gotoAndStop(select);
}
}
}
instance mainmen of movieClip 411 {
onClipEvent (load) {
menu = false;
bobo = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) && menu != true && bobo == true) {
menu = true;
gogo = true;
this.gotoAndStop(3);
}
if (!Key.isDown(32)) {
gogo = false;
}
}
}
movieClip 414 {
}
movieClip 415 {
frame 1 {
stop();
}
instance of movieClip 414 {
onClipEvent (enterFrame) {
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.lives == undefined) {
_root.lives = 9;
} else {
_root.lives = savefile.data.lives;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.worlds == undefined) {
_root.worlds = 1;
} else {
_root.worlds = savefile.data.worlds;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goala1 == undefined) {
_root.goala1 = 0;
} else {
_root.goala1 = savefile.data.goala1;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goala2 == undefined) {
_root.goala2 = 0;
} else {
_root.goala2 = savefile.data.goala2;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goala3 == undefined) {
_root.goala3 = 0;
} else {
_root.goala3 = savefile.data.goala3;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goala4 == undefined) {
_root.goala4 = 0;
} else {
_root.goala4 = savefile.data.goala4;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goala5 == undefined) {
_root.goala5 = 0;
} else {
_root.goala5 = savefile.data.goala5;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goala6 == undefined) {
_root.goala6 = 0;
} else {
_root.goala6 = savefile.data.goala6;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goalb1 == undefined) {
_root.goalb1 = 0;
} else {
_root.goalb1 = savefile.data.goalb1;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goalb2 == undefined) {
_root.goalb2 = 0;
} else {
_root.goalb2 = savefile.data.goalb2;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goalb3 == undefined) {
_root.goalb3 = 0;
} else {
_root.goalb3 = savefile.data.goalb3;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goalb4 == undefined) {
_root.goalb4 = 0;
} else {
_root.goalb4 = savefile.data.goalb4;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goalb5 == undefined) {
_root.goalb5 = 0;
} else {
_root.goalb5 = savefile.data.goalb5;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goalb6 == undefined) {
_root.goalb6 = 0;
} else {
_root.goalb6 = savefile.data.goalb6;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goalc1 == undefined) {
_root.goalc1 = 0;
} else {
_root.goalc1 = savefile.data.goalc1;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goalc2 == undefined) {
_root.goalc2 = 0;
} else {
_root.goalc2 = savefile.data.goalc2;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goalc3 == undefined) {
_root.goalc3 = 0;
} else {
_root.goalc3 = savefile.data.goalc3;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goalc4 == undefined) {
_root.goalc4 = 0;
} else {
_root.goalc4 = savefile.data.goalc4;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goalc5 == undefined) {
_root.goalc5 = 0;
} else {
_root.goalc5 = savefile.data.goalc5;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goalc6 == undefined) {
_root.goalc6 = 0;
} else {
_root.goalc6 = savefile.data.goalc6;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goald1 == undefined) {
_root.goald1 = 0;
} else {
_root.goald1 = savefile.data.goald1;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goald2 == undefined) {
_root.goald2 = 0;
} else {
_root.goald2 = savefile.data.goald2;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goald3 == undefined) {
_root.goald3 = 0;
} else {
_root.goald3 = savefile.data.goald3;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goald4 == undefined) {
_root.goald4 = 0;
} else {
_root.goald4 = savefile.data.goald4;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goald5 == undefined) {
_root.goald5 = 0;
} else {
_root.goald5 = savefile.data.goald5;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goald6 == undefined) {
_root.goald6 = 0;
} else {
_root.goald6 = savefile.data.goald6;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goale1 == undefined) {
_root.goale1 = 0;
} else {
_root.goale1 = savefile.data.goale1;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goale2 == undefined) {
_root.goale2 = 0;
} else {
_root.goale2 = savefile.data.goale2;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goale3 == undefined) {
_root.goale3 = 0;
} else {
_root.goale3 = savefile.data.goale3;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goale4 == undefined) {
_root.goale4 = 0;
} else {
_root.goale4 = savefile.data.goale4;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goale5 == undefined) {
_root.goale5 = 0;
} else {
_root.goale5 = savefile.data.goale5;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goale6 == undefined) {
_root.goale6 = 0;
} else {
_root.goale6 = savefile.data.goale6;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.puzzleco1 == undefined) {
_root.puzzleco1 = 0;
} else {
_root.puzzleco1 = savefile.data.puzzleco1;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.puzzleco2 == undefined) {
_root.puzzleco2 = 0;
} else {
_root.puzzleco2 = savefile.data.puzzleco2;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.puzzleco3 == undefined) {
_root.puzzleco3 = 0;
} else {
_root.puzzleco3 = savefile.data.puzzleco3;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.puzzleco4 == undefined) {
_root.puzzleco4 = 0;
} else {
_root.puzzleco4 = savefile.data.puzzleco4;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.puzzleco5 == undefined) {
_root.puzzleco5 = 0;
} else {
_root.puzzleco5 = savefile.data.puzzleco5;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.blueco1 == undefined) {
_root.blueco1 = 0;
} else {
_root.blueco1 = savefile.data.blueco1;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.blueco2 == undefined) {
_root.blueco2 = 0;
} else {
_root.blueco2 = savefile.data.blueco2;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.blueco3 == undefined) {
_root.blueco3 = 0;
} else {
_root.blueco3 = savefile.data.blueco3;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.blueco4 == undefined) {
_root.blueco4 = 0;
} else {
_root.blueco4 = savefile.data.blueco4;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.blueco5 == undefined) {
_root.blueco5 = 0;
} else {
_root.blueco5 = savefile.data.blueco5;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.percent1 == undefined) {
_root.percent1 = 0;
_root.sound.gotoAndPlay('reject');
} else {
_root.loadedx = true;
_root.mainmen._visible = false;
_root.menus.play();
_root.percent1 = savefile.data.percent1;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.percent2 == undefined) {
_root.percent2 = 0;
} else {
_root.percent2 = savefile.data.percent2;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.percent3 == undefined) {
_root.percent3 = 0;
} else {
_root.percent3 = savefile.data.percent3;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.percent4 == undefined) {
_root.percent4 = 0;
} else {
_root.percent4 = savefile.data.percent4;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.percent5 == undefined) {
_root.percent5 = 0;
} else {
_root.percent5 = savefile.data.percent5;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goals1 == undefined) {
_root.goals1 = 0;
} else {
_root.goals1 = savefile.data.goals1;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goals2 == undefined) {
_root.goals2 = 0;
} else {
_root.goals2 = savefile.data.goals2;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goals3 == undefined) {
_root.goals3 = 0;
} else {
_root.goals3 = savefile.data.goals3;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goals4 == undefined) {
_root.goals4 = 0;
} else {
_root.goals4 = savefile.data.goals4;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.achieva1 == undefined) {
_root.achieva1 = 0;
} else {
_root.achieva1 = savefile.data.achieva1;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.achieva2 == undefined) {
_root.achieva2 = 0;
} else {
_root.achieva2 = savefile.data.achieva2;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.achieva3 == undefined) {
_root.achieva3 = 0;
} else {
_root.achieva3 = savefile.data.achieva3;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.achieva4 == undefined) {
_root.achieva4 = 0;
} else {
_root.achieva4 = savefile.data.achieva4;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.achieva5 == undefined) {
_root.achieva5 = 0;
} else {
_root.achieva5 = savefile.data.achieva5;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.achieva6 == undefined) {
_root.achieva6 = 0;
} else {
_root.achieva6 = savefile.data.achieva6;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.achievb1 == undefined) {
_root.achievb1 = 0;
} else {
_root.achievb1 = savefile.data.achievb1;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.achievb2 == undefined) {
_root.achievb2 = 0;
} else {
_root.achievb2 = savefile.data.achievb2;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.achievb3 == undefined) {
_root.achievb3 = 0;
} else {
_root.achievb3 = savefile.data.achievb3;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.achievb4 == undefined) {
_root.achievb4 = 0;
} else {
_root.achievb4 = savefile.data.achievb4;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.achievb5 == undefined) {
_root.achievb5 = 0;
} else {
_root.achievb5 = savefile.data.achievb5;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.achievb6 == undefined) {
_root.achievb6 = 0;
} else {
_root.achievb6 = savefile.data.achievb6;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.achievc1 == undefined) {
_root.achievc1 = 0;
} else {
_root.achievc1 = savefile.data.achievc1;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.achievc2 == undefined) {
_root.achievc2 = 0;
} else {
_root.achievc2 = savefile.data.achievc2;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.achievc3 == undefined) {
_root.achievc3 = 0;
} else {
_root.achievc3 = savefile.data.achievc3;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.achievc4 == undefined) {
_root.achievc4 = 0;
} else {
_root.achievc4 = savefile.data.achievc4;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.achievc5 == undefined) {
_root.achievc5 = 0;
} else {
_root.achievc5 = savefile.data.achievc5;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.achievc6 == undefined) {
_root.achievc6 = 0;
} else {
_root.achievc6 = savefile.data.achievc6;
}
}
}
}
frame 3 {
stop();
_root.lives = 9;
_root.goals1 = 0;
_root.goals2 = 0;
_root.goals3 = 0;
_root.goals4 = 0;
}
movieClip 418 {
}
movieClip 420 {
}
movieClip 430 {
}
movieClip 431 {
}
movieClip 433 {
}
movieClip 434 {
}
instance of movieClip 434 {
onClipEvent (enterFrame) {
if (_root.booker != true && Key.isDown(32)) {
_root.tran.play();
_root.booker = true;
}
if (_root.booker == true && !Key.isDown(32)) {
_root.booker = false;
}
}
}
movieClip 440 {
frame 30 {
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.flush();
}
frame 31 {
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.flush();
}
frame 32 {
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.flush();
}
frame 83 {
stop();
}
frame 265 {
_root.play();
}
}
frame 4 {
stopAllSounds();
}
frame 5 {
stop();
}
movieClip 447 {
}
movieClip 449 {
}
instance of movieClip 434 {
onClipEvent (enterFrame) {
if (_root.booker != true && Key.isDown(32)) {
_root.tran.play();
_root.booker = true;
}
if (_root.booker == true && !Key.isDown(32)) {
_root.booker = false;
}
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
}
}
movieClip 452 {
}
movieClip 453 {
}
frame 6 {
if (qset == undefined) {
qset = 2;
}
if (qset == 2) {
_quality = 'Medium';
}
if (qset == 1) {
_quality = 'Low';
}
if (qset == 3) {
_quality = 'High';
}
}
frame 6 {
stop();
blue = 'blue';
pink = 'pink';
casc = 0;
scaved = 0;
weapon = 'boomerang';
cash = 0;
bcash = 0;
puzzles = 0;
if (lives == undefined) {
lives = 9;
}
score = 0;
benny = 0;
gyroletterx = 0;
tuto.swapDepths(9998);
pausemen.swapDepths(9999);
gauge.swapDepths(10000);
tran.swapDepths(50000);
wall.swapDepths(500);
gameover.swapDepths(60000);
gate = false;
key._visible = true;
boomer = 1;
type = 'norm';
jump = 10;
ht = 0.5;
gyro.gotoAndPlay('jump');
mxy = gyro._y - 80;
mxbgy = bg._y;
motion = 9;
tutorialsc = true;
mxx = gyro._x + 200;
mnx = gyro._x + 60;
whiptimer = 50;
whipper = 40;
att = 0;
gen = 0.9300000000000001;
intx = bg._x - gyro._x;
inty = bg._y - gyro._y;
bg.core._visible = false;
bg.wall._visible = false;
bg.rope._visible = false;
gletter = false;
yletter = false;
rletter = false;
oletter = false;
glx = bg._x - letterg._x;
gly = bg._y - letterg._y;
pzx = bg._x - puzzle._x;
pzy = bg._y - puzzle._y;
portx = bg._x - portalway._x;
porty = bg._y - portalway._y;
apx1 = bg._x - apple1._x;
apy1 = bg._y - apple1._y;
apx2 = bg._x - apple2._x;
apy2 = bg._y - apple2._y;
apx3 = bg._x - apple3._x;
apy3 = bg._y - apple3._y;
bcoinx1 = bg._x - bcoin1._x;
bcoiny1 = bg._y - bcoin1._y;
bcoinx2 = bg._x - bcoin2._x;
bcoiny2 = bg._y - bcoin2._y;
bcoinx3 = bg._x - bcoin3._x;
bcoiny3 = bg._y - bcoin3._y;
bcoinx4 = bg._x - bcoin4._x;
bcoiny4 = bg._y - bcoin4._y;
bcoinx5 = bg._x - bcoin5._x;
bcoiny5 = bg._y - bcoin5._y;
scratch = 0;
coinx1 = bg._x - coin1._x;
coiny1 = bg._y - coin1._y;
coinx2 = bg._x - coin2._x;
coiny2 = bg._y - coin2._y;
coinx3 = bg._x - coin3._x;
coiny3 = bg._y - coin3._y;
coinx4 = bg._x - coin4._x;
coiny4 = bg._y - coin4._y;
coinx5 = bg._x - coin5._x;
coiny5 = bg._y - coin5._y;
coinx6 = bg._x - coin6._x;
coiny6 = bg._y - coin6._y;
coinx7 = bg._x - coin7._x;
coiny7 = bg._y - coin7._y;
coinx8 = bg._x - coin8._x;
coiny8 = bg._y - coin8._y;
coinx9 = bg._x - coin9._x;
coiny9 = bg._y - coin9._y;
coinx10 = bg._x - coin10._x;
coiny10 = bg._y - coin10._y;
coinx11 = bg._x - coin11._x;
coiny11 = bg._y - coin11._y;
coinx12 = bg._x - coin12._x;
coiny12 = bg._y - coin12._y;
coinx13 = bg._x - coin13._x;
coiny13 = bg._y - coin13._y;
coinx14 = bg._x - coin14._x;
coiny14 = bg._y - coin14._y;
coinx15 = bg._x - coin15._x;
coiny15 = bg._y - coin15._y;
coinx16 = bg._x - coin16._x;
coiny16 = bg._y - coin16._y;
coinx17 = bg._x - coin17._x;
coiny17 = bg._y - coin17._y;
coinx18 = bg._x - coin18._x;
coiny18 = bg._y - coin18._y;
coinx19 = bg._x - coin19._x;
coiny19 = bg._y - coin19._y;
coinx20 = bg._x - coin20._x;
coiny20 = bg._y - coin20._y;
coinx21 = bg._x - coin21._x;
coiny21 = bg._y - coin21._y;
coinx22 = bg._x - coin22._x;
coiny22 = bg._y - coin22._y;
coinx23 = bg._x - coin23._x;
coiny23 = bg._y - coin23._y;
coinx24 = bg._x - coin24._x;
coiny24 = bg._y - coin24._y;
coinx25 = bg._x - coin25._x;
coiny25 = bg._y - coin25._y;
coinx26 = bg._x - coin26._x;
coiny26 = bg._y - coin26._y;
coinx27 = bg._x - coin27._x;
coiny27 = bg._y - coin27._y;
coinx28 = bg._x - coin28._x;
coiny28 = bg._y - coin28._y;
coinx29 = bg._x - coin29._x;
coiny29 = bg._y - coin29._y;
coinx30 = bg._x - coin30._x;
coiny30 = bg._y - coin30._y;
coinx31 = bg._x - coin31._x;
coiny31 = bg._y - coin31._y;
coinx32 = bg._x - coin32._x;
coiny32 = bg._y - coin32._y;
coinx33 = bg._x - coin33._x;
coiny33 = bg._y - coin33._y;
coinx34 = bg._x - coin34._x;
coiny34 = bg._y - coin34._y;
coinx35 = bg._x - coin35._x;
coiny35 = bg._y - coin35._y;
coinx36 = bg._x - coin36._x;
coiny36 = bg._y - coin36._y;
coinx37 = bg._x - coin37._x;
coiny37 = bg._y - coin37._y;
coinx38 = bg._x - coin38._x;
coiny38 = bg._y - coin38._y;
coinx39 = bg._x - coin39._x;
coiny39 = bg._y - coin39._y;
coinx40 = bg._x - coin40._x;
coiny40 = bg._y - coin40._y;
portaled = false;
magix = bg._x - magicswitch._x;
magiy = bg._y - magicswitch._y;
keyx = bg._x - key._x;
keyy = bg._y - key._y;
wallx = bg._x - wall._x;
wally = bg._y - wall._y;
klepto = 0;
onEnterFrame = function () {
i = 0;
while (i <= 40) {
if (gyro.hitTest(_root['coin' + i]) && _root['coin' + i]._visible == true) {
cash += 1;
klepto += 1;
_root['coin' + i].play();
_root['coin' + i]._visible = true;
duplicateMovieClip('star' + pink, 'starz1', 1000);
starzx1 = bg._x - gyro._x;
starzy1 = bg._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz2', 1002);
starzx2 = bg._x - gyro._x;
starzy2 = bg._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz3', 1003);
starzx3 = bg._x - gyro._x;
starzy3 = bg._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz4', 1004);
starzx4 = bg._x - gyro._x;
starzy4 = bg._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz5', 1005);
starzx5 = bg._x - gyro._x;
starzy5 = bg._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz6', 1006);
starzx6 = bg._x - gyro._x;
starzy6 = bg._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
dupstar = 0;
score += 10;
}
if (gyro.hitTest(_root['bcoin' + i]) && _root['bcoin' + i]._visible == true) {
bcash += 1;
gauge.boc.play();
_root['bcoin' + i].play();
_root['bcoin' + i]._visible = true;
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg._x - gyro._x;
starzy1 = bg._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg._x - gyro._x;
starzy2 = bg._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg._x - gyro._x;
starzy3 = bg._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg._x - gyro._x;
starzy4 = bg._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg._x - gyro._x;
starzy5 = bg._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg._x - gyro._x;
starzy6 = bg._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
dupstar = 0;
score += 10;
}
if (gyro.hitTest(magicswitch) && jump < -3) {
jump = 8;
magicswitch.gotoAndStop(2);
wall.gotoAndStop(2);
bg.wall.gotoAndStop(2);
}
if (gyro.hitTest(key) && key._visible == true) {
gate = true;
key._visible = false;
key.gotoAndStop(55);
}
if (gyro.hitTest(letterg) && gletter != true) {
gletter = true;
gyroletterx += 1;
letterg.gotoAndStop(55);
gauge.gyroletters.play();
duplicateMovieClip('star' + pink, 'starz1', 1000);
starzx1 = bg._x - gyro._x;
starzy1 = bg._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz2', 1002);
starzx2 = bg._x - gyro._x;
starzy2 = bg._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz3', 1003);
starzx3 = bg._x - gyro._x;
starzy3 = bg._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz4', 1004);
starzx4 = bg._x - gyro._x;
starzy4 = bg._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz5', 1005);
starzx5 = bg._x - gyro._x;
starzy5 = bg._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz6', 1006);
starzx6 = bg._x - gyro._x;
starzy6 = bg._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
score += 50;
}
if (gyro.hitTest(puzzle) && puzzle._visible == true) {
puzzles += 1;
puzzle._visible = false;
gauge.puzzle.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg._x - gyro._x;
starzy1 = bg._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg._x - gyro._x;
starzy2 = bg._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg._x - gyro._x;
starzy3 = bg._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg._x - gyro._x;
starzy4 = bg._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg._x - gyro._x;
starzy5 = bg._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg._x - gyro._x;
starzy6 = bg._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
score += 100;
}
if (pause != true) {
dustox._x = bg._x - dustx;
dustox._y = bg._y - dusty;
}
if (gyro.hitTest(apple1) && jump < 0) {
apple1.gotoAndStop(105);
jump = 13;
duplicateMovieClip(dust, 'dustox', 993);
dustx = bg._x - gyro._x;
dusty = bg._y - apple1._y;
}
if (gyro.hitTest(apple2) && jump < 0) {
apple2.gotoAndStop(105);
jump = 13;
duplicateMovieClip(dust, 'dustox', 993);
dustx = bg._x - gyro._x;
dusty = bg._y - apple2._y;
}
if (gyro.hitTest(apple3) && jump < 0) {
apple3.gotoAndStop(105);
jump = 13;
duplicateMovieClip(dust, 'dustox', 993);
dustx = bg._x - gyro._x;
dusty = bg._y - apple3._y;
}
if (boomerang1.hitTest(apple1)) {
apple1.gotoAndStop(105);
scaved += 1;
duplicateMovieClip(dust, 'dustox', 993);
dustx = bg._x - boomerang1._x;
dusty = bg._y - boomerang1._y;
}
if (boomerang1.hitTest(apple2)) {
apple2.gotoAndStop(105);
scaved += 1;
duplicateMovieClip(dust, 'dustox', 993);
dustx = bg._x - boomerang1._x;
dusty = bg._y - boomerang1._y;
}
if (boomerang1.hitTest(apple3)) {
apple3.gotoAndStop(105);
scaved += 1;
duplicateMovieClip(dust, 'dustox', 993);
dustx = bg._x - boomerang1._x;
dusty = bg._y - boomerang1._y;
}
if (portalway.core.hitTest(gyro._x, gyro._y, true) && portalway._visible == true && jump < 0) {
gyro.gotoAndStop('teleport');
portaled = true;
pause = true;
}
++i;
}
if (pause != true && gyro._y > mxy && aim != true || pause != true && gyro._y <= mxy && bg._y <= mxbgy && jump < 0 && aim != true || gyro._y > 400 && pause != true && bg._y <= mxbgy && aim != true) {
gyro._y -= jump;
jump -= ht;
}
if (pause != true && aim != true && gyro._y <= mxy || pause != true && gyro._y > 300 && bg._y > mxbgy && jump < 0 && aim != true) {
bg._y += jump;
midg._y += jump / 4;
jump -= ht;
}
if (Key.isDown(65) && pause != true && ht == 0 && duck != true && aim != true && rope != true && whiptimer > whipper) {
jump = 11;
ht = 0.5;
gyro.gotoAndPlay('jump');
}
if (Key.isDown(65) && aim != true && pause != true && ht == 0 && duck == true && rope != true && whiptimer > whipper) {
jump = 13;
ht = 0.5;
duck = false;
motion = 0;
gyro.gotoAndPlay('boostjump');
}
if (Key.isDown(40) && aim != true && pause != true && ht == 0 && rope != true && whiptimer > whipper && att <= 1.8) {
duck = true;
gyro.gotoAndStop('duck');
}
if (!Key.isDown(40) && pause != true && duck == true && rope != true && whiptimer > whipper && att <= 1.8) {
duck = false;
gyro.gotoAndStop(1);
}
if (bg.core.hitTest(gyro._x, gyro._y + 35, true) && jump < -3 && whiptimer > whipper && att <= 1.8) {
gyro.gotoAndStop(1);
jump = 0;
motion = 9;
casc = 0;
ht = 0;
}
if (!bg.core.hitTest(gyro._x, gyro._y + 45, true) && ht == 0 && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.gotoAndPlay('ballup');
ht = 0.5;
}
for (;;) {
if (!(bg.core.hitTest(gyro._x, gyro._y + 35, true) && whiptimer > whipper && jump < 0.7)) break;
gyro._y -= 0.1;
}
if (Key.isDown(39) && pause != true && duck != true && aim != true && gyro._x <= mxx && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.play();
goright = true;
goleft = false;
gyro._x += motion;
gyro._xscale = 80;
}
if (Key.isDown(37) && pause != true && duck != true && aim != true && gyro._x >= mnx && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.play();
goleft = true;
goright = false;
gyro._x -= motion;
gyro._xscale = -80;
}
if (Key.isDown(39) && pause != true && duck != true && aim != true && gyro._x > mxx && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.play();
goright = true;
goleft = false;
bg._x -= motion;
midg._x -= motion / 30;
gyro._xscale = 80;
}
if (Key.isDown(37) && pause != true && duck != true && aim != true && gyro._x < mnx && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.play();
goleft = true;
goright = false;
bg._x += motion;
midg._x += motion / 30;
gyro._xscale = -80;
}
if (!Key.isDown(37) && ht == 0 && pause != true && duck != true && aim != true && goleft == true && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.gotoAndStop(1);
goleft = false;
}
if (!Key.isDown(39) && ht == 0 && pause != true && duck != true && aim != true && goright == true && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.gotoAndStop(1);
goright = false;
}
if (Key.isDown(39) && ropeduck != true && pause != true && duck != true && aim != true && gyro._x <= mxx && rope == true && whiptimer > whipper && att <= 1.8) {
gyro.play();
goright = true;
goleft = false;
gyro._x += motion / 2;
gyro._xscale = 80;
}
if (Key.isDown(37) && ropeduck != true && pause != true && duck != true && aim != true && gyro._x >= mnx && rope == true && whiptimer > whipper && att <= 1.8) {
gyro.play();
goleft = true;
goright = false;
gyro._x -= motion / 2;
gyro._xscale = -80;
}
if (Key.isDown(39) && ropeduck != true && pause != true && duck != true && aim != true && gyro._x > mxx && rope == true && whiptimer > whipper && att <= 1.8) {
gyro.play();
goright = true;
goleft = false;
bg._x -= motion / 2;
midg._x -= motion / 60;
gyro._xscale = 80;
}
if (Key.isDown(37) && ropeduck != true && pause != true && duck != true && aim != true && gyro._x < mnx && rope == true && whiptimer > whipper && att <= 1.8) {
gyro.play();
goleft = true;
goright = false;
bg._x += motion / 2;
midg._x += motion / 60;
gyro._xscale = -80;
}
if (!Key.isDown(37) && ropeduck != true && ht == 0 && pause != true && duck != true && aim != true && goleft == true && rope == true && whiptimer > whipper) {
gyro.gotoAndStop('rope');
goleft = false;
}
if (!Key.isDown(39) && ropeduck != true && ht == 0 && pause != true && duck != true && aim != true && goright == true && rope == true && whiptimer > whipper) {
gyro.gotoAndStop('rope');
goright = false;
}
if (Key.isDown(38) && rope == true && pause != true) {
gyro.gotoAndStop('duckrope');
ropeduck = true;
}
if (!Key.isDown(38) && rope == true && pause != true && ropeduck == true) {
gyro.gotoAndStop('rope');
ropeduck = false;
}
if (bg.rope.hitTest(gyro._x, gyro._y - 40, true) && casc <= 0 && rope != true && whiptimer > whipper && att <= 1.8) {
rope = true;
duck = false;
ropeon = 1;
motion = 8;
gyro.gotoAndStop('rope');
jump = 0;
ht = 0;
}
if (Key.isDown(65) && Key.isDown(40) && rope == true && pause != true) {
jump = -7;
ht = 0.5;
casc = 40;
gyro.gotoAndPlay('ballup');
rope = false;
}
if (Key.isDown(65) && !Key.isDown(40) && rope == true && pause != true) {
jump = 9;
ht = 0.5;
zendozen = true;
gyro.gotoAndPlay('ballup');
rope = false;
}
if (!Key.isDown(65)) {
zendozen = false;
}
if (rope == true) {
ht = 0;
jump = 0;
}
for (;;) {
if (!(bg.rope.hitTest(gyro._x, gyro._y - 40, true) && rope != true && whiptimer > whipper && att <= 1.8)) break;
rope = true;
motion = 8;
gyro._y -= 0.1;
}
if (!bg.rope.hitTest(gyro._x, gyro._y - 40, true) && rope == true && ropeon == 1 && whiptimer > whipper && att <= 1.8) {
rope = false;
ht = 0.5;
jump = -2;
gyro.gotoAndPlay('ballup');
ropeon = 0;
}
if (pause != true && gyro._x <= mxx && gyro._xscale >= 0 || pause != true && gyro._xscale < 0 && gyro._x >= mnx && att <= 1.8) {
gyro._x += att * (gyro._xscale / 80);
att *= 0.9300000000000001;
}
if (pause != true && gyro._x > mxx && gyro._xscale >= 0 || pause != true && gyro._xscale < 0 && gyro._x < mnx && att <= 1.8) {
bg._x -= att * (gyro._xscale / 80);
att *= 0.9300000000000001;
}
if (pause != true && gyro._x > mxx && gyro._xscale >= 0 || pause != true && gyro._xscale < 0 && gyro._x < mnx && att <= 1.8) {
bg._x -= att * (gyro._xscale / 80);
att *= 0.9300000000000001;
}
if (bg.wall.hitTest(gyro._x + 40, gyro._y, true)) {
gyro._x -= motion;
}
while (bg.wall.hitTest(gyro._x + 40, gyro._y, true)) {
gyro._x -= 0.1;
}
if (bg.wall.hitTest(gyro._x - 40, gyro._y, true)) {
gyro._x += motion;
}
while (bg.wall.hitTest(gyro._x - 40, gyro._y, true)) {
gyro._x += 0.1;
}
if (gyro._y < 200 && aim != true && trap != true && ht == 0 && dead != true && climb != true) {
gyro._y += bett / 4;
bg._y += bett / 4;
}
if (bg._y <= mxbgy) {
bg._y = mxbgy;
}
if (gyro._y > 330 && aim != true && bg._y > mxbgy && trap != true && dead != true && climb != true) {
gyro._y += bett;
bg._y += bett;
}
if (pause != true) {
bett = (330 - gyro._y) / 5;
}
if (midg._y < 200) {
midg._y = 200;
}
if (gyro._x < mnx - 30) {
bg._x += mot / 20;
midg._x += mot / 600;
gyro._x += mot / 20;
}
if (gyro._x > mxx + 30) {
bg._x += mot / 20;
midg._x += mot / 600;
gyro._x += mot / 20;
}
if (benny < score) {
benny += 1;
}
if (pause != true) {
starzx1 += starburst1;
starburst1 *= 0.94;
starzy1 += starjump1;
starjump1 -= 0.5;
starzx2 += starburst2;
starburst2 *= 0.94;
starzy2 += starjump2;
starjump2 -= 0.5;
starzx3 += starburst3;
starburst3 *= 0.94;
starzy3 += starjump3;
starjump3 -= 0.5;
starzx4 += starburst4;
starburst4 *= 0.94;
starzy4 += starjump4;
starjump4 -= 0.5;
starzx5 += starburst5;
starburst5 *= 0.94;
starzy5 += starjump5;
starjump5 -= 0.5;
starzx6 += starburst6;
starburst6 *= 0.94;
starzy6 += starjump6;
starjump6 -= 0.5;
}
if (gyro._y > 1700 && lives > 0) {
lives -= 1;
gauge.gorp.play();
gyro._x = bg._x - intx;
gyro._y = -300;
scratch += 1;
}
if (lives <= 0) {
gameover.play();
portaled = true;
pause = true;
}
if (pause != true) {
whiptimer += 1;
boomx1 -= trajectoryx1;
boomy1 += trajectoryy1;
trajectoryx1 -= ben;
trajectoryy1 -= ken;
boomtimer += 1;
dupstar += 1;
}
if (boomerang1._x > gyro._x) {
ben = 0.5;
}
if (boomerang1._x < gyro._x) {
ben = -0.5;
}
if (boomerang1._y > gyro._y + 20) {
ken = -0.5;
}
if (boomerang1._y < gyro._y - 20) {
ken = 0.5;
}
if (boomerang1._y < gyro._y + 20 && boomerang1._y > gyro._y - 20) {
ken = 0;
scaved = 0;
trajectoryy1 = 0;
}
if (boomer <= 0 && dupstar > 5) {
duplicateMovieClip('star' + type, 'star' + stardu, stardu + 100);
_root['starx' + stardu] = bg._x - boomerang1._x;
_root['stary' + stardu] = bg._y - boomerang1._y;
_root['star' + stardu]._rotation = Math.random() * 360;
stardu += 1;
dupstar = 0;
}
if (stardu > 5) {
stardu = 1;
}
if (Key.isDown(83) && jump <= 0 && ht == 0 && rope != true && aim != true && boomer > 0 && pause != true && duck != true && aim != true && whiptimer > whipper && weapon == 'boomerang') {
aim = true;
dupstar = 0;
ror = 0;
}
if (aim == true) {
gyro.gotoAndStop('aim');
arrows._x = gyro._x;
arrows._y = gyro._y;
arrows._visible = true;
arrows._rotation = ror * (gyro._xscale / 80);
arrows._xscale = gyro._xscale * 1.25;
}
if (aim != true) {
arrows._visible = false;
}
if (aim == true && Key.isDown(40) && ror < 60) {
ror += 5;
arrows.play();
}
if (aim == true && Key.isDown(38) && ror > -60) {
ror -= 5;
arrows.play();
}
if (boomerang1._x > gyro._x - 50 && boomerang1._x < gyro._x + 50 && boomerang1._y > gyro._y - 50 && boomerang1._y < gyro._y + 50 && boomtimer > 50) {
boomer = 1;
removeMovieClip(boomerang1);
}
if (!Key.isDown(83) && aim == true && pause != true && boomer > 0 && whiptimer > whipper && duck != true) {
duplicateMovieClip('boomerang' + type, 'boomerang' + boomer, 200 + boomer);
stardu = 1;
_root['boomx' + boomer] = bg._x - gyro._x;
_root['boomy' + boomer] = bg._y - gyro._y - 50 * Math.sin(ror * 0.0174532925199433);
gyro.gotoAndPlay('boomerang');
_root['trajectoryx' + boomer] = 23 * Math.cos(ror * 0.0174532925199433) * (gyro._xscale / 80);
_root['glip' + boomer] = 1 * (gyro._xscale / 80);
_root['trajectoryy' + boomer] = -23 * Math.sin(ror * 0.0174532925199433);
_root['boomacc' + boomer] = 0;
aim = false;
ht = 0;
jump = 0;
ben = 0.5;
ken = 0.5;
boomer = 0;
whiptimer = 0;
whipper = 20;
boomtimer = 0;
}
if (cohert == true && !Key.isDown(67)) {
cohert = false;
}
if (Key.isDown(67) && cohert != true && pause != true && portaled != true) {
pause = true;
cohert = true;
gyro.stop();
}
if (Key.isDown(67) && cohert != true && pause == true && portaled != true) {
pause = false;
cohert = true;
}
if (pause == true && portaled != true) {
gyro.stop();
pausemen._visible = true;
gauge.boc.gotoAndPlay(60);
gauge.puzzle.gotoAndPlay(60);
gauge.gyroletters.gotoAndPlay(60);
gyro.goop.gotoAndPlay(1);
}
if (pause != true) {
pausemen._visible = false;
}
if (pause == true) {
_quality = 'High';
}
if (pause != true && qset >= 3) {
_quality = 'High';
}
if (pause != true && qset == 2) {
_quality = 'Medium';
}
if (pause != true && qset <= 1) {
_quality = 'Low';
}
boomerang1._x = bg._x - boomx1;
boomerang1._y = bg._y - boomy1;
star1._x = bg._x - starx1;
star1._y = bg._y - stary1;
star2._x = bg._x - starx2;
star2._y = bg._y - stary2;
star3._x = bg._x - starx3;
star3._y = bg._y - stary3;
star4._x = bg._x - starx4;
star4._y = bg._y - stary4;
star5._x = bg._x - starx5;
star5._y = bg._y - stary5;
gauge.blade.gotoAndStop(weapon);
bcoin1._x = bg._x - bcoinx1;
bcoin1._y = bg._y - bcoiny1;
bcoin2._x = bg._x - bcoinx2;
bcoin2._y = bg._y - bcoiny2;
bcoin3._x = bg._x - bcoinx3;
bcoin3._y = bg._y - bcoiny3;
bcoin4._x = bg._x - bcoinx4;
bcoin4._y = bg._y - bcoiny4;
bcoin5._x = bg._x - bcoinx5;
bcoin5._y = bg._y - bcoiny5;
coin1._x = bg._x - coinx1;
coin1._y = bg._y - coiny1;
coin2._x = bg._x - coinx2;
coin2._y = bg._y - coiny2;
coin3._x = bg._x - coinx3;
coin3._y = bg._y - coiny3;
coin4._x = bg._x - coinx4;
coin4._y = bg._y - coiny4;
coin5._x = bg._x - coinx5;
coin5._y = bg._y - coiny5;
coin6._x = bg._x - coinx6;
coin6._y = bg._y - coiny6;
coin7._x = bg._x - coinx7;
coin7._y = bg._y - coiny7;
coin8._x = bg._x - coinx8;
coin8._y = bg._y - coiny8;
coin9._x = bg._x - coinx9;
coin9._y = bg._y - coiny9;
coin10._x = bg._x - coinx10;
coin10._y = bg._y - coiny10;
coin11._x = bg._x - coinx11;
coin11._y = bg._y - coiny11;
coin12._x = bg._x - coinx12;
coin12._y = bg._y - coiny12;
coin13._x = bg._x - coinx13;
coin13._y = bg._y - coiny13;
coin14._x = bg._x - coinx14;
coin14._y = bg._y - coiny14;
coin15._x = bg._x - coinx15;
coin15._y = bg._y - coiny15;
coin16._x = bg._x - coinx16;
coin16._y = bg._y - coiny16;
coin17._x = bg._x - coinx17;
coin17._y = bg._y - coiny17;
coin18._x = bg._x - coinx18;
coin18._y = bg._y - coiny18;
coin19._x = bg._x - coinx19;
coin19._y = bg._y - coiny19;
coin20._x = bg._x - coinx20;
coin20._y = bg._y - coiny20;
coin21._x = bg._x - coinx21;
coin21._y = bg._y - coiny21;
coin22._x = bg._x - coinx22;
coin22._y = bg._y - coiny22;
coin23._x = bg._x - coinx23;
coin23._y = bg._y - coiny23;
coin24._x = bg._x - coinx24;
coin24._y = bg._y - coiny24;
coin25._x = bg._x - coinx25;
coin25._y = bg._y - coiny25;
coin26._x = bg._x - coinx26;
coin6._y = bg._y - coiny26;
coin27._x = bg._x - coinx27;
coin27._y = bg._y - coiny27;
coin28._x = bg._x - coinx28;
coin28._y = bg._y - coiny28;
coin29._x = bg._x - coinx29;
coin29._y = bg._y - coiny29;
coin30._x = bg._x - coinx30;
coin30._y = bg._y - coiny30;
coin31._x = bg._x - coinx31;
coin31._y = bg._y - coiny31;
coin32._x = bg._x - coinx32;
coin32._y = bg._y - coiny32;
coin33._x = bg._x - coinx33;
coin33._y = bg._y - coiny33;
coin34._x = bg._x - coinx34;
coin34._y = bg._y - coiny34;
coin35._x = bg._x - coinx35;
coin35._y = bg._y - coiny35;
coin36._x = bg._x - coinx36;
coin36._y = bg._y - coiny36;
coin37._x = bg._x - coinx37;
coin37._y = bg._y - coiny37;
coin38._x = bg._x - coinx38;
coin38._y = bg._y - coiny38;
coin39._x = bg._x - coinx39;
coin39._y = bg._y - coiny39;
coin40._x = bg._x - coinx40;
coin40._y = bg._y - coiny40;
magicswitch._x = bg._x - magix;
magicswitch._y = bg._y - magiy;
gauge.lives = lives;
gauge.cash = cash;
gauge.score = benny;
gauge.boc.count = bcash;
starz1._x = bg._x - starzx1;
starz1._y = bg._y - starzy1;
starz2._x = bg._x - starzx2;
starz2._y = bg._y - starzy2;
starz3._x = bg._x - starzx3;
starz3._y = bg._y - starzy3;
starz4._x = bg._x - starzx4;
starz4._y = bg._y - starzy4;
starz5._x = bg._x - starzx5;
starz5._y = bg._y - starzy5;
starz6._x = bg._x - starzx6;
starz6._y = bg._y - starzy6;
mot = 300 - gyro._x;
key._x = bg._x - keyx;
key._y = bg._y - keyy;
letterg._x = bg._x - glx;
letterg._y = bg._y - gly;
gauge.gyroletters.letterg._visible = gletter;
gauge.gyroletters.lettery._visible = yletter;
gauge.gyroletters.letterr._visible = rletter;
gauge.gyroletters.lettero._visible = oletter;
portalway._visible = gate;
wall._x = bg._x - wallx;
wall._y = bg._y - wally;
dusty._x = bg._x - dustox;
dusty._y = bg._x - dustoy;
puzzle._x = bg._x - pzx;
puzzle._y = bg._y - pzy;
gauge.puzzle.count = puzzles;
portalway._x = bg._x - portx;
portalway._y = bg._y - porty;
apple1._x = bg._x - apx1;
apple1._y = bg._y - apy1;
apple3._x = bg._x - apx3;
apple3._y = bg._y - apy3;
apple2._x = bg._x - apx2;
apple2._y = bg._y - apy2;
};
}
movieClip 457 {
}
movieClip 459 {
}
movieClip 461 {
}
movieClip 464 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 469 {
}
movieClip 471 {
}
movieClip 472 {
}
movieClip 474 {
}
movieClip 476 {
}
movieClip 477 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
// unknown tag 88 length 61
// unknown tag 88 length 61
movieClip 488 {
frame 13 {
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.data.goals1 = _root.goals1;
savefile.data.goals2 = _root.goals2;
savefile.data.goals3 = _root.goals3;
savefile.data.goals4 = _root.goals4;
savefile.data.achieva1 = _root.achieva1;
savefile.data.achieva2 = _root.achieva2;
savefile.data.achieva3 = _root.achieva3;
savefile.data.achieva4 = _root.achieva4;
savefile.data.achieva5 = _root.achieva5;
savefile.data.achieva6 = _root.achieva6;
savefile.data.achievb1 = _root.achievb1;
savefile.data.achievb2 = _root.achievb2;
savefile.data.achievb3 = _root.achievb3;
savefile.data.achievb4 = _root.achievb4;
savefile.data.achievb5 = _root.achievb5;
savefile.data.achievb6 = _root.achievb6;
savefile.data.achievc1 = _root.achievc1;
savefile.data.achievc2 = _root.achievc2;
savefile.data.achievc3 = _root.achievc3;
savefile.data.achievc4 = _root.achievc4;
savefile.data.achievc5 = _root.achievc5;
savefile.data.achievc6 = _root.achievc6;
savefile.flush();
}
frame 92 {
stop();
}
frame 103 {
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.data.goals1 = _root.goals1;
savefile.data.goals2 = _root.goals2;
savefile.data.goals3 = _root.goals3;
savefile.data.goals4 = _root.goals4;
savefile.data.achieva1 = _root.achieva1;
savefile.data.achieva2 = _root.achieva2;
savefile.data.achieva3 = _root.achieva3;
savefile.data.achieva4 = _root.achieva4;
savefile.data.achieva5 = _root.achieva5;
savefile.data.achieva6 = _root.achieva6;
savefile.data.achievb1 = _root.achievb1;
savefile.data.achievb2 = _root.achievb2;
savefile.data.achievb3 = _root.achievb3;
savefile.data.achievb4 = _root.achievb4;
savefile.data.achievb5 = _root.achievb5;
savefile.data.achievb6 = _root.achievb6;
savefile.data.achievc1 = _root.achievc1;
savefile.data.achievc2 = _root.achievc2;
savefile.data.achievc3 = _root.achievc3;
savefile.data.achievc4 = _root.achievc4;
savefile.data.achievc5 = _root.achievc5;
savefile.data.achievc6 = _root.achievc6;
savefile.flush();
}
frame 184 {
stop();
}
frame 259 {
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.data.goals1 = _root.goals1;
savefile.data.goals2 = _root.goals2;
savefile.data.goals3 = _root.goals3;
savefile.data.goals4 = _root.goals4;
savefile.data.achieva1 = _root.achieva1;
savefile.data.achieva2 = _root.achieva2;
savefile.data.achieva3 = _root.achieva3;
savefile.data.achieva4 = _root.achieva4;
savefile.data.achieva5 = _root.achieva5;
savefile.data.achieva6 = _root.achieva6;
savefile.data.achievb1 = _root.achievb1;
savefile.data.achievb2 = _root.achievb2;
savefile.data.achievb3 = _root.achievb3;
savefile.data.achievb4 = _root.achievb4;
savefile.data.achievb5 = _root.achievb5;
savefile.data.achievb6 = _root.achievb6;
savefile.data.achievc1 = _root.achievc1;
savefile.data.achievc2 = _root.achievc2;
savefile.data.achievc3 = _root.achievc3;
savefile.data.achievc4 = _root.achievc4;
savefile.data.achievc5 = _root.achievc5;
savefile.data.achievc6 = _root.achievc6;
savefile.flush();
}
frame 352 {
stop();
}
frame 509 {
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.data.goals1 = _root.goals1;
savefile.data.goals2 = _root.goals2;
savefile.data.goals3 = _root.goals3;
savefile.data.goals4 = _root.goals4;
savefile.data.achieva1 = _root.achieva1;
savefile.data.achieva2 = _root.achieva2;
savefile.data.achieva3 = _root.achieva3;
savefile.data.achieva4 = _root.achieva4;
savefile.data.achieva5 = _root.achieva5;
savefile.data.achieva6 = _root.achieva6;
savefile.data.achievb1 = _root.achievb1;
savefile.data.achievb2 = _root.achievb2;
savefile.data.achievb3 = _root.achievb3;
savefile.data.achievb4 = _root.achievb4;
savefile.data.achievb5 = _root.achievb5;
savefile.data.achievb6 = _root.achievb6;
savefile.data.achievc1 = _root.achievc1;
savefile.data.achievc2 = _root.achievc2;
savefile.data.achievc3 = _root.achievc3;
savefile.data.achievc4 = _root.achievc4;
savefile.data.achievc5 = _root.achievc5;
savefile.data.achievc6 = _root.achievc6;
savefile.flush();
}
frame 540 {
stop();
}
frame 661 {
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.data.goals1 = _root.goals1;
savefile.data.goals2 = _root.goals2;
savefile.data.goals3 = _root.goals3;
savefile.data.goals4 = _root.goals4;
savefile.data.achieva1 = _root.achieva1;
savefile.data.achieva2 = _root.achieva2;
savefile.data.achieva3 = _root.achieva3;
savefile.data.achieva4 = _root.achieva4;
savefile.data.achieva5 = _root.achieva5;
savefile.data.achieva6 = _root.achieva6;
savefile.data.achievb1 = _root.achievb1;
savefile.data.achievb2 = _root.achievb2;
savefile.data.achievb3 = _root.achievb3;
savefile.data.achievb4 = _root.achievb4;
savefile.data.achievb5 = _root.achievb5;
savefile.data.achievb6 = _root.achievb6;
savefile.data.achievc1 = _root.achievc1;
savefile.data.achievc2 = _root.achievc2;
savefile.data.achievc3 = _root.achievc3;
savefile.data.achievc4 = _root.achievc4;
savefile.data.achievc5 = _root.achievc5;
savefile.data.achievc6 = _root.achievc6;
savefile.flush();
}
frame 728 {
stop();
}
frame 852 {
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.data.goals1 = _root.goals1;
savefile.data.goals2 = _root.goals2;
savefile.data.goals3 = _root.goals3;
savefile.data.goals4 = _root.goals4;
savefile.data.achieva1 = _root.achieva1;
savefile.data.achieva2 = _root.achieva2;
savefile.data.achieva3 = _root.achieva3;
savefile.data.achieva4 = _root.achieva4;
savefile.data.achieva5 = _root.achieva5;
savefile.data.achieva6 = _root.achieva6;
savefile.data.achievb1 = _root.achievb1;
savefile.data.achievb2 = _root.achievb2;
savefile.data.achievb3 = _root.achievb3;
savefile.data.achievb4 = _root.achievb4;
savefile.data.achievb5 = _root.achievb5;
savefile.data.achievb6 = _root.achievb6;
savefile.data.achievc1 = _root.achievc1;
savefile.data.achievc2 = _root.achievc2;
savefile.data.achievc3 = _root.achievc3;
savefile.data.achievc4 = _root.achievc4;
savefile.data.achievc5 = _root.achievc5;
savefile.data.achievc6 = _root.achievc6;
savefile.flush();
}
frame 916 {
stop();
}
}
movieClip 490 {
}
movieClip 492 {
}
movieClip 494 {
}
movieClip 495 {
}
movieClip 496 {
frame 100 {
gotoAndPlay(1);
}
frame 105 {
play();
}
frame 110 {
stop();
}
}
movieClip 498 {
}
movieClip 500 {
}
movieClip 502 {
}
movieClip 504 {
}
movieClip 506 {
}
movieClip 508 {
}
movieClip 510 {
}
movieClip 512 {
}
movieClip 513 {
}
movieClip 555 {
}
movieClip 571 {
}
movieClip 575 {
}
movieClip 580 {
}
movieClip 584 {
}
movieClip 586 {
}
movieClip 588 {
frame 16 {
stop();
}
}
movieClip 591 {
frame 21 {
stop();
_root.tran.play();
}
}
movieClip 599 {
}
movieClip 601 {
}
movieClip 607 {
frame 44 {
stop();
}
}
movieClip 629 {
frame 35 {
stop();
}
}
movieClip 632 {
}
movieClip 633 {
}
movieClip 635 {
}
movieClip 640 {
frame 1 {
stop();
}
}
movieClip 641 {
frame 40 {
stop();
}
}
movieClip 643 {
}
movieClip 644 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 650 {
}
movieClip 659 {
}
movieClip 661 {
}
movieClip 663 {
}
movieClip 665 {
}
movieClip 668 {
}
movieClip 670 {
}
movieClip 672 {
}
movieClip 674 {
}
movieClip 675 {
}
movieClip 678 {
}
movieClip 680 {
}
movieClip 682 {
}
movieClip 686 {
}
movieClip 700 {
}
movieClip 702 {
}
movieClip 704 {
}
movieClip 706 {
}
movieClip 709 {
}
movieClip 710 {
}
movieClip 712 {
}
movieClip 714 {
}
movieClip 716 {
}
movieClip 720 {
}
movieClip 722 {
}
movieClip 724 {
}
movieClip 726 {
}
movieClip 727 {
}
movieClip 729 {
}
movieClip 731 {
}
movieClip 733 {
}
movieClip 735 {
}
movieClip 737 {
}
movieClip 739 {
}
movieClip 741 {
}
movieClip 743 {
}
movieClip 745 {
}
movieClip 747 {
}
movieClip 749 {
}
movieClip 751 {
}
movieClip 753 {
}
movieClip 755 {
}
movieClip 756 {
}
movieClip 757 {
frame 1 {
stop();
}
frame 34 {
gotoAndPlay('run');
}
frame 36 {
play();
}
frame 53 {
if (_root.rope == true) {
_root.gyro.gotoAndStop('rope');
}
}
frame 54 {
if (_root.rope == true) {
_root.gyro.gotoAndStop('rope');
}
}
frame 55 {
if (_root.rope == true) {
_root.gyro.gotoAndStop('rope');
}
}
frame 56 {
if (_root.rope == true) {
_root.gyro.gotoAndStop('rope');
}
}
frame 57 {
if (_root.rope == true) {
_root.gyro.gotoAndStop('rope');
}
}
frame 58 {
if (_root.rope == true) {
_root.gyro.gotoAndStop('rope');
}
}
frame 59 {
if (_root.rope == true) {
_root.gyro.gotoAndStop('rope');
}
}
frame 63 {
gotoAndPlay(53);
}
frame 65 {
play();
}
frame 98 {
gotoAndPlay(45);
}
frame 106 {
stop();
}
frame 165 {
gotoAndPlay(110);
}
frame 175 {
_root.ht = 0.5;
_root.jump = 10;
}
frame 187 {
gotoAndStop(1);
}
frame 215 {
_root.jump = -20;
}
frame 216 {
gotoAndPlay(53);
}
frame 250 {
gotoAndStop(1);
}
frame 251 {
stop();
}
frame 289 {
stop();
}
frame 322 {
gotoAndPlay('spiral');
}
frame 326 {
stopAllSounds();
}
frame 437 {
gotoAndPlay('spiral');
}
frame 437 {
gotoAndStop(1);
}
frame 524 {
gotoAndPlay('climber');
}
frame 526 {
stop();
}
frame 607 {
stopAllSounds();
}
frame 1050 {
gotoAndStop(1);
}
}
movieClip 758 {
}
movieClip 760 {
}
movieClip 770 {
}
movieClip 771 {
}
movieClip 772 {
frame 1 {
stop();
}
}
movieClip 775 {
frame 26 {
stop();
}
}
movieClip 777 {
frame 45 {
stop();
}
}
movieClip 779 {
frame 26 {
stop();
}
}
movieClip 787 {
}
movieClip 788 {
}
movieClip 790 {
}
movieClip 791 {
frame 40 {
stop();
}
}
movieClip 794 {
}
movieClip 795 {
}
movieClip 796 {
}
movieClip 798 {
}
movieClip 800 {
}
movieClip 802 {
}
movieClip 804 {
}
movieClip 805 {
frame 18 {
stop();
}
}
movieClip 806 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
// unknown tag 88 length 41
movieClip 810 {
frame 1 {
stop();
}
frame 19 {
gotoAndStop(1);
}
}
movieClip 817 {
}
movieClip 818 {
frame 1 {
stop();
}
}
movieClip 819 {
frame 1 {
stop();
}
instance of movieClip 818 {
onClipEvent (enterFrame) {
this.gotoAndStop(_root.lives);
}
}
instance of movieClip 818 {
onClipEvent (enterFrame) {
this.gotoAndStop(_root.lives);
}
}
}
movieClip 826 {
}
movieClip 828 {
}
movieClip 829 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 831 {
frame 1 {
stop();
}
frame 119 {
gotoAndStop(1);
}
}
movieClip 836 {
frame 1 {
stop();
}
}
movieClip 840 {
frame 1 {
stop();
}
}
movieClip 841 {
frame 1 {
stop();
}
}
movieClip 845 {
frame 290 {
stop();
}
}
instance of movieClip 845 {
onClipEvent (load) {
this.swapDepths(9700);
}
}
movieClip 848 {
}
movieClip 850 {
}
movieClip 851 {
frame 1 {
stop();
}
frame 315 {
_root.gotoAndPlay('gover');
}
}
movieClip 855 {
}
movieClip 857 {
}
movieClip 858 {
}
// unknown tag 88 length 90
movieClip 865 {
}
button 866 {
on (release) {
_root.qset = 2;
}
}
button 867 {
on (release) {
_root.qset = 3;
}
}
movieClip 870 {
}
movieClip 873 {
}
movieClip 876 {
}
button 877 {
on (release) {
_root.qset = 1;
}
}
movieClip 878 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 879 {
instance of movieClip 878 {
onClipEvent (enterFrame) {
this.gotoAndStop(_root.qset);
}
}
}
frame 7 {
for (i in _root) {
_root[i].swapDepths(10102);
removeMovieClip(_root[i]);
}
delete eval(onEnterFrame());
}
frame 8 {
delete eval(onEnterFrame());
}
frame 9 {
if (qset == undefined) {
qset = 2;
}
if (qset == 2) {
_quality = 'Medium';
}
if (qset == 1) {
_quality = 'Low';
}
if (qset == 3) {
_quality = 'High';
}
}
frame 9 {
stop();
blue = 'blue';
pink = 'pink';
nero = 1;
reward.gotoAndStop(91);
if (weapon == undefined) {
weapon = 'boomerang';
hammer = true;
}
if (cash == undefined) {
cash = 0;
bcash = 0;
}
if (puzzles == undefined) {
puzzles = 0;
}
if (lives == undefined) {
lives = 9;
}
if (score == undefined) {
score = 0;
benny = 0;
}
torial.swapDepths(10001);
powertimer.swapDepths(9997);
tuto.swapDepths(9998);
pausemen.swapDepths(9999);
gauge.swapDepths(10000);
tran.swapDepths(50000);
wall.swapDepths(500);
gameover.swapDepths(60000);
bg3.core._visible = false;
bg3.wall._visible = false;
gate = false;
key._visible = true;
boomer = 1;
type = 'norm';
jump = 10;
ht = 0.5;
gyro.gotoAndPlay('jump');
mxy = gyro._y - 80;
mxbg3y = bg3._y;
motion = 9;
tutorialsc = true;
mxx = gyro._x + 200;
mnx = gyro._x + 60;
whiptimer = 50;
whipper = 40;
att = 0;
gen = 0.9300000000000001;
intx = bg3._x - gyro._x;
inty = bg3._y - gyro._y;
tbx = bg3._x - tutorboxx._x;
tby = bg3._y - tutorboxx._y;
rainx = bg3._x - raincash._x;
rainy = bg3._y - raincash._y;
if (rainbow1 == undefined) {
rainbow1 = false;
}
if (gletter == undefined) {
gletter = false;
}
if (yletter == undefined) {
yletter = false;
}
if (rletter == undefined) {
rletter = false;
}
if (oletter == undefined) {
oletter = false;
}
springx = bg3._x - spring._x;
springy = bg3._y - spring._y;
gysx1 = bg3._x - gyroswitch1._x;
gysy1 = bg3._y - gyroswitch1._y;
gysx2 = bg3._x - gyroswitch2._x;
gysy2 = bg3._y - gyroswitch2._y;
gysx3 = bg3._x - gyroswitch3._x;
gysy3 = bg3._y - gyroswitch3._y;
glx = bg3._x - lettery._x;
gly = bg3._y - lettery._y;
pzx = bg3._x - puzzle._x;
pzy = bg3._y - puzzle._y;
portx = bg3._x - portalway._x;
porty = bg3._y - portalway._y;
fgbx = bg3._x - flamebox._x;
fgby = bg3._y - flamebox._y;
bcoinbx1 = bg3._x - bcoinb1._x;
bcoinby1 = bg3._y - bcoinb1._y;
bcoinbx2 = bg3._x - bcoinb2._x;
bcoinby2 = bg3._y - bcoinb2._y;
bcoinbx3 = bg3._x - bcoinb3._x;
bcoinby3 = bg3._y - bcoinb3._y;
bcoinbx4 = bg3._x - bcoinb4._x;
bcoinby4 = bg3._y - bcoinb4._y;
bcoinbx5 = bg3._x - bcoinb5._x;
bcoinby5 = bg3._y - bcoinb5._y;
coinbx1 = bg3._x - coinb1._x;
coinby1 = bg3._y - coinb1._y;
coinbx2 = bg3._x - coinb2._x;
coinby2 = bg3._y - coinb2._y;
coinbx3 = bg3._x - coinb3._x;
coinby3 = bg3._y - coinb3._y;
coinbx4 = bg3._x - coinb4._x;
coinby4 = bg3._y - coinb4._y;
coinbx5 = bg3._x - coinb5._x;
coinby5 = bg3._y - coinb5._y;
coinbx6 = bg3._x - coinb6._x;
coinby6 = bg3._y - coinb6._y;
coinbx7 = bg3._x - coinb7._x;
coinby7 = bg3._y - coinb7._y;
coinbx8 = bg3._x - coinb8._x;
coinby8 = bg3._y - coinb8._y;
coinbx9 = bg3._x - coinb9._x;
coinby9 = bg3._y - coinb9._y;
coinbx10 = bg3._x - coinb10._x;
coinby10 = bg3._y - coinb10._y;
coinbx11 = bg3._x - coinb11._x;
coinby11 = bg3._y - coinb11._y;
coinbx12 = bg3._x - coinb12._x;
coinby12 = bg3._y - coinb12._y;
coinbx13 = bg3._x - coinb13._x;
coinby13 = bg3._y - coinb13._y;
coinbx14 = bg3._x - coinb14._x;
coinby14 = bg3._y - coinb14._y;
coinbx15 = bg3._x - coinb15._x;
coinby15 = bg3._y - coinb15._y;
coinbx16 = bg3._x - coinb16._x;
coinby16 = bg3._y - coinb16._y;
coinbx17 = bg3._x - coinb17._x;
coinby17 = bg3._y - coinb17._y;
coinbx18 = bg3._x - coinb18._x;
coinby18 = bg3._y - coinb18._y;
coinbx19 = bg3._x - coinb19._x;
coinby19 = bg3._y - coinb19._y;
coinbx20 = bg3._x - coinb20._x;
coinby20 = bg3._y - coinb20._y;
coinbx21 = bg3._x - coinb21._x;
coinby21 = bg3._y - coinb21._y;
coinbx22 = bg3._x - coinb22._x;
coinby22 = bg3._y - coinb22._y;
coinbx23 = bg3._x - coinb23._x;
coinby23 = bg3._y - coinb23._y;
coinbx24 = bg3._x - coinb24._x;
coinby24 = bg3._y - coinb24._y;
coinbx25 = bg3._x - coinb25._x;
coinby25 = bg3._y - coinb25._y;
coinbx26 = bg3._x - coinb26._x;
coinby26 = bg3._y - coinb26._y;
coinbx27 = bg3._x - coinb27._x;
coinby27 = bg3._y - coinb27._y;
coinbx28 = bg3._x - coinb28._x;
coinby28 = bg3._y - coinb28._y;
coinbx29 = bg3._x - coinb29._x;
coinby29 = bg3._y - coinb29._y;
coinbx30 = bg3._x - coinb30._x;
coinby30 = bg3._y - coinb30._y;
coinbx31 = bg3._x - coinb31._x;
coinby31 = bg3._y - coinb31._y;
coinbx32 = bg3._x - coinb32._x;
coinby32 = bg3._y - coinb32._y;
coinbx33 = bg3._x - coinb33._x;
coinby33 = bg3._y - coinb33._y;
coinbx34 = bg3._x - coinb34._x;
coinby34 = bg3._y - coinb34._y;
coinbx35 = bg3._x - coinb35._x;
coinby35 = bg3._y - coinb35._y;
coinbx36 = bg3._x - coinb36._x;
coinby36 = bg3._y - coinb36._y;
coinbx37 = bg3._x - coinb37._x;
coinby37 = bg3._y - coinb37._y;
coinbx38 = bg3._x - coinb38._x;
coinby38 = bg3._y - coinb38._y;
coinbx39 = bg3._x - coinb39._x;
coinby39 = bg3._y - coinb39._y;
coinbx40 = bg3._x - coinb40._x;
coinby40 = bg3._y - coinb40._y;
portaled = false;
pause = false;
magix = bg3._x - magicswitch._x;
magiy = bg3._y - magicswitch._y;
torial._visible = false;
keyx = bg3._x - key._x;
keyy = bg3._y - key._y;
wallx = bg3._x - wall._x;
wally = bg3._y - wall._y;
bdx1 = bg3._x - baddy1._x;
bdy1 = bg3._y - baddy1._y;
bdx2 = bg3._x - baddy2._x;
bdy2 = bg3._y - baddy2._y;
onEnterFrame = function () {
i = 0;
while (i <= 30) {
if (gyro.hitTest(_root['coinb' + i]) && _root['coinb' + i]._visible == true) {
cash += 1;
klepto += 1;
_root['coinb' + i].play();
_root['coinb' + i]._visible = true;
duplicateMovieClip('star' + pink, 'starz1', 1000);
starzx1 = bg3._x - gyro._x;
starzy1 = bg3._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz2', 1002);
starzx2 = bg3._x - gyro._x;
starzy2 = bg3._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz3', 1003);
starzx3 = bg3._x - gyro._x;
starzy3 = bg3._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz4', 1004);
starzx4 = bg3._x - gyro._x;
starzy4 = bg3._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz5', 1005);
starzx5 = bg3._x - gyro._x;
starzy5 = bg3._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz6', 1006);
starzx6 = bg3._x - gyro._x;
starzy6 = bg3._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
dupstar = 0;
score += 10;
}
if (gyro.hitTest(_root['bcoinb' + i]) && _root['bcoinb' + i]._visible == true) {
bcash += 1;
gauge.boc.play();
_root['bcoinb' + i].play();
_root['bcoinb' + i]._visible = true;
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg3._x - gyro._x;
starzy1 = bg3._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg3._x - gyro._x;
starzy2 = bg3._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg3._x - gyro._x;
starzy3 = bg3._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg3._x - gyro._x;
starzy4 = bg3._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg3._x - gyro._x;
starzy5 = bg3._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg3._x - gyro._x;
starzy6 = bg3._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
dupstar = 0;
score += 10;
}
if (gyro.hitTest(magicswitch) && jump < -3) {
jump = 8;
magicswitch.gotoAndStop(2);
wall.gotoAndStop(2);
bg3.wall.gotoAndStop(2);
}
if (gyro.hitTest(key) && key._visible == true) {
gate = true;
key._visible = false;
key.gotoAndStop(55);
}
if (gyro.hitTest(lettery) && yletter != true) {
yletter = true;
gyroletterx += 1;
lettery.gotoAndStop(55);
gauge.gyroletters.play();
duplicateMovieClip('star' + pink, 'starz1', 1000);
starzx1 = bg3._x - gyro._x;
starzy1 = bg3._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz2', 1002);
starzx2 = bg3._x - gyro._x;
starzy2 = bg3._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz3', 1003);
starzx3 = bg3._x - gyro._x;
starzy3 = bg3._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz4', 1004);
starzx4 = bg3._x - gyro._x;
starzy4 = bg3._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz5', 1005);
starzx5 = bg3._x - gyro._x;
starzy5 = bg3._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz6', 1006);
starzx6 = bg3._x - gyro._x;
starzy6 = bg3._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
score += 50;
}
if (gyro.hitTest(puzzle) && puzzle._visible == true) {
puzzles += 1;
puzzle._visible = false;
gauge.puzzle.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg3._x - gyro._x;
starzy1 = bg3._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg3._x - gyro._x;
starzy2 = bg3._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg3._x - gyro._x;
starzy3 = bg3._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg3._x - gyro._x;
starzy4 = bg3._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg3._x - gyro._x;
starzy5 = bg3._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg3._x - gyro._x;
starzy6 = bg3._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
score += 100;
}
if (gyro.hitTest(raincash) && rainbow1 != true) {
rainbow1 = true;
duplicateMovieClip(reward, 'reward1', 1999);
reward1._x = 300;
reward1._y = 200;
goala3 = true;
}
if (goala3 == true) {
raincash._visible = false;
}
if (goala3 != true) {
raincash._visible = true;
}
if (portalway.core.hitTest(gyro._x, gyro._y, true) && portalway._visible == true && jump < 0) {
gyro.gotoAndStop('teleport');
portaled = true;
pause = true;
}
++i;
}
if (pause != true && gyro._y > mxy && aim != true || pause != true && gyro._y <= mxy && bg3._y <= mxbg3y && jump < 0 && aim != true || gyro._y > 400 && pause != true && bg3._y <= mxbg3y && aim != true) {
gyro._y -= jump;
jump -= ht;
}
if (pause != true && gyro._y <= mxy && aim != true || pause != true && aim != true && gyro._y > 300 && bg3._y > mxbg3y && jump < 0) {
bg3._y += jump;
midg._y += jump / 4;
jump -= ht;
}
if (midg._y < 200) {
midg._y = 200;
}
if (Key.isDown(65) && dead != true && pause != true && ht == 0 && duck != true && aim != true && rope != true && whiptimer > whipper) {
jump = 11;
ht = 0.5;
gyro.gotoAndPlay('jump');
}
if (Key.isDown(65) && dead != true && aim != true && pause != true && ht == 0 && duck == true && rope != true && whiptimer > whipper) {
jump = 13;
ht = 0.5;
duck = false;
motion = 0;
gyro.gotoAndPlay('boostjump');
}
if (Key.isDown(40) && dead != true && aim != true && pause != true && ht == 0 && rope != true && whiptimer > whipper && att <= 1.8) {
duck = true;
gyro.gotoAndStop('duck');
}
if (!Key.isDown(40) && dead != true && pause != true && duck == true && rope != true && whiptimer > whipper && att <= 1.8) {
duck = false;
gyro.gotoAndStop(1);
}
if (gyro.hitTest(bg3.frontier) && achieva5 != true) {
duplicateMovieClip(reward, 'rewarder', 984);
rewarder._x = 300;
rewarder._y = 200;
rewarder.gotoAndPlay(137);
achieva5 = true;
goals1 += 1;
klepto = 0;
}
if (bg3.core.hitTest(gyro._x, gyro._y + 35, true) && dead != true && jump < -3 && whiptimer > whipper && att <= 1.8) {
gyro.gotoAndStop(1);
jump = 0;
motion = 9;
ht = 0;
}
if (!bg3.core.hitTest(gyro._x, gyro._y + 45, true) && dead != true && ht == 0 && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.gotoAndPlay('ballup');
ht = 0.5;
}
for (;;) {
if (!(bg3.core.hitTest(gyro._x, gyro._y + 35, true) && whiptimer > whipper && jump < 0.7)) break;
gyro._y -= 0.1;
}
if (Key.isDown(39) && dead != true && pause != true && duck != true && aim != true && gyro._x <= mxx && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.play();
goright = true;
goleft = false;
gyro._x += motion;
gyro._xscale = 80;
}
if (Key.isDown(37) && dead != true && pause != true && duck != true && aim != true && gyro._x >= mnx && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.play();
goleft = true;
goright = false;
gyro._x -= motion;
gyro._xscale = -80;
}
if (Key.isDown(39) && dead != true && pause != true && duck != true && aim != true && gyro._x > mxx && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.play();
goright = true;
goleft = false;
bg3._x -= motion;
midg._x -= motion / 30;
gyro._xscale = 80;
}
if (Key.isDown(37) && dead != true && pause != true && duck != true && aim != true && gyro._x < mnx && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.play();
goleft = true;
goright = false;
bg3._x += motion;
midg._x += motion / 30;
gyro._xscale = -80;
}
if (!Key.isDown(37) && dead != true && ht == 0 && pause != true && duck != true && aim != true && goleft == true && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.gotoAndStop(1);
goleft = false;
}
if (!Key.isDown(39) && dead != true && ht == 0 && pause != true && duck != true && aim != true && goright == true && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.gotoAndStop(1);
goright = false;
}
if (pause != true && gyro._x <= mxx && gyro._xscale >= 0 || pause != true && gyro._xscale < 0 && gyro._x >= mnx && att <= 1.8) {
gyro._x += att * (gyro._xscale / 80);
att *= 0.9300000000000001;
}
if (pause != true && gyro._x > mxx && gyro._xscale >= 0 || pause != true && gyro._xscale < 0 && gyro._x < mnx && att <= 1.8) {
bg3._x -= att * (gyro._xscale / 80);
att *= 0.9300000000000001;
}
if (pause != true && gyro._x > mxx && gyro._xscale >= 0 || pause != true && gyro._xscale < 0 && gyro._x < mnx && att <= 1.8) {
bg3._x -= att * (gyro._xscale / 80);
att *= 0.9300000000000001;
}
if (bg3.wall.hitTest(gyro._x + 40, gyro._y, true)) {
gyro._x -= motion;
}
while (bg3.wall.hitTest(gyro._x + 40, gyro._y, true)) {
gyro._x -= 0.1;
}
if (bg3.wall.hitTest(gyro._x - 40, gyro._y, true)) {
gyro._x += motion;
}
while (bg3.wall.hitTest(gyro._x - 40, gyro._y, true)) {
gyro._x += 0.1;
}
if (gyro._y < 200 && aim != true && trap != true && ht == 0 && dead != true && climb != true) {
gyro._y += bett / 4;
bg3._y += bett / 4;
}
if (bg3._y <= mxbg3y) {
bg3._y = mxbg3y;
}
if (gyro._y > 330 && aim != true && bg3._y > mxbg3y && trap != true && dead != true && climb != true) {
gyro._y += bett;
bg3._y += bett;
}
if (pause != true) {
bett = (330 - gyro._y) / 5;
}
if (gyro._x < mnx - 30) {
bg3._x += mot / 20;
midg._x += mot / 600;
gyro._x += mot / 20;
}
if (gyro._x > mxx + 30) {
bg3._x += mot / 20;
midg._x += mot / 600;
gyro._x += mot / 20;
}
if (benny < score) {
benny += 1;
}
if (pause != true) {
starzx1 += starburst1;
starburst1 *= 0.94;
starzy1 += starjump1;
starjump1 -= 0.5;
starzx2 += starburst2;
starburst2 *= 0.94;
starzy2 += starjump2;
starjump2 -= 0.5;
starzx3 += starburst3;
starburst3 *= 0.94;
starzy3 += starjump3;
starjump3 -= 0.5;
starzx4 += starburst4;
starburst4 *= 0.94;
starzy4 += starjump4;
starjump4 -= 0.5;
starzx5 += starburst5;
starburst5 *= 0.94;
starzy5 += starjump5;
starjump5 -= 0.5;
starzx6 += starburst6;
starburst6 *= 0.94;
starzy6 += starjump6;
starjump6 -= 0.5;
}
if (gyro._y > 1700 && lives > 0) {
lives -= 1;
gauge.gorp.play();
gyro._x = bg3._x - intx;
gyro._y = -300;
scratch += 1;
}
if (lives <= 0) {
gameover.play();
portaled = true;
pause = true;
}
if (pause != true) {
whiptimer += 1;
boomx1 -= trajectoryx1;
boomy1 += trajectoryy1;
trajectoryx1 -= ben;
trajectoryy1 -= ken;
boomtimer += 1;
dupstar += 1;
}
if (boomerang1._x > gyro._x) {
ben = 0.5;
}
if (boomerang1._x < gyro._x) {
ben = -0.5;
}
if (boomerang1._y > gyro._y + 20) {
ken = -0.5;
}
if (boomerang1._y < gyro._y - 20) {
ken = 0.5;
}
if (boomerang1._y < gyro._y + 20 && boomerang1._y > gyro._y - 20) {
ken = 0;
trajectoryy1 = 0;
}
if (boomer <= 0 && dupstar > 5) {
duplicateMovieClip('star' + type, 'star' + stardu, stardu + 100);
_root['starx' + stardu] = bg3._x - boomerang1._x;
_root['stary' + stardu] = bg3._y - boomerang1._y;
_root['star' + stardu]._rotation = Math.random() * 360;
stardu += 1;
dupstar = 0;
}
if (stardu > 5) {
stardu = 1;
}
if (Key.isDown(83) && dead != true && jump <= 0 && ht == 0 && rope != true && aim != true && boomer > 0 && pause != true && duck != true && aim != true && whiptimer > whipper) {
aim = true;
dupstar = 0;
ror = 0;
}
if (aim == true) {
gyro.gotoAndStop('aim');
arrows._x = gyro._x;
arrows._y = gyro._y;
arrows._visible = true;
arrows._rotation = ror * (gyro._xscale / 80);
arrows._xscale = gyro._xscale * 1.25;
}
if (aim != true) {
arrows._visible = false;
}
if (aim == true && Key.isDown(40) && ror < 60) {
arrows.play();
ror += 5;
}
if (aim == true && Key.isDown(38) && ror > -60) {
arrows.play();
ror -= 5;
}
if (boomerang1._x > gyro._x - 50 && boomerang1._x < gyro._x + 50 && boomerang1._y > gyro._y - 50 && boomerang1._y < gyro._y + 50 && boomtimer > 50) {
boomer = 1;
zex = false;
removeMovieClip(boomerang1);
}
if (!Key.isDown(83) && aim == true && pause != true && boomer > 0 && whiptimer > whipper && duck != true) {
duplicateMovieClip('boomerang' + type, 'boomerang' + boomer, 200 + boomer);
stardu = 1;
_root['boomx' + boomer] = bg3._x - gyro._x;
_root['boomy' + boomer] = bg3._y - gyro._y - 50 * Math.sin(ror * 0.0174532925199433);
gyro.gotoAndPlay('boomerang');
_root['trajectoryx' + boomer] = 23 * Math.cos(ror * 0.0174532925199433) * (gyro._xscale / 80);
_root['glip' + boomer] = 1 * (gyro._xscale / 80);
_root['trajectoryy' + boomer] = -23 * Math.sin(ror * 0.0174532925199433);
_root['boomacc' + boomer] = 0;
aim = false;
ht = 0;
jump = 0;
ben = 0.5;
ken = 0.5;
boomer = 0;
whiptimer = 0;
whipper = 20;
boomtimer = 0;
}
if (nero >= 2) {
}
if (boomerang1.hitTest(gyroswitch1) && nero <= 1) {
gyroswitch1.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg3._x - gyroswitch1._x;
starzy1 = bg3._y - gyroswitch1._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg3._x - gyroswitch1._x;
starzy2 = bg3._y - gyroswitch1._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg3._x - gyroswitch1._x;
starzy3 = bg3._y - gyroswitch1._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg3._x - gyroswitch1._x;
starzy4 = bg3._y - gyroswitch1._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg3._x - gyroswitch1._x;
starzy5 = bg3._y - gyroswitch1._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg3._x - gyroswitch1._x;
starzy6 = bg3._y - gyroswitch1._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
nero = 2;
}
if (boomerang1.hitTest(gyroswitch3) && nero == 2) {
gyroswitch3.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg3._x - gyroswitch3._x;
starzy1 = bg3._y - gyroswitch3._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg3._x - gyroswitch3._x;
starzy2 = bg3._y - gyroswitch3._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg3._x - gyroswitch3._x;
starzy3 = bg3._y - gyroswitch3._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg3._x - gyroswitch3._x;
starzy4 = bg3._y - gyroswitch3._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg3._x - gyroswitch3._x;
starzy5 = bg3._y - gyroswitch3._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg3._x - gyroswitch3._x;
starzy6 = bg3._y - gyroswitch3._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
nero = 3;
}
if (boomerang1.hitTest(gyroswitch2) && nero == 3) {
gyroswitch2.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg3._x - gyroswitch2._x;
starzy1 = bg3._y - gyroswitch2._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg3._x - gyroswitch2._x;
starzy2 = bg3._y - gyroswitch2._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg3._x - gyroswitch2._x;
starzy3 = bg3._y - gyroswitch2._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg3._x - gyroswitch2._x;
starzy4 = bg3._y - gyroswitch2._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg3._x - gyroswitch2._x;
starzy5 = bg3._y - gyroswitch2._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg3._x - gyroswitch2._x;
starzy6 = bg3._y - gyroswitch2._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
nero = 4;
}
if (gyro.hitTest(spring) && jump < 0) {
gyro.gotoAndPlay('spring');
jump = 34;
motion = 0;
starzx1 = bg3._x - spring._x;
starzy1 = bg3._y - spring._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg3._x - spring._x;
starzy2 = bg3._y - spring._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg3._x - spring._x;
starzy3 = bg3._y - spring._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg3._x - spring._x;
starzy4 = bg3._y - spring._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg3._x - spring._x;
starzy5 = bg3._y - spring._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg3._x - spring._x;
starzy6 = bg3._y - spring._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
spring.play();
}
if (cohert == true && !Key.isDown(67)) {
cohert = false;
}
if (Key.isDown(67) && cohert != true && pause != true && coxin != true && portaled != true) {
pause = true;
cohert = true;
gyro.stop();
}
if (Key.isDown(67) && cohert != true && pause == true && portaled != true) {
pause = false;
cohert = true;
}
if (pause == true && torial._visible != true && portaled != true) {
gyro.stop();
gauge.boc.gotoAndPlay(60);
pausemen._visible = true;
gauge.puzzle.gotoAndPlay(60);
gauge.gyroletters.gotoAndPlay(60);
gyro.goop.gotoAndPlay(1);
}
if (pause != true) {
pausemen._visible = false;
}
if (gyro.hitTest(tutorboxx) && jump < 0) {
torial.gotoAndStop(2);
torial._visible = true;
pause = true;
jump = 12;
}
if (Key.isDown(32) && torial._visible == true) {
torial.gotoAndStop(1);
torial._visible = false;
pause = false;
}
if (die == true && pause != true) {
polet += 1;
gyro.gotoAndPlay('death1');
}
if (polet > 150) {
die = false;
dead = false;
gyro._y = -350;
gauge.gorp.play();
gyro._x = bg3._x - intx;
scratch += 1;
lives -= 1;
polet = 0;
}
if (gyro.hitTest(baddy1) && aim != true && stunned1 != true && pause != true && die != true) {
gyro.gotoAndPlay('death1');
baddy1.play();
polet = 1;
dead = true;
die = true;
}
if (boomerang1.hitTest(baddy1) && stunned1 != true && pause != true && die != true) {
baddy1.gotoAndStop('stunned');
starzx1 = bg3._x - baddy1._x;
starzy1 = bg3._y - baddy1._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg3._x - baddy1._x;
starzy2 = bg3._y - baddy1._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg3._x - baddy1._x;
starzy3 = bg3._y - baddy1._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg3._x - baddy1._x;
starzy4 = bg3._y - baddy1._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg3._x - baddy1._x;
starzy5 = bg3._y - baddy1._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg3._x - baddy1._x;
starzy6 = bg3._y - baddy1._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
spring.play();
stunrestore1 = 0;
stunned1 = true;
}
if (pause != true && stunned1 == true) {
stunrestore1 += 1;
}
if (stunrestore1 > 200) {
baddy1.gotoAndStop(1);
stunned1 = false;
stunrestore1 = 0;
}
if (gyro._x < baddy1._x) {
baddy1._xscale = 80;
}
if (gyro._x > baddy1._x) {
baddy1._xscale = -80;
}
if (gyro.hitTest(baddy1) && stunned1 == true && jump < 0 && pause != true && die != true) {
starzx1 = bg3._x - baddy1._x;
starzy1 = bg3._y - baddy1._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg3._x - baddy1._x;
starzy2 = bg3._y - baddy1._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg3._x - baddy1._x;
starzy3 = bg3._y - baddy1._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg3._x - baddy1._x;
starzy4 = bg3._y - baddy1._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg3._x - baddy1._x;
starzy5 = bg3._y - baddy1._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg3._x - baddy1._x;
starzy6 = bg3._y - baddy1._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
spring.play();
baddy1.gotoAndPlay('death');
jump = 14;
}
if (gyro.hitTest(baddy2) && aim != true && stunned2 != true && pause != true && die != true) {
gyro.gotoAndPlay('death1');
baddy2.play();
polet = 1;
dead = true;
die = true;
}
if (boomerang1.hitTest(baddy2) && stunned2 != true && pause != true && die != true) {
baddy2.gotoAndStop('stunned');
starzx1 = bg3._x - baddy2._x;
starzy1 = bg3._y - baddy2._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg3._x - baddy2._x;
starzy2 = bg3._y - baddy2._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg3._x - baddy2._x;
starzy3 = bg3._y - baddy2._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg3._x - baddy2._x;
starzy4 = bg3._y - baddy2._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg3._x - baddy2._x;
starzy5 = bg3._y - baddy2._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg3._x - baddy2._x;
starzy6 = bg3._y - baddy2._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
spring.play();
stunrestore2 = 0;
stunned2 = true;
}
if (pause != true && stunned2 == true) {
stunrestore2 += 1;
}
if (stunrestore2 > 200) {
baddy2.gotoAndStop(1);
stunned2 = false;
stunrestore2 = 0;
}
if (gyro._x < baddy2._x) {
baddy2._xscale = 80;
}
if (gyro._x > baddy2._x) {
baddy2._xscale = -80;
}
if (gyro.hitTest(baddy2) && stunned2 == true && jump < 0 && pause != true && die != true) {
starzx1 = bg3._x - baddy2._x;
starzy1 = bg3._y - baddy2._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg3._x - baddy2._x;
starzy2 = bg3._y - baddy2._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg3._x - baddy2._x;
starzy3 = bg3._y - baddy2._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg3._x - baddy2._x;
starzy4 = bg3._y - baddy2._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg3._x - baddy2._x;
starzy5 = bg3._y - baddy2._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg3._x - baddy2._x;
starzy6 = bg3._y - baddy2._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
spring.play();
baddy2.gotoAndPlay('death');
jump = 14;
}
if (dead == true && gyro._x > 270) {
bg3._x -= 3;
gyro._x -= 3;
}
if (dead == true && gyro._x < 330) {
bg3._x += 3;
gyro._x += 3;
}
if (dead == true && gyro._y < 200) {
bg3._y += 3;
gyro._y += 3;
}
if (dead == true) {
jump = 0;
ht = 0;
}
if (pause == true) {
_quality = 'High';
}
if (pause != true && qset >= 3) {
_quality = 'High';
}
if (pause != true && qset == 2) {
_quality = 'Medium';
}
if (pause != true && qset <= 1) {
_quality = 'Low';
}
boomerang1._x = bg3._x - boomx1;
boomerang1._y = bg3._y - boomy1;
star1._x = bg3._x - starx1;
star1._y = bg3._y - stary1;
star2._x = bg3._x - starx2;
star2._y = bg3._y - stary2;
star3._x = bg3._x - starx3;
star3._y = bg3._y - stary3;
star4._x = bg3._x - starx4;
star4._y = bg3._y - stary4;
star5._x = bg3._x - starx5;
star5._y = bg3._y - stary5;
gauge.blade.gotoAndStop(weapon);
bcoinb1._x = bg3._x - bcoinbx1;
bcoinb1._y = bg3._y - bcoinby1;
bcoinb2._x = bg3._x - bcoinbx2;
bcoinb2._y = bg3._y - bcoinby2;
bcoinb3._x = bg3._x - bcoinbx3;
bcoinb3._y = bg3._y - bcoinby3;
bcoinb4._x = bg3._x - bcoinbx4;
bcoinb4._y = bg3._y - bcoinby4;
bcoinb5._x = bg3._x - bcoinbx5;
bcoinb5._y = bg3._y - bcoinby5;
coinb1._x = bg3._x - coinbx1;
coinb1._y = bg3._y - coinby1;
coinb2._x = bg3._x - coinbx2;
coinb2._y = bg3._y - coinby2;
coinb3._x = bg3._x - coinbx3;
coinb3._y = bg3._y - coinby3;
coinb4._x = bg3._x - coinbx4;
coinb4._y = bg3._y - coinby4;
coinb5._x = bg3._x - coinbx5;
coinb5._y = bg3._y - coinby5;
coinb6._x = bg3._x - coinbx6;
coinb6._y = bg3._y - coinby6;
coinb7._x = bg3._x - coinbx7;
coinb7._y = bg3._y - coinby7;
coinb8._x = bg3._x - coinbx8;
coinb8._y = bg3._y - coinby8;
coinb9._x = bg3._x - coinbx9;
coinb9._y = bg3._y - coinby9;
coinb10._x = bg3._x - coinbx10;
coinb10._y = bg3._y - coinby10;
coinb11._x = bg3._x - coinbx11;
coinb11._y = bg3._y - coinby11;
coinb12._x = bg3._x - coinbx12;
coinb12._y = bg3._y - coinby12;
coinb13._x = bg3._x - coinbx13;
coinb13._y = bg3._y - coinby13;
coinb14._x = bg3._x - coinbx14;
coinb14._y = bg3._y - coinby14;
coinb15._x = bg3._x - coinbx15;
coinb15._y = bg3._y - coinby15;
coinb16._x = bg3._x - coinbx16;
coinb16._y = bg3._y - coinby16;
coinb17._x = bg3._x - coinbx17;
coinb17._y = bg3._y - coinby17;
coinb18._x = bg3._x - coinbx18;
coinb18._y = bg3._y - coinby18;
coinb19._x = bg3._x - coinbx19;
coinb19._y = bg3._y - coinby19;
coinb20._x = bg3._x - coinbx20;
coinb20._y = bg3._y - coinby20;
coinb21._x = bg3._x - coinbx21;
coinb21._y = bg3._y - coinby21;
coinb22._x = bg3._x - coinbx22;
coinb22._y = bg3._y - coinby22;
coinb23._x = bg3._x - coinbx23;
coinb23._y = bg3._y - coinby23;
coinb24._x = bg3._x - coinbx24;
coinb24._y = bg3._y - coinby24;
coinb25._x = bg3._x - coinbx25;
coinb25._y = bg3._y - coinby25;
coinb26._x = bg3._x - coinbx26;
coinb6._y = bg3._y - coinby26;
coinb27._x = bg3._x - coinbx27;
coinb27._y = bg3._y - coinby27;
coinb28._x = bg3._x - coinbx28;
coinb28._y = bg3._y - coinby28;
coinb29._x = bg3._x - coinbx29;
coinb29._y = bg3._y - coinby29;
coinb30._x = bg3._x - coinbx30;
coinb30._y = bg3._y - coinby30;
coinb31._x = bg3._x - coinbx31;
coinb31._y = bg3._y - coinby31;
coinb32._x = bg3._x - coinbx32;
coinb32._y = bg3._y - coinby32;
coinb33._x = bg3._x - coinbx33;
coinb33._y = bg3._y - coinby33;
coinb34._x = bg3._x - coinbx34;
coinb34._y = bg3._y - coinby34;
coinb35._x = bg3._x - coinbx35;
coinb35._y = bg3._y - coinby35;
coinb36._x = bg3._x - coinbx36;
coinb36._y = bg3._y - coinby36;
coinb37._x = bg3._x - coinbx37;
coinb37._y = bg3._y - coinby37;
coinb38._x = bg3._x - coinbx38;
coinb38._y = bg3._y - coinby38;
coinb39._x = bg3._x - coinbx39;
coinb39._y = bg3._y - coinby39;
coinb40._x = bg3._x - coinbx40;
coinb40._y = bg3._y - coinby40;
magicswitch._x = bg3._x - magix;
magicswitch._y = bg3._y - magiy;
gauge.lives = lives;
gauge.cash = cash;
gauge.score = benny;
starz1._x = bg3._x - starzx1;
starz1._y = bg3._y - starzy1;
starz2._x = bg3._x - starzx2;
starz2._y = bg3._y - starzy2;
starz3._x = bg3._x - starzx3;
starz3._y = bg3._y - starzy3;
starz4._x = bg3._x - starzx4;
starz4._y = bg3._y - starzy4;
starz5._x = bg3._x - starzx5;
starz5._y = bg3._y - starzy5;
starz6._x = bg3._x - starzx6;
starz6._y = bg3._y - starzy6;
flamebox._x = bg3._x - fgbx;
flamebox._y = bg3._y - fgby;
mot = 300 - gyro._x;
key._x = bg3._x - keyx;
key._y = bg3._y - keyy;
lettery._x = bg3._x - glx;
lettery._y = bg3._y - gly;
gauge.gyroletters.letterg._visible = gletter;
gauge.gyroletters.lettery._visible = yletter;
gauge.gyroletters.letterr._visible = rletter;
gauge.gyroletters.lettero._visible = oletter;
portalway._visible = gate;
gyroswitch1._x = bg3._x - gysx1;
gyroswitch1._y = bg3._y - gysy1;
gyroswitch2._x = bg3._x - gysx2;
gyroswitch2._y = bg3._y - gysy2;
gyroswitch3._x = bg3._x - gysx3;
gyroswitch3._y = bg3._y - gysy3;
gauge.boc.count = bcash;
wall.gotoAndStop(nero);
spring._x = bg3._x - springx;
spring._y = bg3._y - springy;
wall._x = bg3._x - wallx;
wall._y = bg3._y - wally;
bg3.wall.gotoAndStop(nero);
puzzle._x = bg3._x - pzx;
puzzle._y = bg3._y - pzy;
gauge.puzzle.count = puzzles;
portalway._x = bg3._x - portx;
portalway._y = bg3._y - porty;
tutorboxx._x = bg3._x - tbx;
tutorboxx._y = bg3._y - tby;
raincash._x = bg3._x - rainx;
raincash._y = bg3._y - rainy;
baddy1._x = bg3._x - bdx1;
baddy1._y = bg3._y - bdy1;
baddy2._x = bg3._x - bdx2;
baddy2._y = bg3._y - bdy2;
};
}
movieClip 881 {
}
movieClip 887 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 889 {
}
movieClip 891 {
}
movieClip 893 {
}
movieClip 897 {
}
movieClip 906 {
}
movieClip 907 {
}
movieClip 909 {
}
movieClip 910 {
}
movieClip 911 {
}
movieClip 913 {
}
movieClip 914 {
}
movieClip 916 {
}
movieClip 917 {
}
movieClip 918 {
}
movieClip 919 {
frame 1 {
stop();
}
frame 11 {
stop();
}
}
movieClip 922 {
}
movieClip 923 {
}
movieClip 924 {
frame 1 {
stop();
}
}
instance raincash of movieClip 265 {
onClipEvent (enterFrame) {
if (_root.goala3 == true) {
this.gotoAndStop(10);
}
}
}
movieClip 927 {
frame 121 {
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.data.goals1 = _root.goals1;
savefile.data.goals2 = _root.goals2;
savefile.data.goals3 = _root.goals3;
savefile.data.goals4 = _root.goals4;
savefile.data.achieva1 = _root.achieva1;
savefile.data.achieva2 = _root.achieva2;
savefile.data.achieva3 = _root.achieva3;
savefile.data.achieva4 = _root.achieva4;
savefile.data.achieva5 = _root.achieva5;
savefile.data.achieva6 = _root.achieva6;
savefile.data.achievb1 = _root.achievb1;
savefile.data.achievb2 = _root.achievb2;
savefile.data.achievb3 = _root.achievb3;
savefile.data.achievb4 = _root.achievb4;
savefile.data.achievb5 = _root.achievb5;
savefile.data.achievb6 = _root.achievb6;
savefile.data.achievc1 = _root.achievc1;
savefile.data.achievc2 = _root.achievc2;
savefile.data.achievc3 = _root.achievc3;
savefile.data.achievc4 = _root.achievc4;
savefile.data.achievc5 = _root.achievc5;
savefile.data.achievc6 = _root.achievc6;
savefile.flush();
}
frame 133 {
stop();
}
frame 253 {
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.data.goals1 = _root.goals1;
savefile.data.goals2 = _root.goals2;
savefile.data.goals3 = _root.goals3;
savefile.data.goals4 = _root.goals4;
savefile.data.achieva1 = _root.achieva1;
savefile.data.achieva2 = _root.achieva2;
savefile.data.achieva3 = _root.achieva3;
savefile.data.achieva4 = _root.achieva4;
savefile.data.achieva5 = _root.achieva5;
savefile.data.achieva6 = _root.achieva6;
savefile.data.achievb1 = _root.achievb1;
savefile.data.achievb2 = _root.achievb2;
savefile.data.achievb3 = _root.achievb3;
savefile.data.achievb4 = _root.achievb4;
savefile.data.achievb5 = _root.achievb5;
savefile.data.achievb6 = _root.achievb6;
savefile.data.achievc1 = _root.achievc1;
savefile.data.achievc2 = _root.achievc2;
savefile.data.achievc3 = _root.achievc3;
savefile.data.achievc4 = _root.achievc4;
savefile.data.achievc5 = _root.achievc5;
savefile.data.achievc6 = _root.achievc6;
savefile.flush();
}
frame 266 {
stop();
}
}
movieClip 928 {
}
movieClip 930 {
}
movieClip 932 {
}
movieClip 933 {
}
movieClip 935 {
}
movieClip 937 {
}
movieClip 938 {
}
movieClip 939 {
}
movieClip 940 {
}
movieClip 942 {
}
movieClip 944 {
}
movieClip 946 {
}
movieClip 948 {
}
movieClip 950 {
}
movieClip 953 {
}
movieClip 955 {
}
movieClip 958 {
}
movieClip 960 {
}
movieClip 961 {
}
movieClip 962 {
frame 1 {
stop();
}
frame 22 {
_root._y = 2;
_root._x = -2;
}
frame 23 {
_root._y = 0;
_root._x = 0;
}
frame 24 {
_root._y = -2;
_root._x = 2;
}
frame 25 {
_root._y = 0;
_root._x = 0;
}
frame 26 {
_root._y = 1;
_root._x = -1;
}
frame 27 {
_root._y = 0;
_root._x = 0;
}
frame 28 {
_root._y = -1;
_root._x = 1;
}
frame 29 {
_root._y = 0;
_root._x = 0;
}
frame 48 {
_root._y = 2;
_root._x = -2;
}
frame 49 {
_root._y = 0;
_root._x = 0;
}
frame 50 {
_root._y = -2;
_root._x = 2;
}
frame 51 {
_root._y = 0;
_root._x = 0;
}
frame 52 {
_root._y = 1;
_root._x = -1;
}
frame 53 {
_root._y = 0;
_root._x = 0;
}
frame 54 {
_root._y = -1;
_root._x = 1;
}
frame 55 {
_root._y = 0;
_root._x = 0;
}
frame 76 {
_root._y = 2;
_root._x = -2;
}
frame 77 {
_root._y = 0;
_root._x = 0;
}
frame 78 {
_root._y = -2;
_root._x = 2;
}
frame 79 {
_root._y = 0;
_root._x = 0;
}
frame 80 {
_root._y = 1;
_root._x = -1;
}
frame 81 {
_root._y = 0;
_root._x = 0;
}
frame 82 {
_root._y = -1;
_root._x = 1;
}
frame 83 {
_root._y = 0;
_root._x = 0;
}
frame 107 {
_root._y = 2;
_root._x = -2;
}
frame 108 {
_root._y = 0;
_root._x = 0;
}
frame 109 {
_root._y = -2;
_root._x = 2;
}
frame 110 {
_root._y = 0;
_root._x = 0;
}
frame 111 {
_root._y = 1;
_root._x = -1;
}
frame 112 {
_root._y = 0;
_root._x = 0;
}
frame 113 {
_root._y = -1;
_root._x = 1;
}
frame 114 {
_root._y = 0;
_root._x = 0;
}
frame 124 {
gotoAndStop(1);
}
frame 125 {
stop();
}
}
movieClip 965 {
frame 26 {
stop();
}
}
movieClip 966 {
}
movieClip 967 {
frame 25 {
stop();
}
}
movieClip 968 {
frame 25 {
stop();
}
}
movieClip 969 {
frame 25 {
stop();
}
}
movieClip 970 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 974 {
frame 290 {
stop();
}
}
instance of movieClip 974 {
onClipEvent (load) {
this.swapDepths(9700);
}
}
movieClip 976 {
}
movieClip 979 {
}
movieClip 981 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
frame 10 {
if (qset == undefined) {
qset = 2;
}
if (qset == 2) {
_quality = 'Medium';
}
if (qset == 1) {
_quality = 'Low';
}
if (qset == 3) {
_quality = 'High';
}
}
frame 10 {
for (i in _root) {
_root[i].swapDepths(10102);
removeMovieClip(_root[i]);
}
delete eval(onEnterFrame());
}
frame 11 {
delete eval(onEnterFrame());
}
frame 12 {
if (qset == undefined) {
qset = 2;
}
if (qset == 2) {
_quality = 'Medium';
}
if (qset == 1) {
_quality = 'Low';
}
if (qset == 3) {
_quality = 'High';
}
}
frame 12 {
stop();
blue = 'blue';
pink = 'pink';
reward.gotoAndStop(91);
if (weapon == undefined) {
weapon = 'boomerang';
hammer = true;
}
if (cash == undefined) {
cash = 0;
bcash = 0;
}
if (puzzles == undefined) {
puzzles = 0;
}
if (lives == undefined) {
lives = 9;
}
if (score == undefined) {
score = 0;
benny = 0;
}
tuto.swapDepths(9998);
pausemen.swapDepths(9999);
gauge.swapDepths(10000);
torial.swapDepths(10001);
tran.swapDepths(50000);
gatex.swapDepths(500);
gameover.swapDepths(60000);
gate = false;
key._visible = true;
boomer = 1;
type = 'norm';
jump = 10;
ht = 0.5;
gyro.gotoAndPlay('jump');
mxy = gyro._y - 80;
mxyset = gyro._y - 80;
mxbg2y = bg2._y;
motion = 9;
tutorialsc = true;
mxx = gyro._x + 200;
mnx = gyro._x + 60;
whiptimer = 50;
whipper = 40;
att = 0;
gen = 0.9300000000000001;
intx = bg2._x - gyro._x;
inty = bg2._y - gyro._y;
flx = bg2._x - freelife1._x;
fly = bg2._y - freelife1._y;
tboxx = bg2._x - tutorbox._x;
tboxy = bg2._y - tutorbox._y;
gtx = bg2._x - gatex._x;
gty = bg2._y - gatex._y;
torial.gotoAndStop(1);
torial._visible = false;
pause = false;
bg2.core._visible = false;
bg2.wall._visible = false;
bg2.rope._visible = false;
if (gletter == undefined) {
gletter = false;
}
if (yletter == undefined) {
yletter = false;
}
if (rletter == undefined) {
rletter = false;
}
if (oletter == undefined) {
oletter = false;
}
gboxx = bg2._x - gyrobox._x;
gboxy = bg2._y - gyrobox._y;
portaled = false;
rax = bg2._x - rainbowxxe._x;
ray = bg2._y - rainbowxxe._y;
rlx = bg2._x - letterr._x;
rly = bg2._y - letterr._y;
pzx = bg2._x - puzzle._x;
pzy = bg2._y - puzzle._y;
portx = bg2._x - portalwaya._x;
porty = bg2._y - portalwaya._y;
bcoinax1 = bg2._x - bcoina1._x;
bcoinay1 = bg2._y - bcoina1._y;
bcoinax2 = bg2._x - bcoina2._x;
bcoinay2 = bg2._y - bcoina2._y;
bcoinax3 = bg2._x - bcoina3._x;
bcoinay3 = bg2._y - bcoina3._y;
bcoinax4 = bg2._x - bcoina4._x;
bcoinay4 = bg2._y - bcoina4._y;
bcoinax5 = bg2._x - bcoina5._x;
bcoinay5 = bg2._y - bcoina5._y;
coinax1 = bg2._x - coina1._x;
coinay1 = bg2._y - coina1._y;
coinax2 = bg2._x - coina2._x;
coinay2 = bg2._y - coina2._y;
coinax3 = bg2._x - coina3._x;
coinay3 = bg2._y - coina3._y;
coinax4 = bg2._x - coina4._x;
coinay4 = bg2._y - coina4._y;
coinax5 = bg2._x - coina5._x;
coinay5 = bg2._y - coina5._y;
coinax6 = bg2._x - coina6._x;
coinay6 = bg2._y - coina6._y;
coinax7 = bg2._x - coina7._x;
coinay7 = bg2._y - coina7._y;
coinax8 = bg2._x - coina8._x;
coinay8 = bg2._y - coina8._y;
coinax9 = bg2._x - coina9._x;
coinay9 = bg2._y - coina9._y;
coinax10 = bg2._x - coina10._x;
coinay10 = bg2._y - coina10._y;
coinax11 = bg2._x - coina11._x;
coinay11 = bg2._y - coina11._y;
coinax12 = bg2._x - coina12._x;
coinay12 = bg2._y - coina12._y;
coinax13 = bg2._x - coina13._x;
coinay13 = bg2._y - coina13._y;
coinax14 = bg2._x - coina14._x;
coinay14 = bg2._y - coina14._y;
coinax15 = bg2._x - coina15._x;
coinay15 = bg2._y - coina15._y;
coinax16 = bg2._x - coina16._x;
coinay16 = bg2._y - coina16._y;
coinax17 = bg2._x - coina17._x;
coinay17 = bg2._y - coina17._y;
coinax18 = bg2._x - coina18._x;
coinay18 = bg2._y - coina18._y;
coinax19 = bg2._x - coina19._x;
coinay19 = bg2._y - coina19._y;
coinax20 = bg2._x - coina20._x;
coinay20 = bg2._y - coina20._y;
coinax21 = bg2._x - coina21._x;
coinay21 = bg2._y - coina21._y;
coinax22 = bg2._x - coina22._x;
coinay22 = bg2._y - coina22._y;
coinax23 = bg2._x - coina23._x;
coinay23 = bg2._y - coina23._y;
coinax24 = bg2._x - coina24._x;
coinay24 = bg2._y - coina24._y;
coinax25 = bg2._x - coina25._x;
coinay25 = bg2._y - coina25._y;
coinax26 = bg2._x - coina26._x;
coinay26 = bg2._y - coina26._y;
coinax27 = bg2._x - coina27._x;
coinay27 = bg2._y - coina27._y;
coinax28 = bg2._x - coina28._x;
coinay28 = bg2._y - coina28._y;
coinax29 = bg2._x - coina29._x;
coinay29 = bg2._y - coina29._y;
coinax30 = bg2._x - coina30._x;
coinay30 = bg2._y - coina30._y;
coinax31 = bg2._x - coina31._x;
coinay31 = bg2._y - coina31._y;
coinax32 = bg2._x - coina32._x;
coinay32 = bg2._y - coina32._y;
coinax33 = bg2._x - coina33._x;
coinay33 = bg2._y - coina33._y;
coinax34 = bg2._x - coina34._x;
coinay34 = bg2._y - coina34._y;
coinax35 = bg2._x - coina35._x;
coinay35 = bg2._y - coina35._y;
coinax36 = bg2._x - coina36._x;
coinay36 = bg2._y - coina36._y;
coinax37 = bg2._x - coina37._x;
coinay37 = bg2._y - coina37._y;
coinax38 = bg2._x - coina38._x;
coinay38 = bg2._y - coina38._y;
coinax39 = bg2._x - coina39._x;
coinay39 = bg2._y - coina39._y;
coinax40 = bg2._x - coina40._x;
coinay40 = bg2._y - coina40._y;
magix = bg2._x - magicswitch._x;
magiy = bg2._y - magicswitch._y;
keyx = bg2._x - key._x;
keyy = bg2._y - key._y;
wallx = bg2._x - wall._x;
wally = bg2._y - wall._y;
onEnterFrame = function () {
i = 0;
while (i <= 40) {
if (gyro.hitTest(_root['coina' + i]) && dead != true && _root['coina' + i]._visible == true) {
cash += 1;
klepto += 1;
_root['coina' + i].play();
_root['coina' + i]._visible = true;
duplicateMovieClip('star' + pink, 'starz1', 1000);
starzx1 = bg2._x - gyro._x;
starzy1 = bg2._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz2', 1002);
starzx2 = bg2._x - gyro._x;
starzy2 = bg2._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz3', 1003);
starzx3 = bg2._x - gyro._x;
starzy3 = bg2._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz4', 1004);
starzx4 = bg2._x - gyro._x;
starzy4 = bg2._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz5', 1005);
starzx5 = bg2._x - gyro._x;
starzy5 = bg2._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz6', 1006);
starzx6 = bg2._x - gyro._x;
starzy6 = bg2._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
dupstar = 0;
score += 10;
}
if (gyro.hitTest(_root['bcoina' + i]) && dead != true && _root['bcoina' + i]._visible == true) {
bcash += 1;
gauge.boc.play();
_root['bcoina' + i].play();
_root['bcoina' + i]._visible = true;
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg2._x - gyro._x;
starzy1 = bg2._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg2._x - gyro._x;
starzy2 = bg2._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg2._x - gyro._x;
starzy3 = bg2._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg2._x - gyro._x;
starzy4 = bg2._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg2._x - gyro._x;
starzy5 = bg2._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg2._x - gyro._x;
starzy6 = bg2._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
dupstar = 0;
score += 10;
}
if (gyro.hitTest(key) && cotimer < 1625 && dead != true && copter != true && key._visible == true) {
gate = true;
key._visible = false;
key.gotoAndStop(55);
}
if (cotimer < 1625 && goala2 != true) {
rainbowxxe._visible = true;
}
if (cotimer > 1625 || goala2 == true) {
rainbowxxe._visible = false;
}
if (gyro.hitTest(rainbowxxe) && cotimer < 1625 && dead != true && goala2 != true) {
duplicateMovieClip(reward, 'reward1', 1999);
reward1._x = 300;
reward1._y = 200;
goala2 = true;
}
if (gyro.hitTest(key) && cotimer >= 1625 && dead != true && copter != true && key._visible == true) {
gate = true;
key._visible = false;
key.gotoAndStop(55);
}
if (gyro.hitTest(letterr) && dead != true && rletter != true) {
rletter = true;
gyroletterx += 1;
letterr.gotoAndStop(55);
gauge.gyroletters.play();
duplicateMovieClip('star' + pink, 'starz1', 1000);
starzx1 = bg2._x - gyro._x;
starzy1 = bg2._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz2', 1002);
starzx2 = bg2._x - gyro._x;
starzy2 = bg2._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz3', 1003);
starzx3 = bg2._x - gyro._x;
starzy3 = bg2._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz4', 1004);
starzx4 = bg2._x - gyro._x;
starzy4 = bg2._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz5', 1005);
starzx5 = bg2._x - gyro._x;
starzy5 = bg2._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz6', 1006);
starzx6 = bg2._x - gyro._x;
starzy6 = bg2._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
score += 50;
}
if (gyro.hitTest(puzzle) && dead != true && puzzle._visible == true) {
puzzles += 1;
puzzle._visible = false;
gauge.puzzle.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg2._x - gyro._x;
starzy1 = bg2._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg2._x - gyro._x;
starzy2 = bg2._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg2._x - gyro._x;
starzy3 = bg2._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg2._x - gyro._x;
starzy4 = bg2._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg2._x - gyro._x;
starzy5 = bg2._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg2._x - gyro._x;
starzy6 = bg2._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
score += 100;
}
if (portalwaya.core.hitTest(gyro._x, gyro._y, true) && portalwaya._visible == true && jump < 0) {
gyro.gotoAndStop('teleport');
portaled = true;
pause = true;
}
++i;
}
if (pause != true && coxin != true && gyro._y > mxy && aim != true || pause != true && coxin != true && gyro._y <= mxy && bg2._y <= mxbg2y && jump < 0 && aim != true || gyro._y > 400 && pause != true && coxin != true && bg2._y <= mxbg2y && aim != true) {
gyro._y -= jump;
jump -= ht;
}
if (pause != true && aim != true && coxin != true && gyro._y <= mxy || pause != true && aim != true && coxin != true && gyro._y > 300 && bg2._y > mxbg2y && jump < 0) {
bg2._y += jump;
midg._y += jump / 5;
jump -= ht;
}
if (midg._y < 180) {
midg._y = 180;
}
if (Key.isDown(65) && copter != true && pause != true && coxin != true && ht == 0 && duck != true && aim != true && rope != true && whiptimer > whipper) {
jump = 11;
ht = 0.5;
gyro.gotoAndPlay('jump');
}
if (Key.isDown(65) && copter != true && aim != true && pause != true && coxin != true && ht == 0 && duck == true && rope != true && whiptimer > whipper) {
jump = 13;
ht = 0.5;
duck = false;
motion = 0;
gyro.gotoAndPlay('boostjump');
}
if (Key.isDown(40) && copter != true && aim != true && pause != true && coxin != true && ht == 0 && rope != true && whiptimer > whipper && att <= 1.8) {
duck = true;
gyro.gotoAndStop('duck');
}
if (!Key.isDown(40) && copter != true && pause != true && coxin != true && duck == true && rope != true && whiptimer > whipper && att <= 1.8) {
duck = false;
gyro.gotoAndStop(1);
}
if (bg2.core.hitTest(gyro._x, gyro._y + 35, true) && copter != true && dead != true && jump < -3 && whiptimer > whipper && att <= 1.8) {
gyro.gotoAndStop(1);
jump = 0;
motion = 9;
ht = 0;
}
if (!bg2.core.hitTest(gyro._x, gyro._y + 45, true) && copter != true && dead != true && ht == 0 && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.gotoAndPlay('ballup');
ht = 0.5;
}
for (;;) {
if (!(bg2.core.hitTest(gyro._x, gyro._y + 35, true) && copter != true && dead != true && whiptimer > whipper && jump < 0.7)) break;
gyro._y -= 0.1;
}
if (Key.isDown(39) && dead != true && pause != true && coxin != true && duck != true && aim != true && gyro._x <= mxx && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.play();
goright = true;
goleft = false;
gyro._x += motion;
gyro._xscale = 80;
gyro._rotation = zenny;
}
if (Key.isDown(37) && dead != true && pause != true && coxin != true && duck != true && aim != true && gyro._x >= mnx && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.play();
goleft = true;
goright = false;
gyro._x -= motion;
gyro._xscale = -80;
gyro._rotation = -zenny;
}
if (Key.isDown(39) && dead != true && pause != true && coxin != true && duck != true && aim != true && gyro._x > mxx && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.play();
goright = true;
goleft = false;
bg2._x -= motion;
midg._x -= motion / 30;
gyro._xscale = 80;
gyro._rotation = zenny;
}
if (Key.isDown(37) && dead != true && pause != true && coxin != true && duck != true && aim != true && gyro._x < mnx && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.play();
goleft = true;
goright = false;
midg._x += motion / 30;
bg2._x += motion;
gyro._xscale = -80;
gyro._rotation = -zenny;
}
if (!Key.isDown(37) && dead != true && copter != true && ht == 0 && pause != true && coxin != true && duck != true && aim != true && goleft == true && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.gotoAndStop(1);
goleft = false;
}
if (!Key.isDown(39) && dead != true && copter != true && ht == 0 && pause != true && coxin != true && duck != true && aim != true && goright == true && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.gotoAndStop(1);
goright = false;
}
if (pause != true && coxin != true && gyro._x <= mxx && gyro._xscale >= 0 || pause != true && coxin != true && gyro._xscale < 0 && gyro._x >= mnx && att <= 1.8) {
gyro._x += att * (gyro._xscale / 80);
att *= 0.9300000000000001;
}
if (pause != true && coxin != true && gyro._x > mxx && gyro._xscale >= 0 || pause != true && coxin != true && gyro._xscale < 0 && gyro._x < mnx && att <= 1.8) {
bg2._x -= att * (gyro._xscale / 80);
att *= 0.9300000000000001;
}
if (pause != true && coxin != true && gyro._x > mxx && gyro._xscale >= 0 || pause != true && coxin != true && gyro._xscale < 0 && gyro._x < mnx && att <= 1.8) {
bg2._x -= att * (gyro._xscale / 80);
att *= 0.9300000000000001;
}
if (bg2.wall.hitTest(gyro._x + 40, gyro._y, true)) {
gyro._x -= motion;
}
while (bg2.wall.hitTest(gyro._x + 40, gyro._y, true)) {
gyro._x -= 0.1;
}
if (bg2.wall.hitTest(gyro._x - 40, gyro._y, true)) {
gyro._x += motion;
}
while (bg2.wall.hitTest(gyro._x - 40, gyro._y, true)) {
gyro._x += 0.1;
}
if (gyro._y < 200 && aim != true && trap != true && ht == 0 && dead != true && climb != true) {
gyro._y += bett / 4;
bg2._y += bett / 4;
}
if (bg2._y <= mxbg2y) {
bg2._y = mxbg2y;
}
if (gyro._y > 330 && aim != true && bg2._y > mxbg2y && trap != true && dead != true && climb != true) {
gyro._y += bett;
bg2._y += bett;
}
if (pause != true) {
bett = (330 - gyro._y) / 5;
}
if (gyro._x < mnx - 30) {
bg2._x += mot / 20;
midg._x += mot / 600;
gyro._x += mot / 20;
}
if (gyro._x > mxx + 30) {
bg2._x += mot / 20;
midg._x += mot / 600;
gyro._x += mot / 20;
}
if (benny < score) {
benny += 1;
}
if (pause != true) {
starzx1 += starburst1;
starburst1 *= 0.94;
starzy1 += starjump1;
starjump1 -= 0.5;
starzx2 += starburst2;
starburst2 *= 0.94;
starzy2 += starjump2;
starjump2 -= 0.5;
starzx3 += starburst3;
starburst3 *= 0.94;
starzy3 += starjump3;
starjump3 -= 0.5;
starzx4 += starburst4;
starburst4 *= 0.94;
starzy4 += starjump4;
starjump4 -= 0.5;
starzx5 += starburst5;
starburst5 *= 0.94;
starzy5 += starjump5;
starjump5 -= 0.5;
starzx6 += starburst6;
starburst6 *= 0.94;
starzy6 += starjump6;
starjump6 -= 0.5;
}
if (gyro._y > 1700 && lives > 0) {
lives -= 1;
gauge.gorp.play();
gyro._x = bg2._x - intx;
dead = false;
gyro._y = -300;
scratch += 1;
}
if (lives <= 0) {
gameover.play();
portaled = true;
pause = true;
}
if (pause != true && coxin != true) {
whiptimer += 1;
boomx1 -= trajectoryx1;
boomy1 += trajectoryy1;
trajectoryx1 -= ben;
trajectoryy1 -= ken;
boomtimer += 1;
dupstar += 1;
}
if (boomerang1._x > gyro._x) {
ben = 0.5;
}
if (boomerang1._x < gyro._x) {
ben = -0.5;
}
if (boomerang1._y > gyro._y + 20) {
ken = -0.5;
}
if (boomerang1._y < gyro._y - 20) {
ken = 0.5;
}
if (boomerang1._y < gyro._y + 20 && boomerang1._y > gyro._y - 20) {
ken = 0;
trajectoryy1 = 0;
}
if (boomer <= 0 && dupstar > 5) {
duplicateMovieClip('star' + type, 'star' + stardu, stardu + 100);
_root['starx' + stardu] = bg2._x - boomerang1._x;
_root['stary' + stardu] = bg2._y - boomerang1._y;
_root['star' + stardu]._rotation = Math.random() * 360;
stardu += 1;
dupstar = 0;
}
if (stardu > 5) {
stardu = 1;
}
if (Key.isDown(83) && copter != true && jump <= 0 && ht == 0 && rope != true && aim != true && boomer > 0 && pause != true && coxin != true && duck != true && aim != true && whiptimer > whipper && weapon == 'boomerang') {
aim = true;
dupstar = 0;
ror = 0;
}
if (aim == true) {
gyro.gotoAndStop('aim');
arrows._x = gyro._x;
arrows._y = gyro._y;
arrows._visible = true;
arrows._rotation = ror * (gyro._xscale / 80);
arrows._xscale = gyro._xscale * 1.25;
}
if (aim != true) {
arrows._visible = false;
}
if (aim == true && Key.isDown(40) && ror < 60) {
ror += 5;
arrows.play();
}
if (aim == true && Key.isDown(38) && ror > -60) {
ror -= 5;
arrows.play();
}
if (boomerang1._x > gyro._x - 50 && boomerang1._x < gyro._x + 50 && boomerang1._y > gyro._y - 50 && boomerang1._y < gyro._y + 50 && boomtimer > 50) {
boomer = 1;
removeMovieClip(boomerang1);
}
if (!Key.isDown(83) && aim == true && pause != true && coxin != true && boomer > 0 && whiptimer > whipper && duck != true) {
duplicateMovieClip('boomerang' + type, 'boomerang' + boomer, 200 + boomer);
stardu = 1;
_root['boomx' + boomer] = bg2._x - gyro._x;
_root['boomy' + boomer] = bg2._y - gyro._y - 50 * Math.sin(ror * 0.0174532925199433);
gyro.gotoAndPlay('boomerang');
_root['trajectoryx' + boomer] = 23 * Math.cos(ror * 0.0174532925199433) * (gyro._xscale / 80);
_root['glip' + boomer] = 1 * (gyro._xscale / 80);
_root['trajectoryy' + boomer] = -23 * Math.sin(ror * 0.0174532925199433);
_root['boomacc' + boomer] = 0;
aim = false;
ht = 0;
jump = 0;
ben = 0.5;
ken = 0.5;
boomer = 0;
whiptimer = 0;
whipper = 20;
boomtimer = 0;
}
if (gyro.hitTest(gyrobox) && dead != true && jump < -1 && copter != true && coxin != true) {
jump = 9;
coptertune.play();
coxin = true;
duplicateMovieClip('star' + pink, 'starz1', 1000);
starzx1 = bg2._x - gyro._x;
starzy1 = bg2._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz2', 1002);
starzx2 = bg2._x - gyro._x;
starzy2 = bg2._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz3', 1003);
starzx3 = bg2._x - gyro._x;
starzy3 = bg2._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz4', 1004);
starzx4 = bg2._x - gyro._x;
starzy4 = bg2._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz5', 1005);
starzx5 = bg2._x - gyro._x;
starzy5 = bg2._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz6', 1006);
starzx6 = bg2._x - gyro._x;
starzy6 = bg2._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
duplicateMovieClip(partystar, 'zox1', 221);
zox1._x = gyro._x;
zox1._y = gyro._y;
jumpp1 = 9;
zox1._rotation = 0;
duplicateMovieClip(partystar, 'zox2', 222);
zox2._x = gyro._x;
zox2._y = gyro._y;
jumpp2 = 9;
zox2._rotation = 60;
duplicateMovieClip(partystar, 'zox3', 223);
zox3._x = gyro._x;
zox3._y = gyro._y;
jumpp3 = 9;
zox3._rotation = 120;
duplicateMovieClip(partystar, 'zox4', 224);
zox4._x = gyro._x;
zox4._y = gyro._y;
jumpp4 = 9;
zox4._rotation = 180;
duplicateMovieClip(partystar, 'zox5', 225);
zox5._x = gyro._x;
zox5._y = gyro._y;
jumpp5 = 9;
zox5._rotation = 240;
duplicateMovieClip(partystar, 'zox6', 226);
zox6._x = gyro._x;
zox6._y = gyro._y;
jumpp6 = 9;
zox6._rotation = 300;
cotimer = 0;
copterhp = 4;
copter = true;
}
if (copter == true) {
cotimer += 1;
gyrobox.gotoAndStop(2);
gauge.blade.gotoAndStop(2);
}
if (copter != true) {
gyrobox.gotoAndStop(1);
gauge.blade.gotoAndStop(1);
}
if (zox1.hitTest(zox2) && jumpp1 < -3) {
duplicateMovieClip('star' + pink, 'starz1', 1000);
starzx1 = bg2._x - gyro._x;
starzy1 = bg2._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz2', 1002);
starzx2 = bg2._x - gyro._x;
starzy2 = bg2._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz3', 1003);
starzx3 = bg2._x - gyro._x;
starzy3 = bg2._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz4', 1004);
starzx4 = bg2._x - gyro._x;
starzy4 = bg2._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz5', 1005);
starzx5 = bg2._x - gyro._x;
starzy5 = bg2._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz6', 1006);
starzx6 = bg2._x - gyro._x;
starzy6 = bg2._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
dupstar = 0;
score += 10;
removeMovieClip(zox1);
removeMovieClip(zox2);
removeMovieClip(zox3);
removeMovieClip(zox4);
removeMovieClip(zox5);
removeMovieClip(zox6);
coxin = false;
}
if (pause != true) {
zox1._x += jumpp1 * Math.cos(zox1._rotation * 0.0174532925199433);
zox1._y += jumpp1 * Math.sin(zox1._rotation * 0.0174532925199433);
zox2._x += jumpp2 * Math.cos(zox2._rotation * 0.0174532925199433);
zox2._y += jumpp2 * Math.sin(zox2._rotation * 0.0174532925199433);
zox3._x += jumpp3 * Math.cos(zox3._rotation * 0.0174532925199433);
zox3._y += jumpp3 * Math.sin(zox3._rotation * 0.0174532925199433);
zox4._x += jumpp4 * Math.cos(zox4._rotation * 0.0174532925199433);
zox4._y += jumpp4 * Math.sin(zox4._rotation * 0.0174532925199433);
zox5._x += jumpp5 * Math.cos(zox5._rotation * 0.0174532925199433);
zox5._y += jumpp5 * Math.sin(zox5._rotation * 0.0174532925199433);
zox6._x += jumpp6 * Math.cos(zox6._rotation * 0.0174532925199433);
zox6._y += jumpp6 * Math.sin(zox6._rotation * 0.0174532925199433);
jumpp1 -= 0.5;
jumpp2 -= 0.5;
jumpp3 -= 0.5;
jumpp4 -= 0.5;
jumpp5 -= 0.5;
jumpp6 -= 0.5;
}
if (jump >= 3 && copter == true) {
jump = 3;
}
if (copter == true && bg2.rope.hitTest(gyro._x + 40, gyro._y, true) && pause != true || copter == true && bg2.rope.hitTest(gyro._x - 40, gyro._y, true) && pause != true || copter == true && bg2.rope.hitTest(gyro._x, gyro._y + 40, true) && pause != true || copter == true && bg2.rope.hitTest(gyro._x, gyro._y - 40, true) && pause != true) {
gyro.danger.gotoAndStop(2);
}
if (copter == true && !bg2.rope.hitTest(gyro._x + 30, gyro._y, true) && !bg2.rope.hitTest(gyro._x - 30, gyro._y, true) && !bg2.rope.hitTest(gyro._x, gyro._y + 30, true) && !bg2.rope.hitTest(gyro._x, gyro._y - 30, true)) {
gyro.danger.gotoAndStop(1);
}
if (copter == true && bg2.rope.hitTest(gyro._x, gyro._y, true) && pause != true) {
copter = false;
jump = 2;
dead = true;
coptertune.gotoAndPlay('revert');
gyro.play();
duplicateMovieClip(partystar, 'zox1', 221);
zox1._x = gyro._x;
zox1._y = gyro._y;
jumpp1 = 9;
zox1._rotation = 0;
duplicateMovieClip(partystar, 'zox2', 222);
zox2._x = gyro._x;
zox2._y = gyro._y;
jumpp2 = 9;
zox2._rotation = 60;
duplicateMovieClip(partystar, 'zox3', 223);
zox3._x = gyro._x;
zox3._y = gyro._y;
jumpp3 = 9;
zox3._rotation = 120;
duplicateMovieClip(partystar, 'zox4', 224);
zox4._x = gyro._x;
zox4._y = gyro._y;
jumpp4 = 9;
zox4._rotation = 180;
duplicateMovieClip(partystar, 'zox5', 225);
zox5._x = gyro._x;
zox5._y = gyro._y;
jumpp5 = 9;
zox5._rotation = 240;
duplicateMovieClip(partystar, 'zox6', 226);
zox6._x = gyro._x;
zox6._y = gyro._y;
jumpp6 = 9;
zox6._rotation = 300;
}
if (copter == true) {
ht = 0.2;
mxy = 200;
gyro.gotoAndStop('copter');
bg2.wall.gotoAndStop(2);
gatex.gotoAndStop(1);
zenny = 35;
}
if (copter != true) {
bg2.wall.gotoAndStop(1);
gatex.gotoAndStop(2);
mxy = 120;
zenny = 0;
gyro._rotation = 0;
}
if (!Key.isDown(39) && copter == true && gyro._xscale > 0 && gyro._rotation > 0 && pause != true) {
gyro._rotation -= 0.5;
}
if (!Key.isDown(37) && copter == true && gyro._xscale < 0 && gyro._rotation < 0 && pause != true) {
gyro._rotation += 0.5;
}
if (Key.isDown(65) && pause != true && copter == true) {
jump += 2;
gyro.copter.sound.play();
}
if (bg2.core.hitTest(gyro._x, gyro._y, true) && copter == true) {
jump = 7;
coxin = true;
coptertune.gotoAndPlay('revert');
gyro.gotoAndPlay('revert');
duplicateMovieClip(partystar, 'zox1', 221);
zox1._x = gyro._x;
zox1._y = gyro._y;
jumpp1 = 9;
zox1._rotation = 0;
duplicateMovieClip(partystar, 'zox2', 222);
zox2._x = gyro._x;
zox2._y = gyro._y;
jumpp2 = 9;
zox2._rotation = 60;
duplicateMovieClip(partystar, 'zox3', 223);
zox3._x = gyro._x;
zox3._y = gyro._y;
jumpp3 = 9;
zox3._rotation = 120;
duplicateMovieClip(partystar, 'zox4', 224);
zox4._x = gyro._x;
zox4._y = gyro._y;
jumpp4 = 9;
zox4._rotation = 180;
duplicateMovieClip(partystar, 'zox5', 225);
zox5._x = gyro._x;
zox5._y = gyro._y;
jumpp5 = 9;
zox5._rotation = 240;
duplicateMovieClip(partystar, 'zox6', 226);
zox6._x = gyro._x;
zox6._y = gyro._y;
jumpp6 = 9;
zox6._rotation = 300;
copter = false;
}
if (gyro.hitTest(freelife1) && freelife1._visible == true) {
lives += 1;
removeMovieClip(freelife1);
freelife1.gotoAndStop(121);
duplicateMovieClip('star' + pink, 'starz1', 1000);
starzx1 = bg2._x - gyro._x;
starzy1 = bg2._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz2', 1002);
starzx2 = bg2._x - gyro._x;
starzy2 = bg2._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz3', 1003);
starzx3 = bg2._x - gyro._x;
starzy3 = bg2._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz4', 1004);
starzx4 = bg2._x - gyro._x;
starzy4 = bg2._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz5', 1005);
starzx5 = bg2._x - gyro._x;
starzy5 = bg2._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz6', 1006);
starzx6 = bg2._x - gyro._x;
starzy6 = bg2._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
dupstar = 0;
freelife1._visible = false;
score += 10;
}
if (cohert == true && !Key.isDown(67)) {
cohert = false;
}
if (Key.isDown(67) && torial._visible != true && cohert != true && pause != true && coxin != true && portaled != true) {
pause = true;
cohert = true;
gyro.stop();
}
if (Key.isDown(67) && torial._visible != true && cohert != true && pause == true && portaled != true) {
pause = false;
cohert = true;
}
if (pause == true && portaled != true && torial._visible != true) {
gyro.stop();
gauge.boc.gotoAndPlay(60);
pausemen._visible = true;
gauge.puzzle.gotoAndPlay(60);
gauge.gyroletters.gotoAndPlay(60);
gyro.goop.gotoAndPlay(1);
}
if (pause != true) {
pausemen._visible = false;
}
if (gyro.hitTest(tutorbox) && jump < 0 && dead != true) {
torial.gotoAndStop(2);
torial._visible = true;
pause = true;
jump = 12;
}
if (Key.isDown(32) && torial._visible == true) {
torial.gotoAndStop(1);
torial._visible = false;
pause = false;
}
if (pause == true) {
_quality = 'High';
}
if (pause != true && coxin != true && qset >= 3) {
_quality = 'High';
}
if (pause != true && coxin != true && qset == 2) {
_quality = 'Medium';
}
if (pause != true && coxin != true && qset <= 1) {
_quality = 'Low';
}
boomerang1._x = bg2._x - boomx1;
boomerang1._y = bg2._y - boomy1;
star1._x = bg2._x - starx1;
star1._y = bg2._y - stary1;
star2._x = bg2._x - starx2;
star2._y = bg2._y - stary2;
star3._x = bg2._x - starx3;
star3._y = bg2._y - stary3;
star4._x = bg2._x - starx4;
star4._y = bg2._y - stary4;
star5._x = bg2._x - starx5;
star5._y = bg2._y - stary5;
bcoina1._x = bg2._x - bcoinax1;
bcoina1._y = bg2._y - bcoinay1;
bcoina2._x = bg2._x - bcoinax2;
bcoina2._y = bg2._y - bcoinay2;
bcoina3._x = bg2._x - bcoinax3;
bcoina3._y = bg2._y - bcoinay3;
bcoina4._x = bg2._x - bcoinax4;
bcoina4._y = bg2._y - bcoinay4;
bcoina5._x = bg2._x - bcoinax5;
bcoina5._y = bg2._y - bcoinay5;
rainbowxxe._x = bg2._x - rax;
rainbowxxe._y = bg2._y - ray;
coina1._x = bg2._x - coinax1;
coina1._y = bg2._y - coinay1;
coina2._x = bg2._x - coinax2;
coina2._y = bg2._y - coinay2;
coina3._x = bg2._x - coinax3;
coina3._y = bg2._y - coinay3;
coina4._x = bg2._x - coinax4;
coina4._y = bg2._y - coinay4;
coina5._x = bg2._x - coinax5;
coina5._y = bg2._y - coinay5;
coina6._x = bg2._x - coinax6;
coina6._y = bg2._y - coinay6;
coina7._x = bg2._x - coinax7;
coina7._y = bg2._y - coinay7;
coina8._x = bg2._x - coinax8;
coina8._y = bg2._y - coinay8;
coina9._x = bg2._x - coinax9;
coina9._y = bg2._y - coinay9;
coina10._x = bg2._x - coinax10;
coina10._y = bg2._y - coinay10;
coina11._x = bg2._x - coinax11;
coina11._y = bg2._y - coinay11;
coina12._x = bg2._x - coinax12;
coina12._y = bg2._y - coinay12;
coina13._x = bg2._x - coinax13;
coina13._y = bg2._y - coinay13;
coina14._x = bg2._x - coinax14;
coina14._y = bg2._y - coinay14;
coina15._x = bg2._x - coinax15;
coina15._y = bg2._y - coinay15;
coina16._x = bg2._x - coinax16;
coina16._y = bg2._y - coinay16;
coina17._x = bg2._x - coinax17;
coina17._y = bg2._y - coinay17;
coina18._x = bg2._x - coinax18;
coina18._y = bg2._y - coinay18;
coina19._x = bg2._x - coinax19;
coina19._y = bg2._y - coinay19;
coina20._x = bg2._x - coinax20;
coina20._y = bg2._y - coinay20;
coina21._x = bg2._x - coinax21;
coina21._y = bg2._y - coinay21;
coina22._x = bg2._x - coinax22;
coina22._y = bg2._y - coinay22;
coina23._x = bg2._x - coinax23;
coina23._y = bg2._y - coinay23;
coina24._x = bg2._x - coinax24;
coina24._y = bg2._y - coinay24;
coina25._x = bg2._x - coinax25;
coina25._y = bg2._y - coinay25;
coina26._x = bg2._x - coinax26;
coina6._y = bg2._y - coinay26;
coina27._x = bg2._x - coinax27;
coina27._y = bg2._y - coinay27;
coina28._x = bg2._x - coinax28;
coina28._y = bg2._y - coinay28;
coina29._x = bg2._x - coinax29;
coina29._y = bg2._y - coinay29;
coina30._x = bg2._x - coinax30;
coina30._y = bg2._y - coinay30;
coina31._x = bg2._x - coinax31;
coina31._y = bg2._y - coinay31;
coina32._x = bg2._x - coinax32;
coina32._y = bg2._y - coinay32;
coina33._x = bg2._x - coinax33;
coina33._y = bg2._y - coinay33;
coina34._x = bg2._x - coinax34;
coina34._y = bg2._y - coinay34;
coina35._x = bg2._x - coinax35;
coina35._y = bg2._y - coinay35;
coina36._x = bg2._x - coinax36;
coina36._y = bg2._y - coinay36;
coina37._x = bg2._x - coinax37;
coina37._y = bg2._y - coinay37;
coina38._x = bg2._x - coinax38;
coina38._y = bg2._y - coinay38;
coina39._x = bg2._x - coinax39;
coina39._y = bg2._y - coinay39;
coina40._x = bg2._x - coinax40;
coina40._y = bg2._y - coinay40;
magicswitch._x = bg2._x - magix;
magicswitch._y = bg2._y - magiy;
gauge.lives = lives;
gauge.cash = cash;
gauge.score = benny;
starz1._x = bg2._x - starzx1;
starz1._y = bg2._y - starzy1;
starz2._x = bg2._x - starzx2;
starz2._y = bg2._y - starzy2;
starz3._x = bg2._x - starzx3;
starz3._y = bg2._y - starzy3;
starz4._x = bg2._x - starzx4;
starz4._y = bg2._y - starzy4;
starz5._x = bg2._x - starzx5;
starz5._y = bg2._y - starzy5;
starz6._x = bg2._x - starzx6;
starz6._y = bg2._y - starzy6;
freelife1._x = bg2._x - flx;
freelife1._y = bg2._y - fly;
mot = 300 - gyro._x;
key._x = bg2._x - keyx;
key._y = bg2._y - keyy;
gauge.gyroletters.letterg._visible = gletter;
gauge.gyroletters.lettery._visible = yletter;
gauge.gyroletters.letterr._visible = rletter;
gauge.gyroletters.lettero._visible = oletter;
portalwaya._visible = gate;
wall._x = bg2._x - wallx;
wall._y = bg2._y - wally;
gyrobox._x = bg2._x - gboxx;
gyrobox._y = bg2._y - gboxy;
puzzle._x = bg2._x - pzx;
puzzle._y = bg2._y - pzy;
gauge.puzzle.count = puzzles;
portalwaya._x = bg2._x - portx;
portalwaya._y = bg2._y - porty;
tutorbox._x = bg2._x - tboxx;
tutorbox._y = bg2._y - tboxy;
letterr._x = bg2._x - rlx;
letterr._y = bg2._y - rly;
gauge.boc.count = bcash;
gatex._x = bg2._x - gtx;
gatex._y = bg2._y - gty;
};
}
movieClip 983 {
}
movieClip 985 {
}
movieClip 987 {
}
movieClip 990 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 995 {
}
// unknown tag 88 length 151
movieClip 999 {
}
movieClip 1000 {
}
movieClip 1001 {
frame 20 {
stop();
}
}
movieClip 1004 {
}
movieClip 1005 {
frame 20 {
stop();
}
}
movieClip 1006 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1008 {
}
movieClip 1009 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1015 {
}
movieClip 1018 {
frame 290 {
stop();
}
}
instance of movieClip 1018 {
onClipEvent (load) {
this.swapDepths(9700);
}
}
movieClip 1021 {
}
movieClip 1023 {
}
movieClip 1026 {
}
movieClip 1028 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
frame 13 {
if (qset == undefined) {
qset = 2;
}
if (qset == 2) {
_quality = 'Medium';
}
if (qset == 1) {
_quality = 'Low';
}
if (qset == 3) {
_quality = 'High';
}
}
frame 13 {
for (i in _root) {
_root[i].swapDepths(10102);
removeMovieClip(_root[i]);
}
delete eval(onEnterFrame());
}
frame 14 {
delete eval(onEnterFrame());
}
frame 15 {
if (qset == undefined) {
qset = 2;
}
if (qset == 2) {
_quality = 'Medium';
}
if (qset == 1) {
_quality = 'Low';
}
if (qset == 3) {
_quality = 'High';
}
}
frame 15 {
stop();
blue = 'blue';
pink = 'pink';
nero = 1;
if (weapon == undefined) {
weapon = 'boomerang';
hammer = true;
}
if (cash == undefined) {
cash = 0;
bcash = 0;
}
if (puzzles == undefined) {
puzzles = 0;
}
if (lives == undefined) {
lives = 9;
}
if (score == undefined) {
score = 0;
benny = 0;
}
torial.swapDepths(10001);
powertimer.swapDepths(9997);
tuto.swapDepths(9998);
pausemen.swapDepths(9999);
gauge.swapDepths(10000);
tran.swapDepths(50000);
wall.swapDepths(500);
gameover.swapDepths(60000);
bg4.wall._visible = false;
bg4.core._visible = false;
bg4.vines._visible = false;
bleco = 0;
gate = false;
pause = false;
key._visible = true;
boomer = 1;
type = 'norm';
jump = 10;
ht = 0.5;
gyro.gotoAndPlay('jump');
mxy = gyro._y - 80;
mxbg4y = bg4._y;
motion = 9;
tutorialsc = true;
mxx = gyro._x + 70;
mnx = gyro._x - 120;
whiptimer = 50;
whipper = 40;
att = 0;
gen = 0.9300000000000001;
intx = bg4._x - gyro._x;
inty = bg4._y - gyro._y;
tbx = bg4._x - tutorboxx._x;
tby = bg4._y - tutorboxx._y;
if (gletter == undefined) {
gletter = false;
}
if (yletter == undefined) {
yletter = false;
}
if (rletter == undefined) {
rletter = false;
}
if (oletter == undefined) {
oletter = false;
}
portaled = false;
springx = bg4._x - spring._x;
springy = bg4._y - spring._y;
gysx1 = bg4._x - gyroswitch1._x;
gysy1 = bg4._y - gyroswitch1._y;
gysx2 = bg4._x - gyroswitch2._x;
gysy2 = bg4._y - gyroswitch2._y;
gysx3 = bg4._x - gyroswitch3._x;
gysy3 = bg4._y - gyroswitch3._y;
gysx4 = bg4._x - gyroswitch4._x;
gysy4 = bg4._y - gyroswitch4._y;
gysx5 = bg4._x - gyroswitch5._x;
gysy5 = bg4._y - gyroswitch5._y;
glx = bg4._x - lettero._x;
gly = bg4._y - lettero._y;
pzx = bg4._x - puzzle._x;
pzy = bg4._y - puzzle._y;
pzx2 = bg4._x - puzzle2._x;
pzy2 = bg4._y - puzzle2._y;
portx = bg4._x - portalway._x;
porty = bg4._y - portalway._y;
fgbx = bg4._x - flamebox._x;
fgby = bg4._y - flamebox._y;
badgx1 = bg4._x - badguy1._x;
badgy1 = bg4._y - badguy1._y;
badgix1 = badguy1._x;
badgiy1 = badguy1._y;
benzo1 = 0;
badgx2 = bg4._x - badguy2._x;
badgy2 = bg4._y - badguy2._y;
badgix2 = badguy2._x;
badgiy2 = badguy2._y;
benzo2 = 0;
bcoinbx1 = bg4._x - bcoinb1._x;
bcoinby1 = bg4._y - bcoinb1._y;
bcoinbx2 = bg4._x - bcoinb2._x;
bcoinby2 = bg4._y - bcoinb2._y;
bcoinbx3 = bg4._x - bcoinb3._x;
bcoinby3 = bg4._y - bcoinb3._y;
bcoinbx4 = bg4._x - bcoinb4._x;
bcoinby4 = bg4._y - bcoinb4._y;
bcoinbx5 = bg4._x - bcoinb5._x;
bcoinby5 = bg4._y - bcoinb5._y;
coinbx1 = bg4._x - coinb1._x;
coinby1 = bg4._y - coinb1._y;
coinbx2 = bg4._x - coinb2._x;
coinby2 = bg4._y - coinb2._y;
coinbx3 = bg4._x - coinb3._x;
coinby3 = bg4._y - coinb3._y;
coinbx4 = bg4._x - coinb4._x;
coinby4 = bg4._y - coinb4._y;
coinbx5 = bg4._x - coinb5._x;
coinby5 = bg4._y - coinb5._y;
coinbx6 = bg4._x - coinb6._x;
coinby6 = bg4._y - coinb6._y;
coinbx7 = bg4._x - coinb7._x;
coinby7 = bg4._y - coinb7._y;
coinbx8 = bg4._x - coinb8._x;
coinby8 = bg4._y - coinb8._y;
coinbx9 = bg4._x - coinb9._x;
coinby9 = bg4._y - coinb9._y;
coinbx10 = bg4._x - coinb10._x;
coinby10 = bg4._y - coinb10._y;
coinbx11 = bg4._x - coinb11._x;
coinby11 = bg4._y - coinb11._y;
coinbx12 = bg4._x - coinb12._x;
coinby12 = bg4._y - coinb12._y;
coinbx13 = bg4._x - coinb13._x;
coinby13 = bg4._y - coinb13._y;
coinbx14 = bg4._x - coinb14._x;
coinby14 = bg4._y - coinb14._y;
coinbx15 = bg4._x - coinb15._x;
coinby15 = bg4._y - coinb15._y;
coinbx16 = bg4._x - coinb16._x;
coinby16 = bg4._y - coinb16._y;
coinbx17 = bg4._x - coinb17._x;
coinby17 = bg4._y - coinb17._y;
coinbx18 = bg4._x - coinb18._x;
coinby18 = bg4._y - coinb18._y;
coinbx19 = bg4._x - coinb19._x;
coinby19 = bg4._y - coinb19._y;
coinbx20 = bg4._x - coinb20._x;
coinby20 = bg4._y - coinb20._y;
coinbx21 = bg4._x - coinb21._x;
coinby21 = bg4._y - coinb21._y;
coinbx22 = bg4._x - coinb22._x;
coinby22 = bg4._y - coinb22._y;
coinbx23 = bg4._x - coinb23._x;
coinby23 = bg4._y - coinb23._y;
coinbx24 = bg4._x - coinb24._x;
coinby24 = bg4._y - coinb24._y;
coinbx25 = bg4._x - coinb25._x;
coinby25 = bg4._y - coinb25._y;
coinbx26 = bg4._x - coinb26._x;
coinby26 = bg4._y - coinb26._y;
coinbx27 = bg4._x - coinb27._x;
coinby27 = bg4._y - coinb27._y;
coinbx28 = bg4._x - coinb28._x;
coinby28 = bg4._y - coinb28._y;
coinbx29 = bg4._x - coinb29._x;
coinby29 = bg4._y - coinb29._y;
coinbx30 = bg4._x - coinb30._x;
coinby30 = bg4._y - coinb30._y;
coinbx31 = bg4._x - coinb31._x;
coinby31 = bg4._y - coinb31._y;
coinbx32 = bg4._x - coinb32._x;
coinby32 = bg4._y - coinb32._y;
coinbx33 = bg4._x - coinb33._x;
coinby33 = bg4._y - coinb33._y;
coinbx34 = bg4._x - coinb34._x;
coinby34 = bg4._y - coinb34._y;
coinbx35 = bg4._x - coinb35._x;
coinby35 = bg4._y - coinb35._y;
coinbx36 = bg4._x - coinb36._x;
coinby36 = bg4._y - coinb36._y;
coinbx37 = bg4._x - coinb37._x;
coinby37 = bg4._y - coinb37._y;
coinbx38 = bg4._x - coinb38._x;
coinby38 = bg4._y - coinb38._y;
coinbx39 = bg4._x - coinb39._x;
coinby39 = bg4._y - coinb39._y;
coinbx40 = bg4._x - coinb40._x;
coinby40 = bg4._y - coinb40._y;
portaled = false;
magix = bg4._x - magicswitch._x;
magiy = bg4._y - magicswitch._y;
keyx = bg4._x - key._x;
keyy = bg4._y - key._y;
wallx = bg4._x - wall._x;
wally = bg4._y - wall._y;
cratex = bg4._x - crate._x;
cratey = bg4._y - crate._y;
push = 1;
onEnterFrame = function () {
i = 0;
while (i <= 30) {
if (gyro.hitTest(_root['coinb' + i]) && _root['coinb' + i]._visible == true) {
cash += 1;
klepto += 1;
_root['coinb' + i].play();
_root['coinb' + i]._visible = true;
duplicateMovieClip('star' + pink, 'starz1', 1000);
starzx1 = bg4._x - gyro._x;
starzy1 = bg4._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz2', 1002);
starzx2 = bg4._x - gyro._x;
starzy2 = bg4._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz3', 1003);
starzx3 = bg4._x - gyro._x;
starzy3 = bg4._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz4', 1004);
starzx4 = bg4._x - gyro._x;
starzy4 = bg4._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz5', 1005);
starzx5 = bg4._x - gyro._x;
starzy5 = bg4._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz6', 1006);
starzx6 = bg4._x - gyro._x;
starzy6 = bg4._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
dupstar = 0;
score += 10;
}
if (gyro.hitTest(_root['bcoinb' + i]) && _root['bcoinb' + i]._visible == true) {
bcash += 1;
_root['bcoinb' + i].play();
_root['bcoinb' + i]._visible = true;
gauge.boc.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg4._x - gyro._x;
starzy1 = bg4._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg4._x - gyro._x;
starzy2 = bg4._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg4._x - gyro._x;
starzy3 = bg4._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg4._x - gyro._x;
starzy4 = bg4._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg4._x - gyro._x;
starzy5 = bg4._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg4._x - gyro._x;
starzy6 = bg4._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
dupstar = 0;
score += 10;
}
if (pause != true) {
bleco -= 1;
geg = 300 - key._x;
}
if (bleco > 0) {
bg4._x += geg / 160;
gyro._x += geg / 160;
}
if (gyro.hitTest(magicswitch) && key._visible == true && jump < -3 && nero >= 5 && gyro._x > 0) {
jump = 8;
magicswitch.gotoAndStop(2);
bleco = 3500;
magneto = true;
}
if (gyro.hitTest(magicswitch) && jump < -3 && nero < 5 && gyro._x > 0) {
jump = 8;
wall.gore.play();
bleco = 2800;
magicswitch.gotoAndStop(1);
crate.play();
}
if (magneto == true && pause != true && crate._y < key._y) {
keyy += 0.02;
crate.play();
}
if (magneto == true && pause != true && crate._x < key._x) {
keyx += 0.4;
crate.play();
}
if (key._x <= crate._x + 40) {
magneto = false;
}
if (gyro.hitTest(key) && key._visible == true) {
gate = true;
key._visible = false;
key.gotoAndStop(55);
}
if (gyro.hitTest(lettero) && oletter != true && lettero._visible == true) {
lettero._visible = false;
oletter = true;
gyroletterx += 1;
lettero.gotoAndStop(55);
gauge.gyroletters.play();
duplicateMovieClip('star' + pink, 'starz1', 1000);
starzx1 = bg4._x - gyro._x;
starzy1 = bg4._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz2', 1002);
starzx2 = bg4._x - gyro._x;
starzy2 = bg4._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz3', 1003);
starzx3 = bg4._x - gyro._x;
starzy3 = bg4._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz4', 1004);
starzx4 = bg4._x - gyro._x;
starzy4 = bg4._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz5', 1005);
starzx5 = bg4._x - gyro._x;
starzy5 = bg4._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz6', 1006);
starzx6 = bg4._x - gyro._x;
starzy6 = bg4._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
score += 50;
}
if (gyro.hitTest(puzzle) && puzzle._visible == true) {
puzzles += 1;
puzzle._visible = false;
gauge.puzzle.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg4._x - gyro._x;
starzy1 = bg4._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg4._x - gyro._x;
starzy2 = bg4._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg4._x - gyro._x;
starzy3 = bg4._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg4._x - gyro._x;
starzy4 = bg4._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg4._x - gyro._x;
starzy5 = bg4._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg4._x - gyro._x;
starzy6 = bg4._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
score += 100;
}
if (gyro.hitTest(puzzle2) && puzzle2._visible == true) {
puzzles += 1;
puzzle2._visible = false;
gauge.puzzle.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg4._x - gyro._x;
starzy1 = bg4._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg4._x - gyro._x;
starzy2 = bg4._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg4._x - gyro._x;
starzy3 = bg4._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg4._x - gyro._x;
starzy4 = bg4._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg4._x - gyro._x;
starzy5 = bg4._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg4._x - gyro._x;
starzy6 = bg4._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
score += 100;
}
if (boomerang1.hitTest(badguy1)) {
badguy1.play();
badguylife1 = true;
score += 10;
}
if (boomerang1.hitTest(badguy2)) {
badguy2.play();
badguylife2 = true;
score += 10;
}
if (cash >= 100) {
lives += 1;
soundr.gotoAndPlay('freelife');
cash = 0;
}
if (gletter == true && yletter == true && rletter == true && oletter == true) {
gletter = false;
yletter = false;
rletter = false;
oletter = false;
lives += 1;
soundr.gotoAndPlay('freelife');
cash = 0;
}
if (portalway.core.hitTest(gyro._x, gyro._y, true) && portalway._visible == true && jump < 0) {
gyro.gotoAndStop('teleport');
portaled = true;
pause = true;
}
++i;
}
if (pause != true && gyro._y > mxy && aim != true || pause != true && gyro._y <= mxy && bg4._y <= mxbg4y && jump < 0 && aim != true || gyro._y > 400 && pause != true && bg4._y <= mxbg4y && aim != true) {
gyro._y -= jump;
jump -= ht;
}
if (klepto >= 118 && achieva1 != true) {
duplicateMovieClip(rewards, 'rewarder', 984);
rewarder._x = 300;
rewarder._y = 200;
rewarder.gotoAndPlay(97);
achieva1 = true;
goals1 += 1;
klepto = 0;
}
if (pause != true && gyro._y <= mxy && aim != true || pause != true && aim != true && gyro._y > 300 && bg4._y > mxbg4y && jump < 0) {
bg4._y += jump;
midg._y += jump / 4;
jump -= ht;
}
if (midg._y < 200) {
midg._y = 200;
}
if (Key.isDown(65) && dead != true && climb != true && pause != true && ht == 0 && duck != true && aim != true && rope != true && whiptimer > whipper) {
jump = 10;
ht = 0.5;
gyro.gotoAndPlay('jump');
}
if (jump < -15) {
jump = -16;
}
if (Key.isDown(65) && dead != true && climb != true && aim != true && pause != true && ht == 0 && duck == true && rope != true && whiptimer > whipper) {
jump = 11;
ht = 0.5;
duck = false;
motion = 0;
gyro.gotoAndPlay('boostjump');
}
if (Key.isDown(40) && dead != true && climb != true && aim != true && pause != true && ht == 0 && rope != true && whiptimer > whipper && att <= 1.8) {
duck = true;
gyro.gotoAndStop('duck');
}
if (!Key.isDown(40) && dead != true && climb != true && pause != true && duck == true && rope != true && whiptimer > whipper && att <= 1.8) {
duck = false;
gyro.gotoAndStop(1);
}
if (bg4.core.hitTest(gyro._x, gyro._y + 25, true) && dead != true && climb != true && jump < -3 && whiptimer > whipper && att <= 1.8) {
gyro.gotoAndStop(1);
jump = 0;
motion = 9;
ht = 0;
}
if (!bg4.core.hitTest(gyro._x, gyro._y + 35, true) && dead != true && climb != true && ht == 0 && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.gotoAndPlay('ballup');
ht = 0.5;
}
for (;;) {
if (!(bg4.core.hitTest(gyro._x, gyro._y + 25, true) && jump < 0.7 && whiptimer > whipper)) break;
gyro._y -= 0.1;
}
if (Key.isDown(39) && dead != true && climb != true && pause != true && duck != true && aim != true && gyro._x <= mxx && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.play();
goright = true;
goleft = false;
gyro._x += motion / push;
bobob = 90;
gyro._xscale = 50;
}
if (Key.isDown(37) && dead != true && climb != true && pause != true && duck != true && aim != true && gyro._x >= mnx && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.play();
goleft = true;
goright = false;
gyro._x -= motion / push;
bobob = -90;
gyro._xscale = -50;
}
if (Key.isDown(39) && dead != true && climb != true && pause != true && duck != true && aim != true && gyro._x > mxx && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.play();
goright = true;
goleft = false;
bg4._x -= motion / push;
midg._x -= motion / 30;
bobob = 90;
gyro._xscale = 50;
}
if (Key.isDown(37) && dead != true && climb != true && pause != true && duck != true && aim != true && gyro._x < mnx && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.play();
goleft = true;
goright = false;
bobob = -90;
midg._x += motion / 30;
bg4._x += motion / push;
gyro._xscale = -50;
}
if (!Key.isDown(37) && dead != true && climb != true && ht == 0 && pause != true && duck != true && aim != true && goleft == true && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.gotoAndStop(1);
goleft = false;
}
if (!Key.isDown(39) && dead != true && climb != true && ht == 0 && pause != true && duck != true && aim != true && goright == true && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.gotoAndStop(1);
goright = false;
}
if (pause != true && gyro._x <= mxx && gyro._xscale >= 0 || pause != true && gyro._xscale < 0 && gyro._x >= mnx && att <= 1.8) {
gyro._x += att * (gyro._xscale / 80);
att *= 0.9300000000000001;
}
if (pause != true && gyro._x > mxx && gyro._xscale >= 0 || pause != true && gyro._xscale < 0 && gyro._x < mnx && att <= 1.8) {
bg4._x -= att * (gyro._xscale / 80);
att *= 0.9300000000000001;
}
if (pause != true && gyro._x > mxx && gyro._xscale >= 0 || pause != true && gyro._xscale < 0 && gyro._x < mnx && att <= 1.8) {
bg4._x -= att * (gyro._xscale / 80);
att *= 0.9300000000000001;
}
if (bg4.wall.hitTest(gyro._x + 20, gyro._y, true)) {
gyro._x -= motion;
}
while (bg4.wall.hitTest(gyro._x + 20, gyro._y, true)) {
gyro._x -= 0.1;
}
if (bg4.wall.hitTest(gyro._x - 20, gyro._y, true)) {
gyro._x += motion;
}
while (bg4.wall.hitTest(gyro._x - 20, gyro._y, true)) {
gyro._x += 0.1;
}
if (gyro._y < 200 && aim != true && trap != true && ht == 0 && dead != true && climb != true) {
gyro._y += bett / 4;
bg4._y += bett / 4;
}
if (bg4._y <= mxbg4y) {
bg4._y = mxbg4y;
}
if (gyro._y > 330 && aim != true && bg4._y > mxbg4y && trap != true && dead != true && climb != true) {
gyro._y += bett;
bg4._y += bett;
}
if (pause != true) {
bett = (330 - gyro._y) / 5;
}
if (gyro._x < mnx - 30 && bleco <= 0) {
bg4._x += mot / 15;
midg._x += mot / 450;
gyro._x += mot / 15;
}
if (gyro._x > mxx + 30 && bleco <= 0) {
bg4._x += mot / 15;
midg._x += mot / 450;
gyro._x += mot / 15;
}
if (benny < score) {
benny += 1;
}
if (pause != true) {
starzx1 += starburst1;
starburst1 *= 0.94;
starzy1 += starjump1;
starjump1 -= 0.5;
starzx2 += starburst2;
starburst2 *= 0.94;
starzy2 += starjump2;
starjump2 -= 0.5;
starzx3 += starburst3;
starburst3 *= 0.94;
starzy3 += starjump3;
starjump3 -= 0.5;
starzx4 += starburst4;
starburst4 *= 0.94;
starzy4 += starjump4;
starjump4 -= 0.5;
starzx5 += starburst5;
starburst5 *= 0.94;
starzy5 += starjump5;
starjump5 -= 0.5;
starzx6 += starburst6;
starburst6 *= 0.94;
starzy6 += starjump6;
starjump6 -= 0.5;
}
if (bg4.vines.hitTest(gyro._x, gyro._y, true) && dead != true && climb != true && Key.isDown(38)) {
climb = true;
ht = 0;
jump = 0;
gyro.gotoAndStop('climb');
}
if (bg4.vines.hitTest(gyro._x, gyro._y, true) && dead != true && climb == true && Key.isDown(65) && pukpuk != true || !bg4.vines.hitTest(gyro._x, gyro._y, true) && dead != true && climb == true) {
climb = false;
gyro.gotoAndPlay('jump');
jump = 5;
pukpuk = true;
climb = false;
}
if (jump < -4) {
pukpuk = false;
}
if (pause != true && dead != true && gyro._x < mxx && climb == true && Key.isDown(39)) {
gyro._x += 2;
ht = 0;
jump = 0;
gyro.play();
gogo = true;
}
if (pause != true && dead != true && gyro._x > mnx && climb == true && Key.isDown(37)) {
gyro._x -= 2;
gyro.play();
gogo = true;
}
if (pause != true && dead != true && gyro._x >= mxx && climb == true && Key.isDown(39)) {
bg4._x -= 2;
midg._x -= 0.06666666666666667;
gyro.play();
gogo = true;
}
if (pause != true && dead != true && gyro._x <= mnx && climb == true && Key.isDown(37)) {
bg4._x += 2;
midg._x += 0.06666666666666667;
gyro.play();
gogo = true;
}
if (pause != true && dead != true && gyro._y < 230 && climb == true && Key.isDown(40)) {
gyro._y += 2;
gyro.play();
gogo = true;
}
if (pause != true && dead != true && gyro._y > 130 && climb == true && Key.isDown(38)) {
gyro._y -= 2;
ht = 0;
jump = 0;
gyro.play();
gogo = true;
}
if (pause != true && dead != true && gyro._y >= 230 && climb == true && Key.isDown(40)) {
bg4._y -= 2;
midg._y -= 0.06666666666666667;
gyro.play();
gogo = true;
}
if (pause != true && dead != true && gyro._y <= 130 && climb == true && Key.isDown(38)) {
bg4._y += 2;
midg._y += 0.06666666666666667;
ht = 0;
jump = 0;
gyro.play();
gogo = true;
}
if (!Key.isDown(38) && !Key.isDown(40) && !Key.isDown(39) && !Key.isDown(37) && gogo == true && climb == true) {
gyro.gotoAndStop('climb');
}
if (gyro._y > 1700 && lives > 0) {
lives -= 1;
gauge.gorp.play();
gyro._x = bg4._x - intx;
gyro._y = -300;
scratch += 1;
}
if (lives <= 0) {
gameover.play();
portaled = true;
pause = true;
}
if (pause != true) {
whiptimer += 1;
boomx1 -= trajectoryx1;
boomy1 += trajectoryy1;
trajectoryx1 -= ben;
trajectoryy1 -= ken;
boomtimer += 1;
dupstar += 1;
}
if (boomerang1._x > gyro._x) {
ben = 0.5;
}
if (boomerang1._x < gyro._x) {
ben = -0.5;
}
if (boomerang1._y > gyro._y + 20) {
ken = -0.5;
}
if (boomerang1._y < gyro._y - 20) {
ken = 0.5;
}
if (boomerang1._y < gyro._y + 20 && boomerang1._y > gyro._y - 20) {
ken = 0;
trajectoryy1 = 0;
}
if (boomer <= 0 && dupstar > 5) {
duplicateMovieClip('star' + type, 'star' + stardu, stardu + 100);
_root['starx' + stardu] = bg4._x - boomerang1._x;
_root['stary' + stardu] = bg4._y - boomerang1._y;
_root['star' + stardu]._rotation = Math.random() * 360;
stardu += 1;
dupstar = 0;
}
if (stardu > 5) {
stardu = 1;
}
if (Key.isDown(83) && dead != true && climb != true && jump <= 0 && ht == 0 && rope != true && aim != true && boomer > 0 && pause != true && duck != true && aim != true && whiptimer > whipper) {
aim = true;
dupstar = 0;
ror = 0;
}
if (aim == true) {
gyro.gotoAndStop('aim');
arrows._x = gyro._x;
arrows._y = gyro._y;
arrows._visible = true;
arrows._rotation = ror * (gyro._xscale / 50);
arrows._xscale = gyro._xscale * 1.25;
}
if (aim != true) {
arrows._visible = false;
}
if (aim == true && Key.isDown(40) && ror < 70) {
ror += 5;
arrows.play();
}
if (aim == true && Key.isDown(38) && ror > -70) {
ror -= 5;
arrows.play();
}
if (boomerang1._x > gyro._x - 50 && boomerang1._x < gyro._x + 50 && boomerang1._y > gyro._y - 50 && boomerang1._y < gyro._y + 50 && boomtimer > 50) {
boomer = 1;
zex = false;
removeMovieClip(boomerang1);
}
if (!Key.isDown(83) && aim == true && pause != true && boomer > 0 && whiptimer > whipper && duck != true) {
duplicateMovieClip('boomerang' + type, 'boomerang' + boomer, 200 + boomer);
stardu = 1;
_root['boomx' + boomer] = bg4._x - gyro._x;
_root['boomy' + boomer] = bg4._y - gyro._y - 50 * Math.sin(ror * 0.0174532925199433);
gyro.gotoAndPlay('boomerang');
_root['trajectoryx' + boomer] = 20 * Math.cos(ror * 0.0174532925199433) * (gyro._xscale / 50);
_root['glip' + boomer] = 1 * (gyro._xscale / 80);
_root['trajectoryy' + boomer] = -20 * Math.sin(ror * 0.0174532925199433);
_root['boomacc' + boomer] = 0;
aim = false;
ht = 0;
jump = 0;
ben = 0.5;
ken = 0.5;
boomer = 0;
whiptimer = 0;
whipper = 20;
boomtimer = 0;
}
if (nero >= 2) {
}
if (boomerang1.hitTest(gyroswitch1) && nero <= 1) {
gyroswitch1.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg4._x - gyroswitch1._x;
starzy1 = bg4._y - gyroswitch1._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg4._x - gyroswitch1._x;
starzy2 = bg4._y - gyroswitch1._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg4._x - gyroswitch1._x;
starzy3 = bg4._y - gyroswitch1._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg4._x - gyroswitch1._x;
starzy4 = bg4._y - gyroswitch1._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg4._x - gyroswitch1._x;
starzy5 = bg4._y - gyroswitch1._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg4._x - gyroswitch1._x;
starzy6 = bg4._y - gyroswitch1._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
nero = 2;
}
if (boomerang1.hitTest(gyroswitch3) && nero == 3) {
gyroswitch3.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg4._x - gyroswitch3._x;
starzy1 = bg4._y - gyroswitch3._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg4._x - gyroswitch3._x;
starzy2 = bg4._y - gyroswitch3._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg4._x - gyroswitch3._x;
starzy3 = bg4._y - gyroswitch3._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg4._x - gyroswitch3._x;
starzy4 = bg4._y - gyroswitch3._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg4._x - gyroswitch3._x;
starzy5 = bg4._y - gyroswitch3._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg4._x - gyroswitch3._x;
starzy6 = bg4._y - gyroswitch3._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
nero = 4;
}
if (boomerang1.hitTest(gyroswitch2) && nero == 2) {
gyroswitch2.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg4._x - gyroswitch2._x;
starzy1 = bg4._y - gyroswitch2._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg4._x - gyroswitch2._x;
starzy2 = bg4._y - gyroswitch2._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg4._x - gyroswitch2._x;
starzy3 = bg4._y - gyroswitch2._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg4._x - gyroswitch2._x;
starzy4 = bg4._y - gyroswitch2._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg4._x - gyroswitch2._x;
starzy5 = bg4._y - gyroswitch2._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg4._x - gyroswitch2._x;
starzy6 = bg4._y - gyroswitch2._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
nero = 3;
}
if (nero < 5) {
gyroswitch5._visible = false;
}
if (nero >= 5) {
gyroswitch5._visible = true;
}
if (boomerang1.hitTest(gyroswitch4) && nero == 4) {
gyroswitch4.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg4._x - gyroswitch4._x;
starzy1 = bg4._y - gyroswitch4._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg4._x - gyroswitch4._x;
starzy2 = bg4._y - gyroswitch4._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg4._x - gyroswitch4._x;
starzy3 = bg4._y - gyroswitch4._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg4._x - gyroswitch4._x;
starzy4 = bg4._y - gyroswitch4._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg4._x - gyroswitch4._x;
starzy5 = bg4._y - gyroswitch4._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg4._x - gyroswitch4._x;
starzy6 = bg4._y - gyroswitch4._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
nero = 5;
}
if (boomerang1.hitTest(gyroswitch5) && nero == 5) {
gyroswitch5.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg4._x - gyroswitch5._x;
starzy1 = bg4._y - gyroswitch5._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg4._x - gyroswitch5._x;
starzy2 = bg4._y - gyroswitch5._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg4._x - gyroswitch5._x;
starzy3 = bg4._y - gyroswitch5._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg4._x - gyroswitch5._x;
starzy4 = bg4._y - gyroswitch5._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg4._x - gyroswitch5._x;
starzy5 = bg4._y - gyroswitch5._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg4._x - gyroswitch5._x;
starzy6 = bg4._y - gyroswitch5._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
nero = 6;
}
if (cohert == true && !Key.isDown(67)) {
cohert = false;
}
if (Key.isDown(67) && cohert != true && pause != true && portaled != true) {
pause = true;
cohert = true;
gyro.stop();
}
if (Key.isDown(67) && cohert != true && portaled != true) {
pause = false;
cohert = true;
}
if (pause == true && portaled != true) {
gyro.stop();
gauge.boc.gotoAndPlay(60);
pausemen._visible = true;
gauge.puzzle.gotoAndPlay(60);
gauge.gyroletters.gotoAndPlay(60);
gyro.goop.gotoAndPlay(1);
}
if (pause != true) {
pausemen._visible = false;
}
if (gyro.hitTest(tutorboxx) && jump < 0) {
torial.gotoAndStop(2);
torial._visible = true;
pause = true;
jump = 12;
}
if (Key.isDown(32) && torial._visible == true) {
torial.gotoAndStop(1);
torial._visible = false;
pause = false;
}
if (gyro._x < badguy1._x - 30 && gyro._x > 0 && badguylife1 != true && benzo1 > 150 && gyro._xscale < 0 && pause != true && badguy1._x > 0 && badguy1._x < 550 && badguy1._y > 0 && badguy1._y < 350) {
badguy1.body.gotoAndStop(2);
badguychase1 = true;
badguy1._xscale = 75;
}
if (gyro._x > badguy1._x + 30 && gyro._x > 0 && badguylife1 != true && benzo1 > 150 && gyro._xscale > 0 && pause != true && badguy1._x > 0 && badguy1._x < 550 && badguy1._y > 0 && badguy1._y < 350) {
badguy1.body.gotoAndStop(2);
badguychase1 = true;
badguy1._xscale = -75;
}
if (gyro._x < badguy1._x - 30 && gyro._x > 0 && badguylife1 != true && benzo1 > 150 && gyro._xscale > 0 && pause != true && badguy1._x > 0 && badguy1._x < 550 && badguy1._y > 0 && badguy1._y < 350) {
badguy1.body.gotoAndStop(1);
badguychase1 = false;
badguy1._xscale = 75;
}
if (gyro._x > badguy1._x + 30 && gyro._x > 0 && badguylife1 != true && benzo1 > 150 && gyro._xscale < 0 && pause != true && badguy1._x > 0 && badguy1._x < 550 && badguy1._y > 0 && badguy1._y < 350) {
badguy1.body.gotoAndStop(1);
badguychase1 = false;
badguy1._xscale = -75;
}
if (badguychase1 == true && badguylife1 != true && pause != true && gyro._x > badguy1._x + 20) {
badgx1 -= 3;
}
if (badguychase1 == true && badguylife1 != true && pause != true && gyro._x < badguy1._x - 20) {
badgx1 += 3;
}
if (badguychase1 == true && pause != true && gyro._y > badguy1._y + 20) {
badgy1 -= 3;
}
if (badguychase1 == true && badguylife1 != true && pause != true && gyro._y < badguy1._y - 20) {
badgy1 += 3;
}
if (badguychase1 == true && badguylife1 != true && benzo1 > 150 && gyro._x > badguy1._x - 40 && gyro._y < badguy1._y + 40 && gyro._x < badguy1._x + 40 && gyro._y > badguy1._y - 40 && dead != true) {
badguy1.gotoAndPlay('maul');
gyro.gotoAndStop('dead');
dead = true;
duplicateMovieClip('star' + pink, 'starz1', 1000);
starzx1 = bg4._x - gyro._x;
starzy1 = bg4._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz2', 1002);
starzx2 = bg4._x - gyro._x;
starzy2 = bg4._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz3', 1003);
starzx3 = bg4._x - gyro._x;
starzy3 = bg4._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz4', 1004);
starzx4 = bg4._x - gyro._x;
starzy4 = bg4._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz5', 1005);
starzx5 = bg4._x - gyro._x;
starzy5 = bg4._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz6', 1006);
starzx6 = bg4._x - gyro._x;
starzy6 = bg4._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
dupstar = 0;
badguychase1 = false;
bite = 0;
}
if (pause != true && dead == true) {
bite += 1;
}
if (bite > 90) {
lives -= 1;
gauge.gorp.play();
gyro._x = bg4._x - intx;
scratch += 1;
gyro._y = -300;
badguychase1 = false;
benzo1 = 0;
dead = false;
bite = 0;
}
if (benzo1 < 150) {
badgx1 = bg4._x - badgix1;
badgy1 = bg4._y - badgiy1;
}
if (gyro.hitTest(badguy1) && badguylife1 != true && badguychase1 != true && pause != true && jump < 0) {
jump = 13;
duplicateMovieClip('star' + pink, 'starz1', 1000);
badguylife1 = true;
starzx1 = bg4._x - gyro._x;
starzy1 = bg4._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz2', 1002);
starzx2 = bg4._x - gyro._x;
starzy2 = bg4._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz3', 1003);
starzx3 = bg4._x - gyro._x;
starzy3 = bg4._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz4', 1004);
starzx4 = bg4._x - gyro._x;
starzy4 = bg4._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz5', 1005);
starzx5 = bg4._x - gyro._x;
starzy5 = bg4._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz6', 1006);
starzx6 = bg4._x - gyro._x;
starzy6 = bg4._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
dupstar = 0;
duplicateMovieClip(nice, 'nicer', 1800);
nicer._x = gyro._x;
nicer._y = gyro._y;
score += 100;
badguy1.play();
}
if (gyro._x < badguy2._x - 30 && gyro._x > 0 && badguylife2 != true && benzo2 > 150 && gyro._xscale < 0 && pause != true && badguy2._x > 0 && badguy2._x < 550 && badguy2._y > 0 && badguy2._y < 350) {
badguy2.body.gotoAndStop(2);
badguychase2 = true;
badguy2._xscale = 75;
}
if (gyro._x > badguy2._x + 30 && gyro._x > 0 && badguylife2 != true && benzo2 > 150 && gyro._xscale > 0 && pause != true && badguy2._x > 0 && badguy2._x < 550 && badguy2._y > 0 && badguy2._y < 350) {
badguy2.body.gotoAndStop(2);
badguychase2 = true;
badguy2._xscale = -75;
}
if (gyro._x < badguy2._x - 30 && gyro._x > 0 && badguylife2 != true && benzo2 > 150 && gyro._xscale > 0 && pause != true && badguy2._x > 0 && badguy2._x < 550 && badguy2._y > 0 && badguy2._y < 350) {
badguy2.body.gotoAndStop(1);
badguychase2 = false;
badguy2._xscale = 75;
}
if (gyro._x > badguy2._x + 30 && gyro._x > 0 && badguylife2 != true && benzo2 > 150 && gyro._xscale < 0 && pause != true && badguy2._x > 0 && badguy2._x < 550 && badguy2._y > 0 && badguy2._y < 350) {
badguy2.body.gotoAndStop(1);
badguychase2 = false;
badguy2._xscale = -75;
}
if (badguychase2 == true && badguylife2 != true && pause != true && gyro._x > badguy2._x + 20) {
badgx2 -= 3;
}
if (badguychase2 == true && badguylife2 != true && pause != true && gyro._x < badguy2._x - 20) {
badgx2 += 3;
}
if (badguychase2 == true && pause != true && gyro._y > badguy2._y + 20) {
badgy2 -= 3;
}
if (badguychase2 == true && badguylife2 != true && pause != true && gyro._y < badguy2._y - 20) {
badgy2 += 3;
}
if (badguychase2 == true && badguylife2 != true && benzo2 > 150 && gyro._x > badguy2._x - 40 && gyro._y < badguy2._y + 40 && gyro._x < badguy2._x + 40 && gyro._y > badguy2._y - 40 && dead != true) {
badguy2.gotoAndPlay('maul');
gyro.gotoAndStop('dead');
dead = true;
duplicateMovieClip('star' + pink, 'starz1', 1000);
starzx1 = bg4._x - gyro._x;
starzy1 = bg4._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz2', 1002);
starzx2 = bg4._x - gyro._x;
starzy2 = bg4._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz3', 1003);
starzx3 = bg4._x - gyro._x;
starzy3 = bg4._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz4', 1004);
starzx4 = bg4._x - gyro._x;
starzy4 = bg4._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz5', 1005);
starzx5 = bg4._x - gyro._x;
starzy5 = bg4._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz6', 1006);
starzx6 = bg4._x - gyro._x;
starzy6 = bg4._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
dupstar = 0;
badguychase2 = false;
bite = 0;
}
if (pause != true && dead == true) {
bite += 1;
}
if (bite > 90) {
lives -= 1;
gyro._x = bg4._x - intx;
gyro._y = -300;
badguychase2 = false;
benzo2 = 0;
dead = false;
bite = 0;
}
if (benzo2 < 150) {
badgx2 = bg4._x - badgix2;
badgy2 = bg4._y - badgiy2;
}
if (gyro.hitTest(badguy2) && badguylife2 != true && badguychase2 != true && pause != true && jump < 0) {
jump = 13;
duplicateMovieClip('star' + pink, 'starz1', 1000);
badguylife2 = true;
starzx1 = bg4._x - gyro._x;
starzy1 = bg4._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz2', 1002);
starzx2 = bg4._x - gyro._x;
starzy2 = bg4._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz3', 1003);
starzx3 = bg4._x - gyro._x;
starzy3 = bg4._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz4', 1004);
starzx4 = bg4._x - gyro._x;
starzy4 = bg4._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz5', 1005);
starzx5 = bg4._x - gyro._x;
starzy5 = bg4._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz6', 1006);
starzx6 = bg4._x - gyro._x;
starzy6 = bg4._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
dupstar = 0;
duplicateMovieClip(nice, 'nicer', 1800);
nicer._x = gyro._x;
nicer._y = gyro._y;
score += 100;
badguy2.play();
}
if (dead == true) {
jump = 0;
ht = 0;
}
if (pause == true) {
_quality = 'High';
}
if (pause != true && qset >= 3) {
_quality = 'High';
}
if (pause != true && qset == 2) {
_quality = 'Medium';
}
if (pause != true && qset <= 1) {
_quality = 'Low';
}
boomerang1._x = bg4._x - boomx1;
boomerang1._y = bg4._y - boomy1;
star1._x = bg4._x - starx1;
star1._y = bg4._y - stary1;
star2._x = bg4._x - starx2;
star2._y = bg4._y - stary2;
star3._x = bg4._x - starx3;
star3._y = bg4._y - stary3;
star4._x = bg4._x - starx4;
star4._y = bg4._y - stary4;
star5._x = bg4._x - starx5;
star5._y = bg4._y - stary5;
gauge.blade.gotoAndStop(weapon);
bcoinb1._x = bg4._x - bcoinbx1;
bcoinb1._y = bg4._y - bcoinby1;
bcoinb2._x = bg4._x - bcoinbx2;
bcoinb2._y = bg4._y - bcoinby2;
bcoinb3._x = bg4._x - bcoinbx3;
bcoinb3._y = bg4._y - bcoinby3;
bcoinb4._x = bg4._x - bcoinbx4;
bcoinb4._y = bg4._y - bcoinby4;
bcoinb5._x = bg4._x - bcoinbx5;
bcoinb5._y = bg4._y - bcoinby5;
coinb1._x = bg4._x - coinbx1;
coinb1._y = bg4._y - coinby1;
coinb2._x = bg4._x - coinbx2;
coinb2._y = bg4._y - coinby2;
coinb3._x = bg4._x - coinbx3;
coinb3._y = bg4._y - coinby3;
coinb4._x = bg4._x - coinbx4;
coinb4._y = bg4._y - coinby4;
coinb5._x = bg4._x - coinbx5;
coinb5._y = bg4._y - coinby5;
coinb6._x = bg4._x - coinbx6;
coinb6._y = bg4._y - coinby6;
coinb7._x = bg4._x - coinbx7;
coinb7._y = bg4._y - coinby7;
coinb8._x = bg4._x - coinbx8;
coinb8._y = bg4._y - coinby8;
coinb9._x = bg4._x - coinbx9;
coinb9._y = bg4._y - coinby9;
coinb10._x = bg4._x - coinbx10;
coinb10._y = bg4._y - coinby10;
coinb11._x = bg4._x - coinbx11;
coinb11._y = bg4._y - coinby11;
coinb12._x = bg4._x - coinbx12;
coinb12._y = bg4._y - coinby12;
coinb13._x = bg4._x - coinbx13;
coinb13._y = bg4._y - coinby13;
coinb14._x = bg4._x - coinbx14;
coinb14._y = bg4._y - coinby14;
coinb15._x = bg4._x - coinbx15;
coinb15._y = bg4._y - coinby15;
coinb16._x = bg4._x - coinbx16;
coinb16._y = bg4._y - coinby16;
coinb17._x = bg4._x - coinbx17;
coinb17._y = bg4._y - coinby17;
coinb18._x = bg4._x - coinbx18;
coinb18._y = bg4._y - coinby18;
coinb19._x = bg4._x - coinbx19;
coinb19._y = bg4._y - coinby19;
coinb20._x = bg4._x - coinbx20;
coinb20._y = bg4._y - coinby20;
coinb21._x = bg4._x - coinbx21;
coinb21._y = bg4._y - coinby21;
coinb22._x = bg4._x - coinbx22;
coinb22._y = bg4._y - coinby22;
coinb23._x = bg4._x - coinbx23;
coinb23._y = bg4._y - coinby23;
coinb24._x = bg4._x - coinbx24;
coinb24._y = bg4._y - coinby24;
coinb25._x = bg4._x - coinbx25;
coinb25._y = bg4._y - coinby25;
coinb26._x = bg4._x - coinbx26;
coinb6._y = bg4._y - coinby26;
coinb27._x = bg4._x - coinbx27;
coinb27._y = bg4._y - coinby27;
coinb28._x = bg4._x - coinbx28;
coinb28._y = bg4._y - coinby28;
coinb29._x = bg4._x - coinbx29;
coinb29._y = bg4._y - coinby29;
coinb30._x = bg4._x - coinbx30;
coinb30._y = bg4._y - coinby30;
coinb31._x = bg4._x - coinbx31;
coinb31._y = bg4._y - coinby31;
coinb32._x = bg4._x - coinbx32;
coinb32._y = bg4._y - coinby32;
coinb33._x = bg4._x - coinbx33;
coinb33._y = bg4._y - coinby33;
coinb34._x = bg4._x - coinbx34;
coinb34._y = bg4._y - coinby34;
coinb35._x = bg4._x - coinbx35;
coinb35._y = bg4._y - coinby35;
coinb36._x = bg4._x - coinbx36;
coinb36._y = bg4._y - coinby36;
coinb37._x = bg4._x - coinbx37;
coinb37._y = bg4._y - coinby37;
coinb38._x = bg4._x - coinbx38;
coinb38._y = bg4._y - coinby38;
coinb39._x = bg4._x - coinbx39;
coinb39._y = bg4._y - coinby39;
coinb40._x = bg4._x - coinbx40;
coinb40._y = bg4._y - coinby40;
magicswitch._x = bg4._x - magix;
magicswitch._y = bg4._y - magiy;
gauge.lives = lives;
gauge.cash = cash;
gauge.score = benny;
starz1._x = bg4._x - starzx1;
starz1._y = bg4._y - starzy1;
starz2._x = bg4._x - starzx2;
starz2._y = bg4._y - starzy2;
starz3._x = bg4._x - starzx3;
starz3._y = bg4._y - starzy3;
starz4._x = bg4._x - starzx4;
starz4._y = bg4._y - starzy4;
starz5._x = bg4._x - starzx5;
starz5._y = bg4._y - starzy5;
starz6._x = bg4._x - starzx6;
starz6._y = bg4._y - starzy6;
flamebox._x = bg4._x - fgbx;
flamebox._y = bg4._y - fgby;
mot = 300 - gyro._x;
key._x = bg4._x - keyx;
key._y = bg4._y - keyy;
lettero._x = bg4._x - glx;
lettero._y = bg4._y - gly;
gauge.gyroletters.letterg._visible = gletter;
gauge.gyroletters.lettery._visible = yletter;
gauge.gyroletters.letterr._visible = rletter;
gauge.gyroletters.lettero._visible = oletter;
portalway._visible = gate;
gyroswitch1._x = bg4._x - gysx1;
gyroswitch1._y = bg4._y - gysy1;
gyroswitch2._x = bg4._x - gysx2;
gyroswitch2._y = bg4._y - gysy2;
gyroswitch3._x = bg4._x - gysx3;
gyroswitch3._y = bg4._y - gysy3;
gyroswitch4._x = bg4._x - gysx4;
gyroswitch4._y = bg4._y - gysy4;
gyroswitch5._x = bg4._x - gysx5;
gyroswitch5._y = bg4._y - gysy5;
wall.gotoAndStop(nero);
spring._x = bg4._x - springx;
spring._y = bg4._y - springy;
wall._x = bg4._x - wallx;
wall._y = bg4._y - wally;
bg4.wall.gotoAndStop(nero);
bg4.core.gotoAndStop(nero);
puzzle._x = bg4._x - pzx;
puzzle._y = bg4._y - pzy;
gauge.puzzle.count = puzzles;
portalway._x = bg4._x - portx;
portalway._y = bg4._y - porty;
tutorboxx._x = bg4._x - tbx;
tutorboxx._y = bg4._y - tby;
crate._x = bg4._x - cratex;
crate._y = bg4._y - cratey;
puzzle2._x = bg4._x - pzx2;
puzzle2._y = bg4._y - pzy2;
badguy1._x = bg4._x - badgx1;
badguy1._y = bg4._y - badgy1;
benzo1 += 1;
gauge.boc.count = bcash;
badguy2._x = bg4._x - badgx2;
badguy2._y = bg4._y - badgy2;
benzo2 += 1;
};
}
movieClip 1035 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
}
movieClip 1042 {
}
movieClip 1044 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
}
movieClip 1046 {
}
movieClip 1050 {
}
movieClip 1052 {
frame 1 {
stop();
}
frame 38 {
gotoAndStop(1);
}
}
movieClip 1055 {
}
movieClip 1056 {
frame 1 {
stop();
}
}
movieClip 1058 {
}
movieClip 1059 {
}
movieClip 1066 {
}
movieClip 1082 {
}
movieClip 1084 {
}
movieClip 1086 {
}
movieClip 1087 {
}
movieClip 1091 {
}
movieClip 1092 {
}
movieClip 1093 {
}
movieClip 1094 {
frame 30 {
stop();
}
}
movieClip 1095 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1115 {
}
movieClip 1122 {
}
movieClip 1130 {
frame 1 {
stop();
}
frame 40 {
stop();
}
frame 127 {
gotoAndStop(1);
}
}
movieClip 1131 {
}
movieClip 1132 {
}
movieClip 1133 {
}
movieClip 1134 {
frame 1 {
stop();
}
}
movieClip 1135 {
frame 25 {
stop();
}
}
movieClip 1136 {
frame 20 {
stop();
}
}
movieClip 1137 {
frame 20 {
stop();
}
}
movieClip 1138 {
frame 20 {
stop();
}
}
movieClip 1139 {
frame 30 {
stop();
}
}
movieClip 1140 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
}
movieClip 1143 {
frame 290 {
stop();
}
}
instance of movieClip 1143 {
onClipEvent (load) {
this.swapDepths(9700);
}
}
frame 16 {
for (i in _root) {
_root[i].swapDepths(10102);
removeMovieClip(_root[i]);
}
delete eval(onEnterFrame());
}
frame 17 {
delete eval(onEnterFrame());
stopAllSounds();
}
frame 19 {
if (qset == undefined) {
qset = 2;
}
if (qset == 2) {
_quality = 'Medium';
}
if (qset == 1) {
_quality = 'Low';
}
if (qset == 3) {
_quality = 'High';
}
}
frame 19 {
stop();
blue = 'blue';
pink = 'pink';
nero = 1;
enemylife = true;
keyevent = 0;
bossdefeat = false;
wallc.gotoAndStop(1);
bricked = 0;
diess = 0;
if (weapon == undefined) {
weapon = 'boomerang';
hammer = true;
}
if (cash == undefined) {
cash = 0;
bcash = 0;
}
if (puzzles == undefined) {
puzzles = 0;
}
if (lives == undefined) {
lives = 9;
}
if (score == undefined) {
score = 0;
benny = 0;
}
torial.swapDepths(10001);
powertimer.swapDepths(9997);
pausemen.swapDepths(9998);
bossgauge.swapDepths(9999);
bossgauge.gotoAndStop(100);
gauge.swapDepths(10000);
zony.swapDepths(9995);
tran.swapDepths(50000);
wallc.swapDepths(500);
gameover.swapDepths(60000);
bg5.wall._visible = false;
arrowf._visible = false;
gate = false;
pause = false;
key._visible = true;
boomer = 1;
type = 'norm';
jump = 10;
ht = 0.5;
gyro.gotoAndPlay('jump');
mxy = gyro._y - 80;
mxbg5y = bg5._y;
motion = 9;
tutorialsc = true;
mxx = gyro._x + 200;
mnx = gyro._x + 60;
whiptimer = 50;
whipper = 40;
att = 0;
gen = 0.9300000000000001;
intx = bg5._x - gyro._x;
inty = bg5._y - gyro._y;
tbx = bg5._x - tutorboxx._x;
tby = bg5._y - tutorboxx._y;
bosshealth = 100;
bossog = 0;
if (gletter == undefined) {
gletter = false;
}
if (yletter == undefined) {
yletter = false;
}
if (rletter == undefined) {
rletter = false;
}
if (oletter == undefined) {
oletter = false;
}
springx = bg5._x - spring._x;
springy = bg5._y - spring._y;
gysx1 = bg5._x - gyroswitch1._x;
gysy1 = bg5._y - gyroswitch1._y;
gysx2 = bg5._x - gyroswitch2._x;
gysy2 = bg5._y - gyroswitch2._y;
gysx3 = bg5._x - gyroswitch3._x;
gysy3 = bg5._y - gyroswitch3._y;
enx = bg5._x - enemy._x;
eny = bg5._y - enemy._y;
ejump = 0;
eht = 0.5;
glx = bg5._x - lettery._x;
gly = bg5._y - lettery._y;
pzx = bg5._x - puzzle._x;
pzy = bg5._y - puzzle._y;
portx = bg5._x - portalway2._x;
porty = bg5._y - portalway2._y;
fgbx = bg5._x - flamebox._x;
fgby = bg5._y - flamebox._y;
bcoinbx1 = bg5._x - bcoinb1._x;
bcoinby1 = bg5._y - bcoinb1._y;
bcoinbx2 = bg5._x - bcoinb2._x;
bcoinby2 = bg5._y - bcoinb2._y;
bcoinbx3 = bg5._x - bcoinb3._x;
bcoinby3 = bg5._y - bcoinb3._y;
bcoinbx4 = bg5._x - bcoinb4._x;
bcoinby4 = bg5._y - bcoinb4._y;
bcoinbx5 = bg5._x - bcoinb5._x;
bcoinby5 = bg5._y - bcoinb5._y;
portaled = false;
keyx = bg5._x - magickey2._x;
keyy = bg5._y - magickey2._y;
wallcx = bg5._x - wallc._x;
wallcy = bg5._y - wallc._y;
stx1 = bg5._x - stone1._x;
sty1 = bg5._y - stone1._y;
stx2 = bg5._x - stone2._x;
sty2 = bg5._y - stone2._y;
stx3 = bg5._x - stone3._x;
sty3 = bg5._y - stone3._y;
stx4 = bg5._x - stone4._x;
sty4 = bg5._y - stone4._y;
stx5 = bg5._x - stone5._x;
sty5 = bg5._y - stone5._y;
stx6 = bg5._x - stone6._x;
sty6 = bg5._y - stone6._y;
stx7 = bg5._x - stone7._x;
sty7 = bg5._y - stone7._y;
stx8 = bg5._x - stone8._x;
sty8 = bg5._y - stone8._y;
stx10 = bg5._x - stone10._x;
sty10 = bg5._y - stone10._y;
stx9 = bg5._x - stone9._x;
sty9 = bg5._y - stone9._y;
stx11 = bg5._x - stone11._x;
sty11 = bg5._y - stone11._y;
stx12 = bg5._x - stone12._x;
sty12 = bg5._y - stone12._y;
stx13 = bg5._x - stone13._x;
sty13 = bg5._y - stone13._y;
stx14 = bg5._x - stone14._x;
sty14 = bg5._y - stone14._y;
stx15 = bg5._x - stone15._x;
sty15 = bg5._y - stone15._y;
stx16 = bg5._x - stone16._x;
sty16 = bg5._y - stone16._y;
stx17 = bg5._x - stone17._x;
sty17 = bg5._y - stone17._y;
stx18 = bg5._x - stone18._x;
sty18 = bg5._y - stone18._y;
stx20 = bg5._x - stone20._x;
sty20 = bg5._y - stone20._y;
stx19 = bg5._x - stone19._x;
sty19 = bg5._y - stone19._y;
screamer = 0;
screamed = false;
onEnterFrame = function () {
i = 0;
while (i <= 21) {
++i;
}
if (ht == 0 && screamer < 200 && screamed != true) {
gyro.gotoAndPlay('scream');
screamed = true;
}
if (stone3.hitTest(gyro._x, gyro._y + 35, true) && dead != true && jump < -9) {
gyro.gotoAndStop(1);
bugsy = 3;
jump = 0;
motion = 9;
zenny = 0;
ht = 0;
stone = true;
}
while (stone3.hitTest(gyro._x, gyro._y + 35, true)) {
gyro._y -= 0.1;
bugsy = 3;
ht = 0;
jump = 0;
}
if (stone1.hitTest(gyro._x, gyro._y + 35, true) && dead != true && jump < -9) {
gyro.gotoAndStop(1);
bugsy = 1;
jump = 0;
motion = 9;
zenny = 0;
ht = 0;
stone = true;
}
while (stone1.hitTest(gyro._x, gyro._y + 35, true)) {
gyro._y -= 0.1;
bugsy = 1;
ht = 0;
jump = 0;
}
if (stone2.hitTest(gyro._x, gyro._y + 35, true) && dead != true && jump < -9) {
gyro.gotoAndStop(1);
bugsy = 2;
jump = 0;
motion = 9;
zenny = 0;
ht = 0;
stone = true;
}
while (stone2.hitTest(gyro._x, gyro._y + 35, true)) {
gyro._y -= 0.1;
bugsy = 2;
ht = 0;
jump = 0;
stone = true;
}
if (stone4.hitTest(gyro._x, gyro._y + 35, true) && dead != true && jump < -9) {
gyro.gotoAndStop(1);
bugsy = 4;
jump = 0;
motion = 9;
zenny = 0;
ht = 0;
stone = true;
}
while (stone4.hitTest(gyro._x, gyro._y + 35, true)) {
gyro._y -= 0.1;
bugsy = 4;
ht = 0;
jump = 0;
stone = true;
}
if (stone5.hitTest(gyro._x, gyro._y + 35, true) && dead != true && jump < -9) {
gyro.gotoAndStop(1);
bugsy = 5;
jump = 0;
motion = 9;
zenny = 0;
ht = 0;
stone = true;
}
while (stone5.hitTest(gyro._x, gyro._y + 35, true)) {
gyro._y -= 0.1;
bugsy = 5;
ht = 0;
jump = 0;
stone = true;
}
if (stone6.hitTest(gyro._x, gyro._y + 35, true) && dead != true && jump < -9) {
gyro.gotoAndStop(1);
bugsy = 6;
jump = 0;
motion = 9;
zenny = 0;
ht = 0;
stone = true;
}
while (stone6.hitTest(gyro._x, gyro._y + 35, true)) {
gyro._y -= 0.1;
bugsy = 6;
ht = 0;
jump = 0;
stone = true;
}
if (stone7.hitTest(gyro._x, gyro._y + 35, true) && dead != true && jump < -9) {
gyro.gotoAndStop(1);
bugsy = 7;
jump = 0;
motion = 9;
zenny = 0;
ht = 0;
stone = true;
}
while (stone7.hitTest(gyro._x, gyro._y + 35, true)) {
gyro._y -= 0.1;
bugsy = 7;
ht = 0;
jump = 0;
stone = true;
}
if (stone8.hitTest(gyro._x, gyro._y + 35, true) && dead != true && jump < -9) {
gyro.gotoAndStop(1);
bugsy = 8;
jump = 0;
motion = 9;
zenny = 0;
ht = 0;
stone = true;
}
while (stone8.hitTest(gyro._x, gyro._y + 35, true)) {
gyro._y -= 0.1;
bugsy = 8;
ht = 0;
jump = 0;
stone = true;
}
if (stone9.hitTest(gyro._x, gyro._y + 35, true) && dead != true && jump < -9) {
gyro.gotoAndStop(1);
bugsy = 9;
jump = 0;
motion = 9;
zenny = 0;
ht = 0;
stone = true;
}
while (stone9.hitTest(gyro._x, gyro._y + 35, true)) {
gyro._y -= 0.1;
zenny = 0;
bugsy = 9;
ht = 0;
jump = 0;
stone = true;
}
if (stone10.hitTest(gyro._x, gyro._y + 35, true) && dead != true && jump < -9) {
gyro.gotoAndStop(1);
bugsy = 10;
jump = 0;
stone = true;
motion = 9;
zenny = 0;
ht = 0;
stone = true;
}
while (stone10.hitTest(gyro._x, gyro._y + 35, true)) {
gyro._y -= 0.1;
zenny = 0;
bugsy = 10;
ht = 0;
jump = 0;
stone = true;
}
if (stone11.hitTest(gyro._x, gyro._y + 35, true) && dead != true && jump < -9) {
gyro.gotoAndStop(1);
bugsy = 11;
jump = 0;
motion = 9;
zenny = 0;
ht = 0;
stone = true;
}
while (stone11.hitTest(gyro._x, gyro._y + 35, true)) {
gyro._y -= 0.1;
zenny = 0;
bugsy = 11;
ht = 0;
jump = 0;
stone = true;
}
if (stone12.hitTest(gyro._x, gyro._y + 35, true) && dead != true && jump < -9) {
gyro.gotoAndStop(1);
bugsy = 12;
jump = 0;
motion = 9;
zenny = 0;
ht = 0;
stone = true;
}
while (stone12.hitTest(gyro._x, gyro._y + 35, true)) {
gyro._y -= 0.1;
zenny = 0;
bugsy = 12;
ht = 0;
jump = 0;
stone = true;
}
if (stone13.hitTest(gyro._x, gyro._y + 35, true) && dead != true && jump < -9) {
gyro.gotoAndStop(1);
bugsy = 13;
jump = 0;
stone = true;
motion = 9;
zenny = 0;
ht = 0;
}
while (stone13.hitTest(gyro._x, gyro._y + 35, true)) {
gyro._y -= 0.1;
zenny = 0;
bugsy = 13;
ht = 0;
jump = 0;
stone = true;
}
if (stone14.hitTest(gyro._x, gyro._y + 35, true) && dead != true && jump < -9) {
gyro.gotoAndStop(1);
bugsy = 14;
jump = 0;
motion = 9;
zenny = 0;
ht = 0;
stone = true;
}
while (stone14.hitTest(gyro._x, gyro._y + 35, true)) {
gyro._y -= 0.1;
zenny = 0;
bugsy = 14;
ht = 0;
jump = 0;
stone = true;
}
if (stone15.hitTest(gyro._x, gyro._y + 35, true) && dead != true && jump < -9) {
gyro.gotoAndStop(1);
bugsy = 15;
jump = 0;
motion = 9;
zenny = 0;
ht = 0;
stone = true;
}
while (stone15.hitTest(gyro._x, gyro._y + 35, true)) {
gyro._y -= 0.1;
zenny = 0;
bugsy = 15;
ht = 0;
jump = 0;
stone = true;
}
if (stone16.hitTest(gyro._x, gyro._y + 35, true) && dead != true && jump < -9) {
gyro.gotoAndStop(1);
bugsy = 16;
jump = 0;
motion = 9;
zenny = 0;
ht = 0;
stone = true;
}
while (stone16.hitTest(gyro._x, gyro._y + 35, true)) {
gyro._y -= 0.1;
zenny = 0;
bugsy = 16;
ht = 0;
jump = 0;
stone = true;
}
if (stone17.hitTest(gyro._x, gyro._y + 35, true) && dead != true && jump < -9) {
gyro.gotoAndStop(1);
bugsy = 17;
jump = 0;
stone = true;
motion = 9;
zenny = 0;
ht = 0;
}
while (stone17.hitTest(gyro._x, gyro._y + 35, true)) {
gyro._y -= 0.1;
zenny = 0;
bugsy = 17;
ht = 0;
jump = 0;
stone = true;
}
if (stone18.hitTest(gyro._x, gyro._y + 35, true) && dead != true && jump < -9) {
gyro.gotoAndStop(1);
bugsy = 18;
jump = 0;
motion = 9;
zenny = 0;
stone = true;
ht = 0;
}
while (stone18.hitTest(gyro._x, gyro._y + 35, true)) {
gyro._y -= 0.1;
zenny = 0;
bugsy = 18;
ht = 0;
jump = 0;
stone = true;
}
if (stone19.hitTest(gyro._x, gyro._y + 35, true) && dead != true && jump < -9) {
gyro.gotoAndStop(1);
bugsy = 19;
jump = 0;
stone = true;
motion = 9;
zenny = 0;
ht = 0;
}
while (stone19.hitTest(gyro._x, gyro._y + 35, true)) {
gyro._y -= 0.1;
zenny = 0;
bugsy = 19;
ht = 0;
jump = 0;
stone = true;
}
if (stone20.hitTest(gyro._x, gyro._y + 35, true) && dead != true && jump < -9) {
gyro.gotoAndStop(1);
bugsy = 20;
jump = 0;
motion = 9;
stone = true;
zenny = 0;
ht = 0;
}
while (stone20.hitTest(gyro._x, gyro._y + 35, true)) {
gyro._y -= 0.1;
zenny = 0;
bugsy = 20;
ht = 0;
jump = 0;
stone = true;
}
if (stone21.hitTest(gyro._x, gyro._y + 35, true) && dead != true && jump < -9) {
gyro.gotoAndStop(1);
bugsy = 21;
jump = 0;
motion = 9;
stone = true;
zenny = 0;
ht = 0;
}
while (stone21.core.hitTest(gyro._x, gyro._y + 35, true)) {
gyro._y -= 0.1;
zenny = 0;
bugsy = 21;
ht = 0;
jump = 0;
stone = true;
}
if (!_root['stone' + bugsy].hitTest(gyro._x, gyro._y + 55, true) && bossdefeat != true && stone == true && ht == 0) {
ht = 0.7;
}
if (bossog <= bosshealth) {
bossog += icc / 20;
}
if (bossog >= bosshealth) {
bossog -= icc / 20;
}
if (bg5.core.hitTest(gyro._x, gyro._y + 35, true) && dead != true && jump < -3) {
jump = 0;
ht = 0;
stone = false;
}
if (!bg5.core.hitTest(gyro._x, gyro._y + 35, true) && ht == 0 && stone != true) {
gyro.gotoAndPlay('ballup');
ht = 0.5;
}
if (gyro.hitTest(key) && key._visible == true) {
gate = true;
key._visible = false;
key.gotoAndStop(55);
}
if (portalway2.core.hitTest(gyro._x, gyro._y, true) && portalway2._visible == true) {
gyro.gotoAndStop('teleport');
portaled = true;
pause = true;
}
if (pause != true && keyevent <= 0 && gyro._y > mxy && aim != true || pause != true && keyevent <= 0 && gyro._y <= mxy && bg5._y <= mxbg5y && jump < -3 && aim != true || gyro._y > 400 && pause != true && keyevent <= 0 && bg5._y <= mxbg5y && aim != true) {
gyro._y -= jump;
jump -= ht;
}
if (pause != true && keyevent <= 0 && gyro._y <= mxy && aim != true || pause != true && aim != true && keyevent <= 0 && gyro._y > 300 && bg5._y > mxbg5y && jump < -3) {
bg5._y += jump;
jump -= ht;
}
if (Key.isDown(65) && dead != true && pause != true && keyevent <= 0 && screamer > 190 && ht == 0 && duck != true && aim != true && rope != true && whiptimer > whipper) {
jump = 11;
ht = 0.5;
gyro.gotoAndPlay('jump');
}
if (Key.isDown(65) && dead != true && aim != true && pause != true && keyevent <= 0 && screamer > 190 && ht == 0 && duck == true && rope != true && whiptimer > whipper) {
jump = 13;
ht = 0.5;
duck = false;
motion = 0;
gyro.gotoAndPlay('boostjump');
}
if (Key.isDown(40) && dead != true && aim != true && pause != true && keyevent <= 0 && screamer > 190 && ht == 0 && rope != true && whiptimer > whipper && att <= 1.8) {
duck = true;
gyro.gotoAndStop('duck');
}
if (!Key.isDown(40) && dead != true && pause != true && keyevent <= 0 && screamer > 190 && duck == true && rope != true && whiptimer > whipper && att <= 1.8) {
duck = false;
gyro.gotoAndStop(1);
}
if (Key.isDown(39) && dead != true && pause != true && keyevent <= 0 && screamer > 190 && duck != true && aim != true && gyro._x <= mxx && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.play();
goright = true;
goleft = false;
gyro._x += motion;
gyro._xscale = 80;
}
if (Key.isDown(37) && dead != true && pause != true && keyevent <= 0 && screamer > 190 && duck != true && aim != true && gyro._x >= mnx && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.play();
goleft = true;
goright = false;
gyro._x -= motion;
gyro._xscale = -80;
}
if (Key.isDown(39) && dead != true && pause != true && keyevent <= 0 && screamer > 190 && duck != true && aim != true && gyro._x > mxx && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.play();
goright = true;
goleft = false;
bg5._x -= motion;
gyro._xscale = 80;
}
if (Key.isDown(37) && dead != true && pause != true && keyevent <= 0 && screamer > 190 && duck != true && aim != true && gyro._x < mnx && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.play();
goleft = true;
goright = false;
bg5._x += motion;
gyro._xscale = -80;
}
if (!Key.isDown(37) && dead != true && ht == 0 && pause != true && keyevent <= 0 && screamer > 190 && duck != true && aim != true && goleft == true && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.gotoAndStop(1);
goleft = false;
}
if (!Key.isDown(39) && dead != true && ht == 0 && pause != true && keyevent <= 0 && screamer > 190 && duck != true && aim != true && goright == true && rope != true && whiptimer > whipper && att <= 1.8) {
gyro.gotoAndStop(1);
goright = false;
}
if (pause != true && keyevent <= 0 && screamer > 190 && gyro._x <= mxx && gyro._xscale >= 0 || pause != true && keyevent <= 0 && screamer > 190 && gyro._xscale < 0 && gyro._x >= mnx && att <= 1.8) {
gyro._x += att * (gyro._xscale / 80);
att *= 0.9300000000000001;
}
if (pause != true && keyevent <= 0 && screamer > 190 && gyro._x > mxx && gyro._xscale >= 0 || pause != true && keyevent <= 0 && screamer > 190 && gyro._xscale < 0 && gyro._x < mnx && att <= 1.8) {
bg5._x -= att * (gyro._xscale / 80);
att *= 0.9300000000000001;
}
if (pause != true && keyevent <= 0 && screamer > 190 && gyro._x > mxx && gyro._xscale >= 0 || pause != true && keyevent <= 0 && screamer > 190 && gyro._xscale < 0 && gyro._x < mnx && att <= 1.8) {
bg5._x -= att * (gyro._xscale / 80);
att *= 0.9300000000000001;
}
if (bg5.wall.hitTest(gyro._x + 40, gyro._y, true)) {
gyro._x -= motion;
}
while (bg5.wall.hitTest(gyro._x + 40, gyro._y, true)) {
gyro._x -= 0.1;
}
if (bg5.wall.hitTest(gyro._x - 40, gyro._y, true)) {
gyro._x += motion;
}
while (bg5.wall.hitTest(gyro._x - 40, gyro._y, true)) {
gyro._x += 0.1;
}
if (screamer < 160) {
cea = 60;
}
if (screamer >= 160) {
cea = 20;
}
if (gyro._y < 200 && aim != true && pause != true && keyevent <= 0 && screamer > 190 && ht == 0 && dead != true) {
gyro._y += 5;
bg5._y += 5;
}
if (bg5._y <= mxbg5y) {
bg5._y = mxbg5y;
}
if (gyro._y > 330 && aim != true && pause != true && keyevent <= 0 && screamer > 190 && ht == 0 && dead != true) {
gyro._y -= 5;
bg5._y -= 5;
}
if (gyro._x < mnx - 30 && screamer > 170) {
bg5._x += mot / cea;
gyro._x += mot / cea;
}
if (gyro._x > mxx + 30) {
bg5._x += mot / cea;
gyro._x += mot / cea;
}
if (benny < score) {
benny += 1;
}
if (pause != true && screamer > 190) {
starzx1 += starburst1;
starburst1 *= 0.94;
starzy1 += starjump1;
starjump1 -= 0.5;
starzx2 += starburst2;
starburst2 *= 0.94;
starzy2 += starjump2;
starjump2 -= 0.5;
starzx3 += starburst3;
starburst3 *= 0.94;
starzy3 += starjump3;
starjump3 -= 0.5;
starzx4 += starburst4;
starburst4 *= 0.94;
starzy4 += starjump4;
starjump4 -= 0.5;
starzx5 += starburst5;
starburst5 *= 0.94;
starzy5 += starjump5;
starjump5 -= 0.5;
starzx6 += starburst6;
starburst6 *= 0.94;
starzy6 += starjump6;
starjump6 -= 0.5;
}
if (enemy.core.hitTest(gyro) && suprise != true && ejump < 0 && pause != true && keyevent <= 0) {
lives -= 1;
gauge.gorp.play();
gyro.gotoAndPlay('ballup');
zony.gotoAndPlay('ow');
duplicateMovieClip('star' + pink, 'starz1', 1000);
starzx1 = bg5._x - gyro._x;
starzy1 = bg5._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz2', 1002);
starzx2 = bg5._x - gyro._x;
starzy2 = bg5._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz3', 1003);
starzx3 = bg5._x - gyro._x;
starzy3 = bg5._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz4', 1004);
starzx4 = bg5._x - gyro._x;
starzy4 = bg5._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz5', 1005);
starzx5 = bg5._x - gyro._x;
starzy5 = bg5._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz6', 1006);
starzx6 = bg5._x - gyro._x;
starzy6 = bg5._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
dupstar = 0;
gyro._x = bg5._x - intx;
scratch += 1;
diess += 1;
gyro._y = -300;
}
if (gyro._y > 1700 && lives > 0 && keyevent <= 0) {
lives -= 1;
gauge.gorp.play();
diess += 1;
gyro._x = bg5._x - intx;
scratch += 1;
gyro._y = -300;
}
if (keyevent > 0) {
gyro._y = 260;
}
if (lives <= 0) {
gameover.play();
portaled = true;
pause = true;
}
if (pause != true && keyevent <= 0 && screamer > 190) {
whiptimer += 1;
boomx1 -= trajectoryx1;
boomy1 += trajectoryy1;
trajectoryx1 -= ben;
trajectoryy1 -= ken;
boomtimer += 1;
dupstar += 1;
}
if (boomerang1._x > gyro._x) {
ben = 0.5;
}
if (boomerang1._x < gyro._x) {
ben = -0.5;
}
if (boomerang1._y > gyro._y + 20) {
ken = -0.5;
}
if (boomerang1._y < gyro._y - 20) {
ken = 0.5;
}
if (boomerang1._y < gyro._y + 20 && boomerang1._y > gyro._y - 20) {
ken = 0;
trajectoryy1 = 0;
}
if (boomer <= 0 && dupstar > 5) {
duplicateMovieClip('star' + type, 'star' + stardu, stardu + 100);
_root['starx' + stardu] = bg5._x - boomerang1._x;
_root['stary' + stardu] = bg5._y - boomerang1._y;
_root['star' + stardu]._rotation = Math.random() * 360;
stardu += 1;
dupstar = 0;
}
if (stardu > 5) {
stardu = 1;
}
if (Key.isDown(83) && dead != true && jump <= 0 && ht == 0 && rope != true && aim != true && boomer > 0 && pause != true && keyevent <= 0 && screamer > 190 && duck != true && aim != true && whiptimer > whipper) {
aim = true;
dupstar = 0;
ror = 0;
}
if (aim == true) {
gyro.gotoAndStop('aim');
arrows._x = gyro._x;
arrows._y = gyro._y;
arrows._visible = true;
arrows._rotation = ror * (gyro._xscale / 80);
arrows._xscale = gyro._xscale * 1.25;
}
if (aim != true) {
arrows._visible = false;
}
if (aim == true && Key.isDown(40) && ror < 60) {
ror += 5;
arrows.play();
}
if (aim == true && Key.isDown(38) && ror > -60) {
ror -= 5;
arrows.play();
}
if (boomerang1._x > gyro._x - 50 && boomerang1._x < gyro._x + 50 && boomerang1._y > gyro._y - 50 && boomerang1._y < gyro._y + 50 && boomtimer > 50) {
boomer = 1;
zex = false;
removeMovieClip(boomerang1);
}
if (!Key.isDown(83) && aim == true && pause != true && keyevent <= 0 && screamer > 190 && boomer > 0 && whiptimer > whipper && duck != true) {
duplicateMovieClip('boomerang' + type, 'boomerang' + boomer, 200 + boomer);
stardu = 1;
_root['boomx' + boomer] = bg5._x - gyro._x;
_root['boomy' + boomer] = bg5._y - gyro._y - 50 * Math.sin(ror * 0.0174532925199433);
gyro.gotoAndPlay('boomerang');
_root['trajectoryx' + boomer] = 23 * Math.cos(ror * 0.0174532925199433) * (gyro._xscale / 80);
_root['glip' + boomer] = 1 * (gyro._xscale / 80);
_root['trajectoryy' + boomer] = -23 * Math.sin(ror * 0.0174532925199433);
_root['boomacc' + boomer] = 0;
aim = false;
ht = 0;
jump = 0;
ben = 0.5;
ken = 0.5;
boomer = 0;
whiptimer = 0;
whipper = 20;
boomtimer = 0;
}
if (cohert == true && !Key.isDown(67)) {
cohert = false;
}
if (Key.isDown(67) && cohert != true && pause != true && keyevent <= 0 && screamer > 190 && coxin != true && portaled != true) {
pause = true;
cohert = true;
gyro.stop();
}
if (Key.isDown(67) && cohert != true && pause == true && portaled != true) {
pause = false;
cohert = true;
}
if (pause == true && portaled != true) {
gyro.stop();
gauge.boc.gotoAndPlay(60);
pausemen._visible = true;
gauge.puzzle.gotoAndPlay(60);
gauge.gyroletters.gotoAndPlay(60);
gyro.goop.gotoAndPlay(1);
}
if (pause != true && keyevent <= 0) {
pausemen._visible = false;
}
if (dead == true && gyro._x > 270) {
bg5._x -= 3;
gyro._x -= 3;
}
if (dead == true && gyro._x < 330) {
bg5._x += 3;
gyro._x += 3;
}
if (dead == true && gyro._y < 300) {
bg5._y += 3;
gyro._y += 3;
}
if (dead == true) {
jump = 0;
ht = 0;
}
if (ejump == 0 && pause != true && keyevent <= 0) {
ejo += 1;
}
if (screamed == true && pause != true && keyevent <= 0) {
eny += ejump;
ejump -= eht;
zok = 150;
}
if (ejump > 0 && suprise != true) {
enemy.gotoAndStop('jump');
}
if (ejump < 0 && suprise != true) {
enemy.gotoAndStop('fall');
}
if (suprise == true) {
enemy.gotoAndStop('suprise');
}
if (ejump == 0) {
enemy.gotoAndStop(1);
}
if (ejump < -14) {
ejump = -14;
}
if (ejo > 130 && pause != true && keyevent <= 0) {
ejump = 50;
eht = 0.3;
ejo = 0;
}
if (pause != true && keyevent <= 0) {
arrowf._x = enemy._x;
}
if (enemy._y < -300) {
arrowf._visible = true;
}
if (enemy._y > 0) {
arrowf._visible = false;
}
if (ejump > 0 && screamer > 140 && pause != true && keyevent <= 0 && gyro._x > enemy._x + 15) {
enx -= 3;
}
if (ejump > 0 && screamer > 140 && pause != true && keyevent <= 0 && gyro._x < enemy._x - 15) {
enx += 3;
}
if (ejump < 0 && enemy._y < -50 && screamer > 140 && pause != true && keyevent <= 0 && gyro._x > enemy._x + 15) {
enx -= 3;
}
if (ejump < 0 && enemy._y < -50 && screamer > 140 && pause != true && keyevent <= 0 && gyro._x < enemy._x - 15) {
enx += 3;
}
if (!_root['stone' + kaiser].hitTest(enemy._x, enemy._y + 135, true) && stonee == true && suprise != true && screamer > 140 && ejump == 0) {
suprise = true;
eht = 0.5;
ejump = 9;
}
if (stone3.hitTest(enemy._x, enemy._y + 135, true) && dead != true && ejump < -3) {
duplicateMovieClip(dust, 'dusty', 999);
dustox = bg5._x - enemy._x;
dustoy = bg5._y - (enemy._y + 130);
ejump = 0;
eny = bg5._y - (stone3._y - zok);
zony.play();
eht = 0;
kaiser = 3;
suprise = false;
stonee = true;
stone3.play();
}
if (stone1.hitTest(enemy._x, enemy._y + 135, true) && dead != true && ejump < -3) {
duplicateMovieClip(dust, 'dusty', 999);
dustox = bg5._x - enemy._x;
dustoy = bg5._y - (enemy._y + 130);
ejump = 0;
eny = bg5._y - (stone1._y - zok);
zony.play();
ejo = 0;
eht = 0;
kaiser = 1;
suprise = false;
stonee = true;
stone1.play();
}
if (stone2.hitTest(enemy._x, enemy._y + 135, true) && dead != true && ejump < -3) {
duplicateMovieClip(dust, 'dusty', 999);
dustox = bg5._x - enemy._x;
dustoy = bg5._y - (enemy._y + 130);
ejump = 0;
eny = bg5._y - (stone2._y - zok);
eht = 0;
zony.play();
ejo = 0;
kaiser = 2;
stonee = true;
suprise = false;
stone2.play();
}
if (stone4.hitTest(enemy._x, enemy._y + 135, true) && dead != true && ejump < -3) {
duplicateMovieClip(dust, 'dusty', 999);
dustox = bg5._x - enemy._x;
dustoy = bg5._y - (enemy._y + 130);
ejump = 0;
eny = bg5._y - (stone4._y - zok);
eht = 0;
zony.play();
ejo = 0;
kaiser = 4;
stonee = true;
suprise = false;
stone4.play();
}
if (stone5.hitTest(enemy._x, enemy._y + 135, true) && dead != true && ejump < -3) {
duplicateMovieClip(dust, 'dusty', 999);
dustox = bg5._x - enemy._x;
dustoy = bg5._y - (enemy._y + 130);
ejump = 0;
eny = bg5._y - (stone5._y - zok);
eht = 0;
zony.play();
stonee = true;
ejo = 0;
kaiser = 5;
suprise = false;
stone5.play();
}
if (stone6.hitTest(enemy._x, enemy._y + 135, true) && dead != true && ejump < -3) {
duplicateMovieClip(dust, 'dusty', 999);
dustox = bg5._x - enemy._x;
dustoy = bg5._y - (enemy._y + 130);
ejump = 0;
eny = bg5._y - (stone6._y - zok);
eht = 0;
zony.play();
stonee = true;
ejo = 0;
kaiser = 6;
suprise = false;
stone6.play();
}
if (stone7.hitTest(enemy._x, enemy._y + 135, true) && dead != true && ejump < -3) {
duplicateMovieClip(dust, 'dusty', 999);
dustox = bg5._x - enemy._x;
dustoy = bg5._y - (enemy._y + 130);
ejump = 0;
eny = bg5._y - (stone7._y - zok);
eht = 0;
zony.play();
stonee = true;
ejo = 0;
kaiser = 7;
suprise = false;
stone7.play();
}
if (stone8.hitTest(enemy._x, enemy._y + 135, true) && dead != true && ejump < -3) {
duplicateMovieClip(dust, 'dusty', 999);
dustox = bg5._x - enemy._x;
dustoy = bg5._y - (enemy._y + 130);
ejump = 0;
eny = bg5._y - (stone8._y - zok);
zony.play();
stonee = true;
eht = 0;
kaiser = 8;
suprise = false;
ejo = 0;
stone8.play();
}
if (stone9.hitTest(enemy._x, enemy._y + 135, true) && dead != true && ejump < -3) {
duplicateMovieClip(dust, 'dusty', 999);
dustox = bg5._x - enemy._x;
dustoy = bg5._y - (enemy._y + 130);
ejump = 0;
stonee = true;
eny = bg5._y - (stone9._y - zok);
zony.play();
eht = 0;
kaiser = 9;
suprise = false;
ejo = 0;
stonee = true;
stone9.play();
}
if (stone10.hitTest(enemy._x, enemy._y + 135, true) && dead != true && ejump < -3) {
duplicateMovieClip(dust, 'dusty', 999);
dustox = bg5._x - enemy._x;
dustoy = bg5._y - (enemy._y + 130);
ejump = 0;
eny = bg5._y - (stone10._y - zok);
eht = 0;
kaiser = 10;
suprise = false;
zony.play();
ejo = 0;
stonee = true;
stone10.play();
}
if (stone11.hitTest(enemy._x, enemy._y + 135, true) && dead != true && ejump < -3) {
duplicateMovieClip(dust, 'dusty', 999);
dustox = bg5._x - enemy._x;
dustoy = bg5._y - (enemy._y + 130);
ejump = 0;
eny = bg5._y - (stone11._y - zok);
eht = 0;
stonee = true;
zony.play();
kaiser = 11;
suprise = false;
ejo = 0;
stone11.play();
}
if (stone12.hitTest(enemy._x, enemy._y + 135, true) && dead != true && ejump < -3) {
duplicateMovieClip(dust, 'dusty', 999);
dustox = bg5._x - enemy._x;
dustoy = bg5._y - (enemy._y + 130);
ejump = 0;
eny = bg5._y - (stone12._y - zok);
eht = 0;
stonee = true;
zony.play();
kaiser = 12;
suprise = false;
}
if (stone13.hitTest(enemy._x, enemy._y + 135, true) && dead != true && ejump < -3) {
duplicateMovieClip(dust, 'dusty', 999);
dustox = bg5._x - enemy._x;
dustoy = bg5._y - (enemy._y + 130);
ejump = 0;
eny = bg5._y - (stone13._y - zok);
eht = 0;
stonee = true;
zony.play();
kaiser = 13;
suprise = false;
ejo = 0;
stonee = true;
stone13.play();
}
if (stone14.hitTest(enemy._x, enemy._y + 135, true) && dead != true && ejump < -3) {
duplicateMovieClip(dust, 'dusty', 999);
dustox = bg5._x - enemy._x;
dustoy = bg5._y - (enemy._y + 130);
ejump = 0;
eny = bg5._y - (stone14._y - zok);
eht = 0;
stonee = true;
zony.play();
kaiser = 14;
suprise = false;
duplicateMovieClip('star' + pink, 'starz1', 1000);
ejo = 0;
stone14.play();
}
if (stone15.hitTest(enemy._x, enemy._y + 135, true) && dead != true && ejump < -3) {
ejump = 0;
stonee = true;
eny = bg5._y - (stone15._y - zok);
zony.play();
eht = 0;
kaiser = 15;
suprise = false;
stone15.play();
}
if (stone16.hitTest(enemy._x, enemy._y + 135, true) && dead != true && ejump < -3) {
ejump = 0;
eny = bg5._y - (stone16._y - zok);
zony.play();
eht = 0;
kaiser = 16;
suprise = false;
ejo = 0;
stonee = true;
stone16.play();
}
if (stone17.hitTest(enemy._x, enemy._y + 135, true) && dead != true && ejump < -3) {
ejump = 0;
eny = bg5._y - (stone17._y - zok);
eht = 0;
kaiser = 17;
suprise = false;
zony.play();
duplicateMovieClip('star' + pink, 'starz1', 1000);
ejo = 0;
stone17.play();
}
if (stone18.hitTest(enemy._x, enemy._y + 135, true) && dead != true && ejump < -3) {
ejump = 0;
stonee = true;
eny = bg5._y - (stone18._y - zok);
eht = 0;
kaiser = 18;
suprise = false;
zony.play();
ejo = 0;
stonee = true;
stone18.play();
}
if (stone19.hitTest(enemy._x, enemy._y + 135, true) && dead != true && ejump < -3) {
ejump = 0;
eny = bg5._y - (stone19._y - zok);
eht = 0;
kaiser = 19;
suprise = false;
zony.play();
ejo = 0;
stonee = true;
stone19.play();
}
if (stone20.hitTest(enemy._x, enemy._y + 135, true) && dead != true && ejump < -3) {
ejump = 0;
eny = bg5._y - (stone20._y - zok);
eht = 0;
kaiser = 20;
suprise = false;
zony.play();
ejo = 0;
stonee = true;
stone20.play();
}
if (keyevent > 300 && keyevent < 302) {
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg5._x - gyro._x;
starzy1 = bg5._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg5._x - gyro._x;
starzy2 = bg5._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg5._x - gyro._x;
starzy3 = bg5._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg5._x - gyro._x;
starzy4 = bg5._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg5._x - gyro._x;
starzy5 = bg5._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg5._x - gyro._x;
starzy6 = bg5._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
score += 100;
}
if (keyevent > 350 && keyevent < 352) {
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg5._x - 300;
starzy1 = bg5._y - 150;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg5._x - 300;
starzy2 = bg5._y - 150;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg5._x - 300;
starzy3 = bg5._y - 150;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg5._x - 300;
starzy4 = bg5._y - 150;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg5._x - 300;
starzy5 = bg5._y - 150;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg5._x - 300;
starzy6 = bg5._y - 150;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
score += 100;
}
if (keyevent > 200 && keyevent < 202) {
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg5._x - 200;
starzy1 = bg5._y - 220;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg5._x - 200;
starzy2 = bg5._y - 220;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg5._x - 200;
starzy3 = bg5._y - 220;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg5._x - 200;
starzy4 = bg5._y - 220;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg5._x - 200;
starzy5 = bg5._y - 220;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg5._x - 200;
starzy6 = bg5._y - 220;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
score += 100;
}
if (keyevent > 250 && keyevent < 252) {
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg5._x - 400;
starzy1 = bg5._y - 140;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg5._x - 400;
starzy2 = bg5._y - 140;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg5._x - 400;
starzy3 = bg5._y - 140;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg5._x - 400;
starzy4 = bg5._y - 140;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg5._x - 400;
starzy5 = bg5._y - 140;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg5._x - 400;
starzy6 = bg5._y - 140;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
score += 100;
}
if (gyro._y > 260 && bossdefeat == true && jump < 0) {
jump = 0;
ht = 0;
motion = 8;
bosshealth = 0;
gyro.gotoAndStop(1);
gyro._y = 260;
}
if (enemy._y > 1700 && achieva2 != true && diess <= 0) {
duplicateMovieClip(rewards, 'rewarder', 984);
rewarder._x = 300;
rewarder._y = 200;
rewarder.gotoAndPlay('reward3');
goals1 += 1;
achieva2 = true;
}
if (enemy._y > 1700 && achieva4 != true && scratch <= 0) {
duplicateMovieClip(rewards, 'rewarder2', 983);
rewarder2._x = 300;
rewarder2._y = 250;
rewarder2.gotoAndPlay('reward5');
goals1 += 1;
achieva4 = true;
}
if (bricked >= 8 && achieva3 != true) {
duplicateMovieClip(rewards, 'rewarder', 984);
rewarder._x = 300;
rewarder._y = 200;
rewarder.gotoAndPlay('reward4');
goals1 += 1;
achieva3 = true;
}
if (enemy._y > 1800 && pause != true && keyevent <= 0 && enemylife == true) {
bossgauge.gotoAndStop(1);
zony.gotoAndPlay('victory');
gyro.gotoAndPlay('victory');
bossdefeat = true;
bosshealth = 0;
gate = true;
bg5.play();
wallc.play();
stone1._visible = false;
stone2._visible = false;
stone3._visible = false;
stone4._visible = false;
stone5._visible = false;
stone6._visible = false;
stone7._visible = false;
stone8._visible = false;
stone9._visible = false;
stone10._visible = false;
stone11._visible = false;
stone12._visible = false;
stone13._visible = false;
stone14._visible = false;
stone15._visible = false;
stone16._visible = false;
stone17._visible = false;
stone18._visible = false;
stone19._visible = false;
stone20._visible = false;
portalway2.play();
keyx = bg5._x - 400;
keyy = bg5._y + 300;
keyevent = 600;
enemylife = false;
}
if (jump < -10) {
jump = -10;
}
if (magickey2._y > 200 && keyevent > 0) {
keyy += 1;
}
if (screamer < 100 && enemy._x > 400) {
bg5._x -= 2;
gyro._x -= 2;
}
if (pause == true) {
_quality = 'High';
}
if (pause != true && keyevent <= 0 && screamer > 190 && qset >= 3) {
_quality = 'High';
}
if (pause != true && keyevent <= 0 && screamer > 190 && qset == 2) {
_quality = 'Medium';
}
if (pause != true && keyevent <= 0 && screamer > 190 && qset <= 1) {
_quality = 'Low';
}
boomerang1._x = bg5._x - boomx1;
boomerang1._y = bg5._y - boomy1;
star1._x = bg5._x - starx1;
star1._y = bg5._y - stary1;
star2._x = bg5._x - starx2;
star2._y = bg5._y - stary2;
star3._x = bg5._x - starx3;
star3._y = bg5._y - stary3;
star4._x = bg5._x - starx4;
star4._y = bg5._y - stary4;
star5._x = bg5._x - starx5;
star5._y = bg5._y - stary5;
gauge.blade.gotoAndStop(weapon);
gauge.lives = lives;
gauge.cash = cash;
gauge.score = benny;
starz1._x = bg5._x - starzx1;
starz1._y = bg5._y - starzy1;
starz2._x = bg5._x - starzx2;
starz2._y = bg5._y - starzy2;
starz3._x = bg5._x - starzx3;
starz3._y = bg5._y - starzy3;
starz4._x = bg5._x - starzx4;
starz4._y = bg5._y - starzy4;
starz5._x = bg5._x - starzx5;
starz5._y = bg5._y - starzy5;
starz6._x = bg5._x - starzx6;
starz6._y = bg5._y - starzy6;
gauge.gyroletters.letterg._visible = false;
gauge.gyroletters.lettery._visible = false;
gauge.gyroletters.letterr._visible = false;
gauge.gyroletters.lettero._visible = false;
mot = 300 - gyro._x;
magickey2._x = bg5._x - keyx;
magickey2._y = bg5._y - keyy;
portalway2._visible = gate;
spring._x = bg5._x - springx;
spring._y = bg5._y - springy;
wallc._x = bg5._x - wallcx;
wallc._y = bg5._y - wallcy;
puzzle._x = bg5._x - pzx;
puzzle._y = bg5._y - pzy;
gauge.puzzle.count = puzzles;
portalway2._x = bg5._x - portx;
portalway2._y = bg5._y - porty;
tutorboxx._x = bg5._x - tbx;
tutorboxx._y = bg5._y - tby;
stone1._x = bg5._x - stx1;
stone1._y = bg5._y - sty1;
stone2._x = bg5._x - stx2;
stone2._y = bg5._y - sty2;
stone3._x = bg5._x - stx3;
stone3._y = bg5._y - sty3;
stone4._x = bg5._x - stx4;
stone4._y = bg5._y - sty4;
stone5._x = bg5._x - stx5;
stone5._y = bg5._y - sty5;
stone6._x = bg5._x - stx6;
stone6._y = bg5._y - sty6;
stone7._x = bg5._x - stx7;
stone7._y = bg5._y - sty7;
stone8._x = bg5._x - stx8;
stone8._y = bg5._y - sty8;
stone9._x = bg5._x - stx9;
stone9._y = bg5._y - sty9;
stone10._x = bg5._x - stx10;
stone10._y = bg5._y - sty10;
stone11._x = bg5._x - stx11;
stone11._y = bg5._y - sty11;
stone12._x = bg5._x - stx12;
stone12._y = bg5._y - sty12;
stone13._x = bg5._x - stx13;
stone13._y = bg5._y - sty13;
stone14._x = bg5._x - stx14;
stone14._y = bg5._y - sty14;
stone15._x = bg5._x - stx15;
stone15._y = bg5._y - sty15;
stone16._x = bg5._x - stx16;
stone16._y = bg5._y - sty16;
stone17._x = bg5._x - stx17;
stone17._y = bg5._y - sty17;
stone18._x = bg5._x - stx18;
stone18._y = bg5._y - sty18;
stone19._x = bg5._x - stx19;
stone19._y = bg5._y - sty19;
stone20._x = bg5._x - stx20;
stone20._y = bg5._y - sty20;
stone21._x = bg5._x - stx21;
stone21._y = bg5._y - sty21;
screamer += 1;
gauge.boc.count = bcash;
keyevent -= 1;
enemy._x = bg5._x - enx;
enemy._y = bg5._y - eny;
gyro.prize.gotoAndStop(1);
dusty._x = bg5._x - dustox;
dusty._y = bg5._y - dustoy;
icc = bosshealth - bossog;
bossgauge.gotoAndStop(bosshealth);
};
}
movieClip 1145 {
frame 1 {
stop();
}
}
movieClip 1147 {
}
movieClip 1151 {
}
movieClip 1154 {
frame 1 {
stop();
}
frame 85 {
gotoAndStop(80);
}
frame 86 {
gotoAndStop(80);
}
frame 87 {
gotoAndStop(80);
}
frame 88 {
gotoAndStop(80);
}
frame 89 {
gotoAndStop(80);
}
}
movieClip 1156 {
}
movieClip 1159 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 4 {
_root.bricked += 1;
}
}
instance stone7 of movieClip 1159 {
onClipEvent (load) {
this.gotoAndStop(3);
}
}
movieClip 1161 {
}
movieClip 1162 {
frame 1 {
stop();
}
}
movieClip 1178 {
frame 1 {
stop();
}
frame 378 {
gotoAndPlay(345);
}
}
movieClip 1183 {
}
movieClip 1185 {
}
movieClip 1187 {
}
movieClip 1189 {
}
movieClip 1191 {
}
movieClip 1192 {
}
movieClip 1194 {
}
movieClip 1196 {
frame 76 {
stop();
}
}
movieClip 1198 {
}
movieClip 1200 {
}
movieClip 1202 {
frame 89 {
stop();
}
}
movieClip 1205 {
}
movieClip 1207 {
}
movieClip 1208 {
}
movieClip 1209 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 1214 {
frame 1 {
stop();
}
frame 1 {
_root._y = 0;
_root._x = 0;
}
frame 2 {
_root._y = 2;
_root._x = -2;
}
frame 3 {
_root._y = 0;
_root._x = 0;
}
frame 4 {
_root._y = -2;
_root._x = 2;
}
frame 5 {
_root._y = 0;
_root._x = 0;
}
frame 6 {
_root._y = 1;
_root._x = -1;
}
frame 7 {
_root._y = 0;
_root._x = 0;
}
frame 8 {
_root._y = -1;
_root._x = 1;
}
frame 9 {
_root._y = 0;
_root._x = 0;
}
frame 11 {
gotoAndStop(1);
}
frame 12 {
_root._y = 2;
_root._x = -2;
}
frame 13 {
_root._y = 0;
_root._x = 0;
}
frame 14 {
_root._y = -2;
_root._x = 2;
}
frame 15 {
_root._y = 0;
_root._x = 0;
}
frame 16 {
_root._y = 1;
_root._x = -1;
}
frame 17 {
_root._y = 0;
_root._x = 0;
}
frame 18 {
_root._y = -1;
_root._x = 1;
}
frame 19 {
_root._y = 0;
_root._x = 0;
}
frame 20 {
_root._y = 2;
_root._x = -2;
}
frame 21 {
_root._y = 0;
_root._x = 0;
}
frame 22 {
_root._y = -2;
_root._x = 2;
}
frame 23 {
_root._y = 0;
_root._x = 0;
}
frame 24 {
_root._y = 1;
_root._x = -1;
}
frame 25 {
_root._y = 0;
_root._x = 0;
}
frame 26 {
_root._y = -1;
_root._x = 1;
}
frame 27 {
_root._y = 0;
_root._x = 0;
}
frame 28 {
_root._y = 2;
_root._x = -2;
}
frame 29 {
_root._y = 0;
_root._x = 0;
}
frame 30 {
_root._y = -2;
_root._x = 2;
}
frame 31 {
_root._y = 0;
_root._x = 0;
}
frame 32 {
_root._y = 1;
_root._x = -1;
}
frame 33 {
_root._y = 0;
_root._x = 0;
}
frame 34 {
_root._y = -1;
_root._x = 1;
}
frame 35 {
_root._y = 0;
_root._x = 0;
}
frame 115 {
gotoAndStop(1);
}
frame 125 {
gotoAndStop(1);
}
}
movieClip 1216 {
}
movieClip 1217 {
}
movieClip 1262 {
frame 87 {
stop();
}
}
movieClip 1263 {
frame 1 {
stop();
}
frame 5 {
gotoAndStop(2);
}
frame 6 {
gotoAndStop(2);
}
frame 7 {
gotoAndStop(2);
}
frame 8 {
gotoAndStop(2);
}
}
movieClip 1266 {
frame 290 {
stop();
}
}
instance of movieClip 1266 {
onClipEvent (load) {
this.swapDepths(9700);
}
}
movieClip 1271 {
}
movieClip 1275 {
frame 1 {
stop();
}
frame 100 {
stop();
}
}
frame 20 {
for (i in _root) {
_root[i].swapDepths(10102);
removeMovieClip(_root[i]);
}
delete eval(onEnterFrame());
}
frame 21 {
delete eval(onEnterFrame());
}
frame 22 {
stop();
}
frame 22 {
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.data.goals1 = _root.goals1;
savefile.data.goals2 = _root.goals2;
savefile.data.goals3 = _root.goals3;
savefile.data.goals4 = _root.goals4;
savefile.data.achieva1 = _root.achieva1;
savefile.data.achieva2 = _root.achieva2;
savefile.data.achieva3 = _root.achieva3;
savefile.data.achieva4 = _root.achieva4;
savefile.data.achieva5 = _root.achieva5;
savefile.data.achieva6 = _root.achieva6;
savefile.data.achievb1 = _root.achievb1;
savefile.data.achievb2 = _root.achievb2;
savefile.data.achievb3 = _root.achievb3;
savefile.data.achievb4 = _root.achievb4;
savefile.data.achievb5 = _root.achievb5;
savefile.data.achievb6 = _root.achievb6;
savefile.data.achievc1 = _root.achievc1;
savefile.data.achievc2 = _root.achievc2;
savefile.data.achievc3 = _root.achievc3;
savefile.data.achievc4 = _root.achievc4;
savefile.data.achievc5 = _root.achievc5;
savefile.data.achievc6 = _root.achievc6;
savefile.flush();
}
// unknown tag 88 length 69
movieClip 1290 {
frame 370 {
stop();
}
}
movieClip 1300 {
frame 214 {
stop();
}
}
instance buo of movieClip 434 {
onClipEvent (load) {
ava = 0;
_visible = false;
bonus = false;
_root.goala1 = true;
}
onClipEvent (enterFrame) {
if (_root.world <= 1 || _root.world == undefined) {
_root.world = 2;
}
if (ava > 200) {
_visible = true;
}
if (ava > 200 && _root.percentor1 > 75 && bonus != true) {
_root.bonus.play();
bonus = true;
}
if (_root.bcash >= 20) {
_root.goala4 = true;
}
if (_root.puzzles >= 5) {
_root.goala5 = true;
}
if (Key.isDown(32)) {
_root.tran.play();
}
if (_root.percentor1 > _root.percent1) {
_root.percent1 = _root.percentor1;
}
if (_root.puzzles >= _root.puzzleco1 || puzzleco1 == undefined) {
_root.puzzleco1 = _root.puzzles;
}
if (_root.bcash >= _root.blueco1 || blueco1 == undefined) {
_root.blueco1 = _root.bcash;
}
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.data.goals1 = _root.goals1;
savefile.data.goals2 = _root.goals2;
savefile.data.goals3 = _root.goals3;
savefile.data.goals4 = _root.goals4;
savefile.data.achieva1 = _root.achieva1;
savefile.data.achieva2 = _root.achieva2;
savefile.data.achieva3 = _root.achieva3;
savefile.data.achieva4 = _root.achieva4;
savefile.data.achieva5 = _root.achieva5;
savefile.data.achieva6 = _root.achieva6;
savefile.data.achievb1 = _root.achievb1;
savefile.data.achievb2 = _root.achievb2;
savefile.data.achievb3 = _root.achievb3;
savefile.data.achievb4 = _root.achievb4;
savefile.data.achievb5 = _root.achievb5;
savefile.data.achievb6 = _root.achievb6;
savefile.data.achievc1 = _root.achievc1;
savefile.data.achievc2 = _root.achievc2;
savefile.data.achievc3 = _root.achievc3;
savefile.data.achievc4 = _root.achievc4;
savefile.data.achievc5 = _root.achievc5;
savefile.data.achievc6 = _root.achievc6;
savefile.flush();
ava += 1;
sc1 = 30;
sc2 = Math.round((_root.bcash / 20) * 30);
sc3 = Math.round((_root.puzzles / 5) * 35);
_root.percentor1 = sc1 + sc2 + sc3 + 5;
}
}
movieClip 1305 {
}
movieClip 1306 {
frame 1 {
stop();
}
frame 30 {
stop();
}
}
movieClip 1309 {
}
movieClip 1313 {
frame 31 {
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.flush();
}
frame 32 {
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.flush();
}
frame 135 {
stop();
}
frame 153 {
stopAllSounds();
}
frame 234 {
if (_root.buo.bonus != true) {
_root.gotoAndPlay('worldselect');
}
if (_root.buo.bonus == true) {
_root.play();
}
}
frame 235 {
if (_root.buo.bonus != true) {
_root.gotoAndPlay('worldselect');
}
if (_root.buo.bonus == true) {
_root.play();
}
}
frame 236 {
if (_root.buo.bonus != true) {
_root.gotoAndPlay('worldselect');
}
if (_root.buo.bonus == true) {
_root.play();
}
}
}
frame 23 {
stop();
_quality = 'High';
}
movieClip 1314 {
}
instance of movieClip 434 {
onClipEvent (enterFrame) {
if (_root.booker != true && Key.isDown(32)) {
_root.tran.play();
_root.booker = true;
}
if (_root.booker == true && !Key.isDown(32)) {
_root.booker = false;
}
}
}
movieClip 1318 {
}
movieClip 1319 {
}
frame 24 {
if (qset == undefined) {
qset = 2;
}
if (qset == 2) {
_quality = 'Medium';
}
if (qset == 1) {
_quality = 'Low';
}
if (qset == 3) {
_quality = 'High';
}
}
frame 24 {
stop();
miss = 0;
if (lives == undefined) {
lives = 9;
}
stopsound = 0;
bgb.core._visible = false;
bgb.wall._visible = false;
bgb.wall2._visible = false;
bgb.hole._visible = false;
pausemen._visible = false;
tran.swapDepths(44444);
gauge.swapDepths(20000);
pausemen.swapDepths(19999);
startup.swapDepths(10000);
wall.swapDepths(7000);
starttimer = 0;
begin = false;
wxx = bgb._x - wall._x;
wxy = bgb._y - wall._y;
cash = 0;
score = 0;
px = 0;
enx = bgb._x - enemy._x;
enxy = bgb._y - enemy._y;
sweater = 0;
timeout = 50;
mnx = gyro._x - 100;
mxx = gyro._x + 100;
jump = 0;
ht = 0;
motion = 9;
att = 0;
whipper = 0;
whiptimer = 0;
boomper = 0;
difficulty = 1;
bomber = 0;
nobomb = 0;
genny = 0;
bombo = 0;
victorycharge = 0;
victory = false;
onEnterFrame = function () {
if (bgb.wall.hitTest(gyro._x + 40, gyro._y, true)) {
midground._x += geng;
gyro._x -= motion;
}
while (bgb.wall.hitTest(gyro._x + 40, gyro._y, true)) {
gyro._x -= 0.1;
}
if (bgb.wall.hitTest(gyro._x - 40, gyro._y, true)) {
gyro._x += motion;
midground._x -= geng;
}
while (bgb.wall.hitTest(gyro._x - 40, gyro._y, true)) {
gyro._x += 0.1;
}
if (bgb.wall2.hitTest(bomb1._x + 40, bomb1._y, true)) {
blaunch1 = 0;
}
if (bgb.wall2.hitTest(bomb2._x + 40, bomb2._y, true)) {
blaunch2 = 0;
}
if (bgb.wall2.hitTest(bomb3._x + 40, bomb3._y, true)) {
blaunch3 = 0;
}
if (boomper < 300) {
pause = true;
}
if (boomper >= 300 && begin != true) {
pause = false;
begin = true;
}
if (score >= 5000) {
goala6 = true;
}
if (Key.isDown(39) && genny <= 0 && pause != true && victory != true && victorycharge <= 0 && gyro._x <= mxx) {
gyro.legs.play();
goright = true;
goleft = false;
gyro.arms.gotoAndStop('run');
gyro.body.gotoAndStop('run');
geng = 0;
gyro._x += motion;
gyro._xscale = 80;
}
if (Key.isDown(37) && genny <= 0 && pause != true && victory != true && victorycharge <= 0 && gyro._x >= mnx) {
gyro.legs.play();
goleft = true;
goright = false;
gyro.arms.gotoAndStop('run');
gyro.body.gotoAndStop('run');
geng = 0;
gyro._x -= motion;
gyro._xscale = -80;
}
if (Key.isDown(39) && genny <= 0 && pause != true && victory != true && victorycharge <= 0 && gyro._x > mxx) {
gyro.legs.play();
goright = true;
goleft = false;
geng = 0.5;
midground._x -= geng;
gyro.arms.gotoAndStop('run');
gyro.body.gotoAndStop('run');
bgb._x -= motion;
gyro._xscale = 80;
}
if (Key.isDown(37) && genny <= 0 && pause != true && victory != true && victorycharge <= 0 && gyro._x < mnx) {
gyro.legs.play();
goleft = true;
goright = false;
geng = 0.5;
midground._x += geng;
gyro.arms.gotoAndStop('run');
gyro.body.gotoAndStop('run');
bgb._x += motion;
gyro._xscale = -80;
}
if (!Key.isDown(37) && pause != true && victory != true && victorycharge <= 0 && goleft == true) {
gyro.legs.gotoAndPlay(1);
gyro.arms.gotoAndPlay(1);
gyro.body.gotoAndPlay(1);
goleft = false;
}
if (!Key.isDown(39) && pause != true && victory != true && victorycharge <= 0 && goright == true) {
gyro.legs.gotoAndPlay(1);
gyro.arms.gotoAndPlay(1);
gyro.body.gotoAndPlay(1);
goright = false;
}
if (pause != true && victory != true && victorycharge <= 0) {
sweet1._x = bgb._x - swex1;
sweet1._y = bgb._y - swey1;
swey1 += swejump1;
swejump1 -= 0.5;
swex1 += sweburst1 * (sweet1._xscale / 100);
sweet2._x = bgb._x - swex2;
sweet2._y = bgb._y - swey2;
swey2 += swejump2;
swejump2 -= 0.5;
swex2 += sweburst2 * (sweet2._xscale / 100);
sweet3._x = bgb._x - swex3;
sweet3._y = bgb._y - swey3;
swey3 += swejump3;
swejump3 -= 0.5;
swex3 += sweburst3 * (sweet3._xscale / 100);
sweet4._x = bgb._x - swex4;
sweet4._y = bgb._y - swey4;
swey4 += swejump4;
swejump4 -= 0.5;
swex4 += sweburst4 * (sweet4._xscale / 100);
sweet5._x = bgb._x - swex5;
sweet5._y = bgb._y - swey5;
swey5 += swejump5;
swejump5 -= 0.5;
swex5 += sweburst5 * (sweet5._xscale / 100);
sweet6._x = bgb._x - swex6;
sweet6._y = bgb._y - swey6;
swey6 += swejump6;
swejump6 -= 0.5;
swex6 += sweburst6 * (sweet6._xscale / 100);
sweburst1 *= 0.92;
sweburst2 *= 0.92;
sweburst3 *= 0.92;
sweburst4 *= 0.92;
sweburst5 *= 0.92;
sweburst6 *= 0.92;
}
if (sweater > 5 && sweater < 7) {
duplicateMovieClip(sweat, 'sweet1', 301);
swex1 = bgb._x - gyro._x;
swey1 = bgb._y - (gyro._y - Math.random() * 20);
sweburst1 = Math.random() * 4;
swejump1 = 3;
}
if (sweater > 15 && sweater < 17) {
duplicateMovieClip(sweat, 'sweet2', 302);
swex2 = bgb._x - gyro._x;
swey2 = bgb._y - (gyro._y - Math.random() * 20);
sweburst2 = Math.random() * 4;
swejump2 = 3;
sweet2._xscale = -100;
}
if (sweater > 25 && sweater < 27) {
duplicateMovieClip(sweat, 'sweet3', 303);
swex3 = bgb._x - gyro._x;
swey3 = bgb._y - (gyro._y - Math.random() * 20);
sweburst3 = Math.random() * 4;
swejump3 = 3;
}
if (sweater > 35 && sweater < 37) {
duplicateMovieClip(sweat, 'sweet4', 304);
swex4 = bgb._x - gyro._x;
swey4 = bgb._y - (gyro._y - Math.random() * 20);
sweburst4 = Math.random() * 4;
swejump4 = 3;
sweet4._xscale = -100;
}
if (sweater > 45 && sweater < 47) {
duplicateMovieClip(sweat, 'sweet5', 305);
swex5 = bgb._x - gyro._x;
swey5 = bgb._y - (gyro._y - Math.random() * 20);
sweburst5 = Math.random() * 4;
swejump5 = 3;
}
if (sweater > 55) {
duplicateMovieClip(sweat, 'sweet6', 306);
swex6 = bgb._x - gyro._x;
swey6 = bgb._y - (gyro._y - Math.random() * 20);
sweburst6 = Math.random() * 4;
swejump6 = 3;
sweet6._xscale = -100;
sweater = 0;
}
if (px >= difficulty) {
bomber = 0;
bombed = false;
px = 0;
}
if (bomb1.hitTest(bgb.hole) && pause != true && victory != true && victorycharge <= 0) {
score += 100;
nobomb += 1;
sound.play();
px += 1;
removeMovieClip(bomb1);
bombo += 1;
}
if (bomb2.hitTest(bgb.hole) && pause != true && victory != true && victorycharge <= 0) {
score += 100;
nobomb += 1;
sound.gotoAndPlay(2);
bombo += 1;
px += 1;
removeMovieClip(bomb2);
}
if (bomb3.hitTest(bgb.hole) && pause != true && victory != true && victorycharge <= 0) {
score += 100;
nobomb += 1;
sound.gotoAndPlay(2);
bombo += 1;
px += 1;
removeMovieClip(bomb3);
}
if (gyro.arms.hitTest(bomb1._x, bomb1._y + 20, true) && bjump1 < 0) {
bjump1 = 10;
gyro.arms.spring.gotoAndPlay(2);
}
if (gyro.arms.hitTest(bomb2._x, bomb2._y + 20, true) && bjump2 < 0) {
bjump2 = 12;
gyro.arms.spring.gotoAndPlay(2);
}
if (gyro.arms.hitTest(bomb3._x, bomb3._y + 20, true) && bjump3 < 0) {
bjump3 = 14;
gyro.arms.spring.gotoAndPlay(2);
}
if (pause != true && victory != true && victorycharge <= 0 && bombed != true && miss <= 2) {
bomber += 1;
}
if (pause != true && victory != true && victorycharge <= 0) {
bxx1 -= blaunch1;
bjump1 -= 0.2;
bxy1 += bjump1;
bomb1._rotation += 3;
bxx2 -= blaunch2;
bjump2 -= 0.25;
bxy2 += bjump2;
bomb2._rotation -= 4;
bxx3 -= blaunch3;
bjump3 -= 0.29;
bxy3 += bjump3;
bomb3._rotation -= 4;
}
if (bomber > 200 && bombed != true && miss <= 2 && difficulty <= 1) {
duplicateMovieClip(bomb, 'bomb1', 201);
bxx1 = bgb._x - (enemy._x + 40);
bxy1 = bgb._y - (enemy._y + 40);
bjump1 = 7 + Math.random() * 6;
blaunch1 = 3 + Math.random() * 2;
enemy.badger.gotoAndPlay('throw');
bomber = 0;
bombed = true;
}
if (bomber > 200 && bomber < 202 && bombed != true && miss <= 2 && difficulty == 2) {
duplicateMovieClip(bomb, 'bomb1', 201);
bxx1 = bgb._x - (enemy._x + 40);
bxy1 = bgb._y - (enemy._y + 40);
bjump1 = 7 + Math.random() * 4;
enemy.badger.gotoAndPlay('throw');
blaunch1 = 3 + Math.random() * 2;
}
if (bomber > 224 && bombed != true && miss <= 2 && difficulty == 2) {
duplicateMovieClip(bomb, 'bomb2', 202);
bxx2 = bgb._x - (enemy._x + 40);
bxy2 = bgb._y - (enemy._y + 40);
bjump2 = 10 + Math.random() * 4;
blaunch2 = blaunch1;
enemy.badger.gotoAndPlay('throw');
bomber = 0;
bombed = true;
}
if (bjump2 < -6) {
bjump2 = -6;
}
if (bjump3 < -7) {
bjump3 = -7;
}
if (bjump1 < -7) {
bjump1 = -7;
}
if (bomber > 200 && bomber < 202 && bombed != true && miss <= 2 && difficulty >= 3) {
duplicateMovieClip(bomb, 'bomb1', 201);
bxx1 = bgb._x - (enemy._x + 40);
bxy1 = bgb._y - (enemy._y + 40);
bjump1 = 6 + Math.random() * 4;
blaunch1 = 3 + Math.random() * 2;
enemy.badger.gotoAndPlay('throw');
}
if (bomber > 214 && bomber < 216 && bombed != true && miss <= 2 && difficulty >= 3) {
duplicateMovieClip(bomb, 'bomb2', 202);
bxx2 = bgb._x - (enemy._x + 40);
bxy2 = bgb._y - (enemy._y + 40);
bjump2 = 11 + Math.random() * 4;
blaunch2 = blaunch1;
}
if (bomber > 224 && bombed != true && miss <= 2 && difficulty >= 3) {
duplicateMovieClip(bomb, 'bomb3', 203);
bxx3 = bgb._x - (enemy._x + 40);
bxy3 = bgb._y - (enemy._y + 40);
bjump3 = 15 + Math.random() * 4;
blaunch3 = blaunch1;
enemy.badger.gotoAndPlay('throw');
bomber = 0;
bombed = true;
}
if (bomb2._y < 30 && victory != true) {
bombmark2._visible = true;
bombmark2._x = bomb2._x;
}
if (bomb2._y > 30 && victory != true) {
bombmark2._visible = false;
}
if (bomb3._y < 30 && victory != true) {
bombmark3._visible = true;
bombmark3._x = bomb3._x;
}
if (bomb3._y > 30 && victory != true) {
bombmark3._visible = false;
}
if (bomb1._y < 30 && victory != true) {
bombmark1._visible = true;
bombmark1._x = bomb1._x;
}
if (bomb1._y > 30 && victory != true) {
bombmark1._visible = false;
}
if (score == 300 && difficulty <= 1) {
genny = 150;
px = 2;
sound.gotoAndStop(1);
difficulty = 2;
score += 1000;
}
if (score == 2000 && difficulty == 2) {
genny = 150;
px = 3;
sound.gotoAndStop(1);
difficulty = 3;
score += 1000;
}
if (genny > 0) {
gyro._xscale = 80;
gyro.legs.gotoAndStop(1);
genny -= 1;
}
if (genny > 75 && enemy._x < 50) {
enemy.badger.gotoAndStop('grrr');
bgb._x += zenenemy / 11;
gyro._x += zenenemy / 11;
}
if (genny < 55 && genny > 53) {
gyro.body.head.gotoAndPlay('scream');
}
if (genny < 75 && genny > 0 && gyro._x > 300) {
bgb._x -= zengyro / 11;
gyro._x -= zengyro / 11;
}
if (bgb.core.hitTest(bomb1._x, bomb1._y, true)) {
duplicateMovieClip(expload, 'explosion', 2000);
expx = bgb._x - bomb1._x;
expy = bgb._y - bomb1._y;
sound.gotoAndPlay('expload');
removeMovieClip(bomb1);
px += 1;
miss += 1;
}
if (bgb.core.hitTest(bomb2._x, bomb2._y, true)) {
duplicateMovieClip(expload, 'explosion', 2000);
expx = bgb._x - bomb2._x;
expy = bgb._y - bomb2._y;
sound.gotoAndPlay('expload');
removeMovieClip(bomb2);
px += 1;
miss += 1;
}
if (bgb.core.hitTest(bomb3._x, bomb3._y, true)) {
duplicateMovieClip(expload, 'explosion', 2000);
expx = bgb._x - bomb3._x;
expy = bgb._y - bomb3._y;
sound.gotoAndPlay('expload');
removeMovieClip(bomb3);
px += 1;
miss += 1;
}
if (cohert == true && !Key.isDown(67)) {
cohert = false;
}
if (Key.isDown(67) && cohert != true && pause != true && victory != true && victorycharge <= 0 && genny <= 0) {
pause = true;
cohert = true;
gyro.stop();
}
if (Key.isDown(67) && cohert != true && pause == true && genny <= 0) {
pause = false;
cohert = true;
}
if (pause == true && miss < 3 && genny <= 0 && boomper > 300 && victorycharge <= 0) {
gyro.stop();
pausemen._visible = true;
gyro.goop.gotoAndPlay(1);
}
if (pause != true && victory != true && victorycharge <= 0) {
pausemen._visible = false;
}
if (miss >= 3 && zoko != true) {
tran.play();
sound.gotoAndPlay('fail');
zoko = true;
}
if (score >= 5000 && victory != true) {
victorycharge = 500;
victory = true;
}
if (victorycharge > 400 && victorycharge <= 500 && enemy._x < 50) {
bgb._x += zenenemy / 9;
gyro._x += zenenemy / 9;
}
if (victorycharge < 480 && victorycharge > 400) {
removeMovieClip(pausemen);
enemy.play();
}
if (victorycharge > 0 && victorycharge <= 400 && gyro._x > 300) {
bgb._x -= zengyro / 18;
gyro._x -= zengyro / 18;
}
if (victorycharge > 370 && victorycharge < 380) {
gyro.play();
}
if (victorycharge > 0) {
bomb1._visible = false;
bomb2._visible = false;
bomb3._visible = false;
pause = true;
bombmark1._visible = false;
bombmark2._visible = false;
bombmark3._visible = false;
}
bomb1._x = bgb._x - bxx1;
bomb1._y = bgb._y - bxy1;
bomb2._x = bgb._x - bxx2;
bomb2._y = bgb._y - bxy2;
bomb3._x = bgb._x - bxx3;
bomb3._y = bgb._y - bxy3;
explosion._x = bgb._x - expx;
explosion._y = bgb._y - expy;
victorycharge -= 1;
zenenemy = 250 - enemy._x;
zengyro = gyro._x - 250;
wall._x = bgb._x - wxx;
wall._y = bgb._y - wxy;
gauge.misses.gotoAndStop(miss + 1);
boomper += 1;
sweater += 1;
enemy._x = bgb._x - enx;
enemy._y = bgb._y - enxy;
starttimer += 1;
gauge.boc._visible = false;
gauge.puzzle._visible = false;
gauge.gyroletters._visible = false;
gauge.score = score;
gauge.lives = lives;
gauge.cash = cash;
};
}
movieClip 1323 {
}
movieClip 1327 {
}
movieClip 1329 {
}
movieClip 1331 {
}
movieClip 1333 {
}
movieClip 1335 {
}
movieClip 1339 {
}
movieClip 1343 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1348 {
frame 1 {
stop();
}
frame 89 {
_root._y = 2;
_root._x = -2;
}
frame 90 {
_root._y = 0;
_root._x = 0;
}
frame 91 {
_root._y = -2;
_root._x = 2;
}
frame 92 {
_root._y = 0;
_root._x = 0;
}
frame 93 {
_root._y = 1;
_root._x = -1;
}
frame 94 {
_root._y = 0;
_root._x = 0;
}
frame 95 {
_root._y = -1;
_root._x = 1;
}
frame 96 {
_root._y = 0;
_root._x = 0;
}
frame 145 {
gotoAndStop(1);
}
frame 161 {
gotoAndStop(1);
}
frame 172 {
gotoAndStop(1);
}
frame 176 {
stopAllSounds();
}
frame 210 {
gotoAndStop(1);
}
}
movieClip 1350 {
}
movieClip 1351 {
}
movieClip 1354 {
}
movieClip 1356 {
}
movieClip 1358 {
}
movieClip 1359 {
}
movieClip 1360 {
frame 1 {
stop();
}
frame 26 {
gotoAndPlay(3);
}
}
movieClip 1362 {
}
movieClip 1366 {
}
movieClip 1368 {
}
movieClip 1370 {
}
movieClip 1371 {
frame 70 {
gotoAndPlay(1);
}
}
movieClip 1372 {
frame 38 {
gotoAndPlay(1);
}
}
movieClip 1375 {
}
movieClip 1376 {
frame 38 {
gotoAndPlay(1);
}
}
movieClip 1377 {
frame 1 {
stop();
}
frame 2 {
stopAllSounds();
}
frame 3 {
stopAllSounds();
}
frame 3 {
stopAllSounds();
}
frame 4 {
stopAllSounds();
}
frame 5 {
stopAllSounds();
}
frame 6 {
stopAllSounds();
}
frame 7 {
stopAllSounds();
}
frame 8 {
stopAllSounds();
}
frame 9 {
stopAllSounds();
}
frame 10 {
stopAllSounds();
}
frame 11 {
stopAllSounds();
}
frame 12 {
stopAllSounds();
}
frame 13 {
stopAllSounds();
}
frame 14 {
stopAllSounds();
}
frame 15 {
stopAllSounds();
}
frame 16 {
stopAllSounds();
}
frame 17 {
stopAllSounds();
}
frame 18 {
stopAllSounds();
}
frame 19 {
stopAllSounds();
}
frame 20 {
stopAllSounds();
}
frame 21 {
stopAllSounds();
}
frame 22 {
stopAllSounds();
}
frame 23 {
stopAllSounds();
}
frame 24 {
stopAllSounds();
}
frame 25 {
stopAllSounds();
}
frame 26 {
stopAllSounds();
}
frame 27 {
stopAllSounds();
}
frame 28 {
stopAllSounds();
}
frame 28 {
stopAllSounds();
}
frame 375 {
_root.tran.play();
}
}
movieClip 1379 {
}
movieClip 1380 {
frame 31 {
stop();
}
}
movieClip 1383 {
}
movieClip 1384 {
}
movieClip 1385 {
}
movieClip 1390 {
}
movieClip 1433 {
frame 75 {
stop();
}
}
movieClip 1435 {
}
movieClip 1437 {
}
movieClip 1439 {
}
movieClip 1441 {
}
movieClip 1443 {
}
movieClip 1446 {
}
movieClip 1448 {
}
movieClip 1449 {
}
movieClip 1458 {
}
movieClip 1460 {
}
movieClip 1464 {
}
movieClip 1465 {
}
movieClip 1466 {
frame 1 {
stop();
}
frame 15 {
gotoAndStop(1);
}
frame 16 {
play();
}
}
movieClip 1490 {
frame 1 {
stop();
}
frame 15 {
_root._y = 2;
_root._x = -2;
}
frame 16 {
_root._y = 0;
_root._x = 0;
}
frame 17 {
_root._y = -2;
_root._x = 2;
}
frame 18 {
_root._y = 0;
_root._x = 0;
}
frame 19 {
_root._y = 1;
_root._x = -1;
}
frame 20 {
_root._y = 0;
_root._x = 0;
}
frame 21 {
_root._y = -1;
_root._x = 1;
}
frame 22 {
_root._y = 0;
_root._x = 0;
}
frame 27 {
_root._y = 2;
_root._x = -2;
}
frame 28 {
_root._y = 0;
_root._x = 0;
}
frame 29 {
_root._y = -2;
_root._x = 2;
}
frame 30 {
_root._y = 0;
_root._x = 0;
}
frame 31 {
_root._y = 1;
_root._x = -1;
}
frame 32 {
_root._y = 0;
_root._x = 0;
}
frame 33 {
_root._y = -1;
_root._x = 1;
}
frame 34 {
_root._y = 0;
_root._x = 0;
}
frame 41 {
_root._y = 2;
_root._x = -2;
}
frame 42 {
_root._y = 0;
_root._x = 0;
}
frame 43 {
_root._y = -2;
_root._x = 2;
}
frame 44 {
_root._y = 0;
_root._x = 0;
}
frame 45 {
_root._y = 1;
_root._x = -1;
}
frame 46 {
_root._y = 0;
_root._x = 0;
}
frame 47 {
_root._y = -1;
_root._x = 1;
}
frame 48 {
_root._y = 0;
_root._x = 0;
}
frame 52 {
_root.bgb.gotoAndStop(2);
}
frame 58 {
_root._y = 2;
_root._x = -2;
}
frame 59 {
_root._y = 0;
_root._x = 0;
}
frame 60 {
_root._y = -2;
_root._x = 2;
}
frame 61 {
_root._y = 0;
_root._x = 0;
}
frame 62 {
_root._y = 1;
_root._x = -1;
}
frame 63 {
_root._y = 0;
_root._x = 0;
}
frame 64 {
_root._y = -1;
_root._x = 1;
}
frame 65 {
_root._y = 0;
_root._x = 0;
}
frame 86 {
stop();
}
frame 90 {
gotoAndPlay(85);
}
frame 91 {
gotoAndPlay(85);
}
frame 92 {
gotoAndPlay(85);
}
frame 93 {
gotoAndPlay(85);
}
}
movieClip 1492 {
}
movieClip 1493 {
}
movieClip 1495 {
}
movieClip 1497 {
}
movieClip 1499 {
}
movieClip 1500 {
frame 200 {
stop();
}
}
movieClip 1511 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 1515 {
frame 1 {
stop();
}
}
frame 25 {
for (i in _root) {
_root[i].swapDepths(10102);
removeMovieClip(_root[i]);
}
delete eval(onEnterFrame());
}
frame 26 {
if (_root.score < 1000) {
_root.bonuslives = 0;
}
if (_root.score >= 1000 && _root.score <= 1500) {
_root.bonuslives = 1;
}
if (_root.score >= 1500 && _root.score <= 2500) {
_root.bonuslives = 2;
}
if (_root.score >= 2500 && _root.score <= 3500) {
_root.bonuslives = 3;
}
if (_root.score >= 3500 && _root.score <= 5000) {
_root.bonuslives = 4;
}
if (_root.score >= 5000) {
_root.bonuslives = 5;
}
}
frame 26 {
delete eval(onEnterFrame());
}
frame 27 {
stop();
}
frame 27 {
_quality = 'High';
miss = 0;
}
frame 27 {
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.data.goals1 = _root.goals1;
savefile.data.goals2 = _root.goals2;
savefile.data.goals3 = _root.goals3;
savefile.data.goals4 = _root.goals4;
savefile.data.achieva1 = _root.achieva1;
savefile.data.achieva2 = _root.achieva2;
savefile.data.achieva3 = _root.achieva3;
savefile.data.achieva4 = _root.achieva4;
savefile.data.achieva5 = _root.achieva5;
savefile.data.achieva6 = _root.achieva6;
savefile.data.achievb1 = _root.achievb1;
savefile.data.achievb2 = _root.achievb2;
savefile.data.achievb3 = _root.achievb3;
savefile.data.achievb4 = _root.achievb4;
savefile.data.achievb5 = _root.achievb5;
savefile.data.achievb6 = _root.achievb6;
savefile.data.achievc1 = _root.achievc1;
savefile.data.achievc2 = _root.achievc2;
savefile.data.achievc3 = _root.achievc3;
savefile.data.achievc4 = _root.achievc4;
savefile.data.achievc5 = _root.achievc5;
savefile.data.achievc6 = _root.achievc6;
savefile.flush();
}
movieClip 1519 {
}
movieClip 1520 {
}
movieClip 1521 {
frame 1 {
stop();
}
frame 224 {
gotoAndPlay(176);
}
frame 225 {
gotoAndPlay(176);
}
frame 226 {
gotoAndPlay(176);
}
frame 227 {
gotoAndPlay(176);
}
frame 228 {
gotoAndPlay(176);
}
}
instance of movieClip 1521 {
onClipEvent (enterFrame) {
if (_root.goala6 == true) {
this.play();
}
}
}
instance buo of movieClip 434 {
onClipEvent (load) {
ava = 0;
_visible = false;
bonus = false;
_root.lives += _root.bonuslives;
}
onClipEvent (enterFrame) {
if (_root.score < 1000) {
_root.bonuslives = 0;
}
if (_root.score >= 1000 && _root.score <= 1500) {
_root.bonuslives = 1;
}
if (_root.score >= 1500 && _root.score <= 2500) {
_root.bonuslives = 2;
}
if (_root.score >= 2500 && _root.score <= 3500) {
_root.bonuslives = 3;
}
if (_root.score >= 3500 && _root.score <= 5000) {
_root.bonuslives = 4;
}
if (_root.score >= 5000) {
_root.bonuslives = 5;
}
if (ava > 300 && visible != true) {
_visible = true;
}
if (Key.isDown(32)) {
_root.tran.play();
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.goals1 = _root.goals1;
savefile.data.goals2 = _root.goals2;
savefile.data.goals3 = _root.goals3;
savefile.data.goals4 = _root.goals4;
savefile.data.achieva1 = _root.achieva1;
savefile.data.achieva2 = _root.achieva2;
savefile.data.achieva3 = _root.achieva3;
savefile.data.achieva4 = _root.achieva4;
savefile.data.achieva5 = _root.achieva5;
savefile.data.achieva6 = _root.achieva6;
savefile.data.achievb1 = _root.achievb1;
savefile.data.achievb2 = _root.achievb2;
savefile.data.achievb3 = _root.achievb3;
savefile.data.achievb4 = _root.achievb4;
savefile.data.achievb5 = _root.achievb5;
savefile.data.achievb6 = _root.achievb6;
savefile.data.achievc1 = _root.achievc1;
savefile.data.achievc2 = _root.achievc2;
savefile.data.achievc3 = _root.achievc3;
savefile.data.achievc4 = _root.achievc4;
savefile.data.achievc5 = _root.achievc5;
savefile.data.achievc6 = _root.achievc6;
savefile.flush();
}
ava += 1;
sc1 = Math.round((_root.gyroletterx / 4) * 30);
sc2 = Math.round((_root.bcash / 20) * 20);
sc3 = Math.round((_root.puzzles / 5) * 50);
_root.percent1 = sc1 + sc2 + sc3;
}
}
frame 29 {
stopAllSounds();
play();
}
frame 31 {
_quality = 'High';
}
frame 31 {
if (world == undefined) {
world = 1;
}
if (percent1 == undefined) {
percent1 = 0;
}
if (percent3 == undefined) {
percent3 = 0;
}
if (percent2 == undefined) {
percent2 = 0;
}
if (percent4 == undefined) {
percent4 = 0;
}
if (percent5 == undefined) {
percent5 = 0;
}
if (puzzleco1 == undefined) {
puzzleco1 = 0;
}
if (puzzleco2 == undefined) {
puzzleco2 = 0;
}
if (puzzleco3 == undefined) {
puzzleco3 = 0;
}
if (puzzleco4 == undefined) {
puzzleco4 = 0;
}
if (puzzleco5 == undefined) {
puzzleco5 = 0;
}
if (blueco1 == undefined) {
blueco1 = 0;
}
if (blueco2 == undefined) {
blueco2 = 0;
}
if (blueco3 == undefined) {
blueco3 = 0;
}
if (blueco4 == undefined) {
blueco4 = 0;
}
if (blueco5 == undefined) {
blueco5 = 0;
}
}
frame 31 {
stop();
pause = false;
}
frame 31 {
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.data.goals1 = _root.goals1;
savefile.data.goals2 = _root.goals2;
savefile.data.goals3 = _root.goals3;
savefile.data.goals4 = _root.goals4;
savefile.data.achieva1 = _root.achieva1;
savefile.data.achieva2 = _root.achieva2;
savefile.data.achieva3 = _root.achieva3;
savefile.data.achieva4 = _root.achieva4;
savefile.data.achieva5 = _root.achieva5;
savefile.data.achieva6 = _root.achieva6;
savefile.data.achievb1 = _root.achievb1;
savefile.data.achievb2 = _root.achievb2;
savefile.data.achievb3 = _root.achievb3;
savefile.data.achievb4 = _root.achievb4;
savefile.data.achievb5 = _root.achievb5;
savefile.data.achievb6 = _root.achievb6;
savefile.data.achievc1 = _root.achievc1;
savefile.data.achievc2 = _root.achievc2;
savefile.data.achievc3 = _root.achievc3;
savefile.data.achievc4 = _root.achievc4;
savefile.data.achievc5 = _root.achievc5;
savefile.data.achievc6 = _root.achievc6;
savefile.flush();
}
// unknown tag 88 length 66
movieClip 1535 {
}
movieClip 1536 {
}
movieClip 1542 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
instance planetx2 of movieClip 1542 {
onClipEvent (enterFrame) {
if (_root.gyronumber <= 4) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
movieClip 1545 {
}
movieClip 1547 {
}
movieClip 1556 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1565 {
}
movieClip 1566 {
}
movieClip 1575 {
}
movieClip 1581 {
}
movieClip 1584 {
}
movieClip 1600 {
}
movieClip 1601 {
}
movieClip 1602 {
frame 1 {
stop();
}
}
movieClip 1604 {
}
movieClip 1605 {
}
movieClip 1606 {
}
movieClip 1607 {
}
movieClip 1620 {
frame 1 {
stop();
}
instance of movieClip 1556 {
onClipEvent (enterFrame) {
if (_root.goala1 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 1556 {
onClipEvent (enterFrame) {
if (_root.goala2 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 1556 {
onClipEvent (enterFrame) {
if (_root.goala3 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 1556 {
onClipEvent (enterFrame) {
if (_root.goala5 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 1556 {
onClipEvent (enterFrame) {
if (_root.goala4 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
frame 2 {
stop();
}
instance of movieClip 1556 {
onClipEvent (enterFrame) {
if (_root.goalb2 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 1556 {
onClipEvent (enterFrame) {
if (_root.goalb3 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 1556 {
onClipEvent (enterFrame) {
if (_root.goalb5 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 1556 {
onClipEvent (enterFrame) {
if (_root.goalb4 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 1556 {
onClipEvent (enterFrame) {
if (_root.goalb1 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
frame 3 {
stop();
}
instance of movieClip 1556 {
onClipEvent (enterFrame) {
if (_root.goalc1 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
frame 4 {
stop();
}
instance of movieClip 1556 {
onClipEvent (enterFrame) {
if (_root.goald1 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
frame 5 {
stop();
}
instance of movieClip 1556 {
onClipEvent (enterFrame) {
if (_root.goale6 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 1556 {
onClipEvent (enterFrame) {
if (_root.goalb2 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 1556 {
onClipEvent (enterFrame) {
if (_root.goale3 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 1556 {
onClipEvent (enterFrame) {
if (_root.goale5 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 1556 {
onClipEvent (enterFrame) {
if (_root.goale4 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 1556 {
onClipEvent (enterFrame) {
if (_root.goale1 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
frame 6 {
stop();
}
}
instance levelsxx of movieClip 1620 {
onClipEvent (load) {
zenp1 = 400 - _root.planetx1._x;
zenp2 = 400 - _root.planetx2._x;
zenp3 = 400 - _root.planetx3._x;
zenp4 = 400 - _root.planetx4._x;
zenp5 = 400 - _root.planetx5._x;
ven = _root.world - 1;
vok = _root.planetx5._x;
jo = _root.planetx6._x;
fok = 5;
_root.percent0 = 35;
if (_root.percent1 == undefined) {
percent1 = 0;
}
if (_root.percent2 == undefined) {
percent2 = 0;
}
if (_root.percent3 == undefined) {
percent3 = 0;
}
if (_root.percent4 == undefined) {
percent4 = 0;
}
if (_root.percent5 == undefined) {
percent5 = 0;
}
if (_root.goals1 == undefined) {
goals1 = 0;
}
if (_root.goals2 == undefined) {
goals2 = 0;
}
if (_root.goals3 == undefined) {
goals3 = 0;
}
if (_root.goals4 == undefined) {
goals4 = 0;
}
}
onClipEvent (enterFrame) {
if (_root.world <= 1 && _root.planetx1._x > 395 || _root.world <= 1 && _root.planetx1._x < 390) {
_root.planetx1._x += zenp1 / 20;
_root.planetx2._x += zenp1 / 20;
_root.planetx3._x += zenp1 / 20;
_root.planetx4._x += zenp1 / 20;
_root.planetx5._x += zenp1 / 20;
}
if (_root.world == 2 && _root.planetx2._x > 395 || _root.world == 2 && _root.planetx2._x < 390) {
_root.planetx1._x += zenp2 / 20;
_root.planetx2._x += zenp2 / 20;
_root.planetx3._x += zenp2 / 20;
_root.planetx4._x += zenp2 / 20;
_root.planetx5._x += zenp2 / 20;
}
if (_root.world == 3 && _root.planetx3._x > 395 || _root.world == 3 && _root.planetx3._x < 390) {
_root.planetx1._x += zenp3 / 20;
_root.planetx2._x += zenp3 / 20;
_root.planetx3._x += zenp3 / 20;
_root.planetx4._x += zenp3 / 20;
_root.planetx5._x += zenp3 / 20;
}
if (_root.world == 4 && _root.planetx4._x > 395 || _root.world == 4 && _root.planetx4._x < 390) {
_root.planetx1._x += zenp4 / 20;
_root.planetx2._x += zenp4 / 20;
_root.planetx3._x += zenp4 / 20;
_root.planetx4._x += zenp4 / 20;
_root.planetx5._x += zenp4 / 20;
}
if (_root.world >= 5 && _root.planetx5._x > 395 || _root.world >= 5 && _root.planetx5._x < 390) {
_root.planetx1._x += zenp5 / 20;
_root.planetx2._x += zenp5 / 20;
_root.planetx3._x += zenp5 / 20;
_root.planetx4._x += zenp5 / 20;
_root.planetx5._x += zenp5 / 20;
}
if (_root.world <= 0) {
_root.world = 3;
}
if (_root.world >= 3) {
_root.world = 1;
}
if (_root.goala1 == true) {
_root.brucea1 = 1;
}
if (_root.goala2 == true) {
_root.brucea2 = 1;
}
if (_root.goala3 == true) {
_root.brucea3 = 1;
}
if (_root.goala4 == true) {
_root.brucea4 = 1;
}
if (_root.goala5 == true) {
_root.brucea5 = 1;
}
if (_root.goalb1 == true) {
_root.bruceb1 = 1;
}
if (_root.goalb2 == true) {
_root.bruceb2 = 1;
}
if (_root.goalb3 == true) {
_root.bruceb3 = 1;
}
if (_root.goalb4 == true) {
_root.bruceb4 = 1;
}
if (_root.goalb5 == true) {
_root.bruceb5 = 1;
}
if (_root.goala1 != true) {
_root.brucea1 = 0;
}
if (_root.goala2 != true) {
_root.brucea2 = 0;
}
if (_root.goala3 != true) {
_root.brucea3 = 0;
}
if (_root.goala4 != true) {
_root.brucea4 = 0;
}
if (_root.goala5 != true) {
_root.brucea5 = 0;
}
if (_root.goalb1 != true) {
_root.bruceb1 = 0;
}
if (_root.goalb2 != true) {
_root.bruceb2 = 0;
}
if (_root.goalb3 != true) {
_root.bruceb3 = 0;
}
if (_root.goalb4 != true) {
_root.bruceb4 = 0;
}
if (_root.goalb5 != true) {
_root.bruceb5 = 0;
}
if (_root.goalc1 != true) {
_root.brucec1 = 0;
}
if (_root.goalc1 != true) {
_root.brucec1 = 0;
}
if (_root.planetx1._x < jo) {
_root.planetx1._x = vok;
}
if (_root.planetx2._x < jo) {
_root.planetx2._x = vok;
}
if (_root.planetx3._x < jo) {
_root.planetx3._x = vok;
}
if (_root.planetx4._x < jo) {
_root.planetx4._x = vok;
}
if (_root.planetx5._x < jo) {
_root.planetx5._x = vok;
}
if (Key.isDown(39) && poke != true) {
_root.world += 1;
_root.sound.play();
poke = true;
}
if (Key.isDown(37) && poke != true) {
_root.world -= 1;
_root.sound.play();
poke = true;
}
if (!Key.isDown(39) && !Key.isDown(37)) {
poke = false;
}
if (_root.goals1 == undefined) {
goals1 = 0;
}
if (_root.goals2 == undefined) {
goals2 = 0;
}
if (_root.goals3 == undefined) {
goals3 = 0;
}
if (_root.goals4 == undefined) {
goals4 = 0;
}
if (_root.goala1 == true) {
cola1 = 6.666666666666667;
}
if (_root.goala1 != true) {
cola1 = 0;
}
if (_root.goalb1 == true) {
colb1 = 6.666666666666667;
}
if (_root.goalb1 != true) {
colb1 = 0;
}
if (_root.goalc1 == true) {
colc1 = 6.666666666666667;
}
if (_root.goalc1 != true) {
colc1 = 0;
}
if (_root.goala2 == true) {
cola2 = 6.666666666666667;
}
if (_root.goala2 != true) {
cola2 = 0;
}
if (_root.goalb2 == true) {
colb2 = 6.666666666666667;
}
if (_root.goalb2 != true) {
colb2 = 0;
}
if (_root.goalc2 == true) {
colc2 = 6.666666666666667;
}
if (_root.goalc2 != true) {
colc2 = 0;
}
if (_root.goala3 == true) {
cola3 = 6.666666666666667;
}
if (_root.goala3 != true) {
cola3 = 0;
}
if (_root.goalb3 == true) {
colb3 = 6.666666666666667;
}
if (_root.goalb3 != true) {
colb3 = 0;
}
if (_root.goalc3 == true) {
colc3 = 6.666666666666667;
}
if (_root.goalc3 != true) {
colc3 = 0;
}
if (Key.isDown(32) && _root.gyronumber >= _root['quota' + ven2]) {
_root.tran.play();
}
if (Key.isDown(32) && _root.gyronumber >= _root['quota' + ven2]) {
_root.soundff.gotoAndPlay('reject');
}
if (_root.gyronumber >= _root['quota' + ven2] || _root.world <= 1) {
this.gotoAndStop(_root.world);
}
if (_root.gyronumber < _root['quota' + ven2] && _root.world > 1) {
this.gotoAndStop(6);
}
this.hgoals = _root['goals' + _root.world];
this.percentilex2 = _root['percentx' + _root.world];
this.percentilex = _root['percent' + _root.world];
this.bluecountx = _root['blueco' + _root.world];
this.puzzlecountx = _root['puzzleco' + _root.world];
_root.percentx1 = Math.round(_root.percent1 / 2 + _root.goals1 * 6 + volco1);
volco1 = cola1 + cola2 + cola3;
_root.percentx2 = Math.round(_root.percent2 / 2 + _root.goals2 * 6 + volco2);
volco2 = colb1 + colb2 + colb3;
_root.percentx3 = Math.round(_root.percent3 / 2 + _root.goals3 * 6 + volco3);
volco3 = colc1 + colc2 + colc3;
_root.percentx4 = Math.round(_root.percent4 / 2 + _root.goals4 * 6 + volco4);
volco4 = cold1 + cold2 + cold3;
zenp1 = 400 - _root.planetx1._x;
zenp2 = 400 - _root.planetx2._x;
zenp3 = 400 - _root.planetx3._x;
zenp4 = 400 - _root.planetx4._x;
zenp5 = 400 - _root.planetx5._x;
_quality = 'High';
this.cuo = _root.gyronumber;
_root.gyronumber = _root.brucea1 + _root.brucea2 + _root.brucea3 + _root.brucea4 + _root.brucea5 + _root.bruceb1 + _root.bruceb2 + _root.bruceb3 + _root.bruceb4 + _root.bruceb5 + _root.brucec1;
ven = _root.world - 1;
ven2 = _root.world;
_root.quota2 = 5;
_root.quota3 = 8;
}
}
movieClip 1622 {
frame 1 {
stop();
}
frame 5 {
gotoAndStop(1);
}
}
movieClip 1627 {
}
frame 32 {
stopAllSounds();
}
frame 32 {
stop();
}
movieClip 1628 {
frame 39 {
if (_root.world <= 1) {
_root.gotoAndPlay('world1');
}
if (_root.world == 2 && _root.percent1 > 0) {
_root.gotoAndPlay('world2');
}
}
frame 40 {
if (_root.world <= 1) {
_root.gotoAndPlay('world1');
}
if (_root.world == 2 && _root.percent1 > 0) {
_root.gotoAndPlay('world2');
}
}
frame 41 {
if (_root.world <= 1) {
_root.gotoAndPlay('world1');
}
if (_root.world == 2 && _root.percent1 > 0) {
_root.gotoAndPlay('world2');
}
}
}
frame 33 {
for (i in _root) {
_root[i].swapDepths(10102);
removeMovieClip(_root[i]);
}
delete eval(onEnterFrame());
play();
}
instance of movieClip 414 {
onClipEvent (enterFrame) {
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.lives == undefined) {
_root.lives = 9;
} else {
_root.lives = savefile.data.lives;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.worlds == undefined) {
_root.worlds = 1;
} else {
_root.worlds = savefile.data.worlds;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goala1 == undefined) {
_root.goala1 = 0;
} else {
_root.goala1 = savefile.data.goala1;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goala2 == undefined) {
_root.goala2 = 0;
} else {
_root.goala2 = savefile.data.goala2;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goala3 == undefined) {
_root.goala3 = 0;
} else {
_root.goala3 = savefile.data.goala3;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goala4 == undefined) {
_root.goala4 = 0;
} else {
_root.goala4 = savefile.data.goala4;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goala5 == undefined) {
_root.goala5 = 0;
} else {
_root.goala5 = savefile.data.goala5;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goala6 == undefined) {
_root.goala6 = 0;
} else {
_root.goala6 = savefile.data.goala6;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goalb1 == undefined) {
_root.goalb1 = 0;
} else {
_root.goalb1 = savefile.data.goalb1;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goalb2 == undefined) {
_root.goalb2 = 0;
} else {
_root.goalb2 = savefile.data.goalb2;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goalb3 == undefined) {
_root.goalb3 = 0;
} else {
_root.goalb3 = savefile.data.goalb3;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goalb4 == undefined) {
_root.goalb4 = 0;
} else {
_root.goalb4 = savefile.data.goalb4;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goalb5 == undefined) {
_root.goalb5 = 0;
} else {
_root.goalb5 = savefile.data.goalb5;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goalb6 == undefined) {
_root.goalb6 = 0;
} else {
_root.goalb6 = savefile.data.goalb6;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goalc1 == undefined) {
_root.goalc1 = 0;
} else {
_root.goalc1 = savefile.data.goalc1;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goalc2 == undefined) {
_root.goalc2 = 0;
} else {
_root.goalc2 = savefile.data.goalc2;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goalc3 == undefined) {
_root.goalc3 = 0;
} else {
_root.goalc3 = savefile.data.goalc3;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goalc4 == undefined) {
_root.goalc4 = 0;
} else {
_root.goalc4 = savefile.data.goalc4;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goalc5 == undefined) {
_root.goalc5 = 0;
} else {
_root.goalc5 = savefile.data.goalc5;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goalc6 == undefined) {
_root.goalc6 = 0;
} else {
_root.goalc6 = savefile.data.goalc6;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goald1 == undefined) {
_root.goald1 = 0;
} else {
_root.goald1 = savefile.data.goald1;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goald2 == undefined) {
_root.goald2 = 0;
} else {
_root.goald2 = savefile.data.goald2;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goald3 == undefined) {
_root.goald3 = 0;
} else {
_root.goald3 = savefile.data.goald3;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goald4 == undefined) {
_root.goald4 = 0;
} else {
_root.goald4 = savefile.data.goald4;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goald5 == undefined) {
_root.goald5 = 0;
} else {
_root.goald5 = savefile.data.goald5;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goald6 == undefined) {
_root.goald6 = 0;
} else {
_root.goald6 = savefile.data.goald6;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goale1 == undefined) {
_root.goale1 = 0;
} else {
_root.goale1 = savefile.data.goale1;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goale2 == undefined) {
_root.goale2 = 0;
} else {
_root.goale2 = savefile.data.goale2;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goale3 == undefined) {
_root.goale3 = 0;
} else {
_root.goale3 = savefile.data.goale3;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goale4 == undefined) {
_root.goale4 = 0;
} else {
_root.goale4 = savefile.data.goale4;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goale5 == undefined) {
_root.goale5 = 0;
} else {
_root.goale5 = savefile.data.goale5;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.goale6 == undefined) {
_root.goale6 = 0;
} else {
_root.goale6 = savefile.data.goale6;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.puzzleco1 == undefined) {
_root.puzzleco1 = 0;
} else {
_root.puzzleco1 = savefile.data.puzzleco1;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.puzzleco2 == undefined) {
_root.puzzleco2 = 0;
} else {
_root.puzzleco2 = savefile.data.puzzleco2;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.puzzleco3 == undefined) {
_root.puzzleco3 = 0;
} else {
_root.puzzleco3 = savefile.data.puzzleco3;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.puzzleco4 == undefined) {
_root.puzzleco4 = 0;
} else {
_root.puzzleco4 = savefile.data.puzzleco4;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.puzzleco5 == undefined) {
_root.puzzleco5 = 0;
} else {
_root.puzzleco5 = savefile.data.puzzleco5;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.blueco1 == undefined) {
_root.blueco1 = 0;
} else {
_root.blueco1 = savefile.data.blueco1;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.blueco2 == undefined) {
_root.blueco2 = 0;
} else {
_root.blueco2 = savefile.data.blueco2;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.blueco3 == undefined) {
_root.blueco3 = 0;
} else {
_root.blueco3 = savefile.data.blueco3;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.blueco4 == undefined) {
_root.blueco4 = 0;
} else {
_root.blueco4 = savefile.data.blueco4;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.blueco5 == undefined) {
_root.blueco5 = 0;
} else {
_root.blueco5 = savefile.data.blueco5;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.percent1 == undefined) {
_root.percent1 = 0;
_root.sound.gotoAndPlay('reject');
} else {
_root.loadedx = true;
_root.mainmen._visible = false;
_root.menus.play();
_root.percent1 = savefile.data.percent1;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.percent2 == undefined) {
_root.percent2 = 0;
} else {
_root.percent2 = savefile.data.percent2;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.percent3 == undefined) {
_root.percent3 = 0;
} else {
_root.percent3 = savefile.data.percent3;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.percent4 == undefined) {
_root.percent4 = 0;
} else {
_root.percent4 = savefile.data.percent4;
}
var savefile = SharedObject.getLocal('gyros');
if (savefile.data.percent5 == undefined) {
_root.percent5 = 0;
} else {
_root.percent5 = savefile.data.percent5;
}
}
}
frame 34 {
delete eval(onEnterFrame());
stopAllSounds();
}
frame 35 {
gotoAndStop(1);
}
frame 37 {
function gotoMySite() {
getURL('http://www.dizimzgames.com', '_blank');
}
function gotoMySite2() {
_global.NewgroundsAPI_DataObject.API.LoadNewgrounds();
}
function qualitylow() {
_quality = 'Low';
}
function qualityhigh() {
_quality = 'High';
}
function qualitymedium() {
_quality = 'Medium';
}
stop();
_quality = 'High';
stop();
stop();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var mySiteLink = new ContextMenuItem('Dizimz Games', gotoMySite);
var mySiteLink2 = new ContextMenuItem('Newgrounds©', gotoMySite2);
var qualitysetter = new ContextMenuItem('quality---low', qualitylow);
var qualitysetter2 = new ContextMenuItem('quality---medium', qualitymedium);
var qualitysetter3 = new ContextMenuItem('quality---high', qualityhigh);
myMenu.customItems.push(mySiteLink, copyrightNotice);
myMenu.customItems.push(mySiteLink2, copyrightNotice2);
myMenu.customItems.push(qualitysetter);
myMenu.customItems.push(qualitysetter2);
myMenu.customItems.push(qualitysetter3);
_root.menu = myMenu;
}
frame 37 {
stop();
}
instance of movieClip 434 {
onClipEvent (enterFrame) {
if (_root.booker != true && Key.isDown(32)) {
_root.tran.play();
_root.booker = true;
}
if (_root.booker == true && !Key.isDown(32)) {
_root.booker = false;
}
}
}
frame 38 {
for (i in _root) {
_root[i].swapDepths(10102);
removeMovieClip(_root[i]);
}
delete eval(onEnterFrame());
}
frame 39 {
delete eval(onEnterFrame());
}
frame 40 {
if (qset == undefined) {
qset = 2;
}
if (qset == 2) {
_quality = 'Medium';
}
if (qset == 1) {
_quality = 'Low';
}
if (qset == 3) {
_quality = 'High';
}
}
frame 40 {
stop();
blue = 'blue';
pink = 'pink';
nero = 1;
cash = 0;
bcash = 0;
klepto = 0;
puzzles = 0;
if (weapon == undefined) {
weapon = 'boomerang';
hammer = true;
}
torial._visible = false;
score = 0;
benny = 0;
flly = 0;
torial.swapDepths(10001);
powertimer.swapDepths(9997);
tuto.swapDepths(9998);
pausemen.swapDepths(9999);
gauge.swapDepths(10000);
tran.swapDepths(50000);
wall.swapDepths(500);
arrows.swapDepths(502);
gameover.swapDepths(60000);
gyrocannon1.swapDepths(701);
gyrocannon2.swapDepths(702);
gyrocannon3.swapDepths(703);
gyrocannon4.swapDepths(704);
gyrocannon5.swapDepths(705);
trape = 0;
gate = false;
pause = false;
key._visible = true;
boomer = 1;
type = 'norm';
jump = 10;
ht = 0.5;
gyro.gotoAndPlay('jump');
mxy = gyro._y - 80;
mxbg6y = bg6._y;
motion = 7;
tutorialsc = true;
mxx = gyro._x + 70;
mnx = gyro._x - 120;
whiptimer = 50;
whipper = 40;
att = 0;
gen = 0.9300000000000001;
intx = bg6._x - gyro._x;
inty = bg6._y - gyro._y;
gyroletterx = 0;
bg6.core._visible = false;
bg6.vines._visible = false;
bg6.trap._visible = false;
bg6.wall._visible = false;
bg6.spikes._visible = false;
bg6.ceiling._visible = false;
tbx = bg6._x - tutorboxx._x;
tby = bg6._y - tutorboxx._y;
tbx2 = bg6._x - tutorboxx2._x;
tby2 = bg6._y - tutorboxx2._y;
gletter = false;
yletter = false;
rletter = false;
oletter = false;
intymidg = midg._y;
portaled = false;
springx = bg6._x - spring._x;
springy = bg6._y - spring._y;
gysx1 = bg6._x - gyroswitch1._x;
gysy1 = bg6._y - gyroswitch1._y;
gysx2 = bg6._x - gyroswitch2._x;
gysy2 = bg6._y - gyroswitch2._y;
gysx3 = bg6._x - gyroswitch3._x;
gysy3 = bg6._y - gyroswitch3._y;
gysx4 = bg6._x - gyroswitch4._x;
gysy4 = bg6._y - gyroswitch4._y;
gysx5 = bg6._x - gyroswitch5._x;
gysy5 = bg6._y - gyroswitch5._y;
gyrotate1 = 1;
gyrotate2 = 1;
gyrotate3 = 1;
gyrotate4 = 1;
gyrotate5 = 1;
begx1 = bg6._x - bugenemy1._x;
begy1 = bg6._y - bugenemy1._y;
begx2 = bg6._x - bugenemy2._x;
begy2 = bg6._y - bugenemy2._y;
begx3 = bg6._x - bugenemy3._x;
begy3 = bg6._y - bugenemy3._y;
glx = bg6._x - letterg._x;
gly = bg6._y - letterg._y;
pzx = bg6._x - puzzle._x;
pzy = bg6._y - puzzle._y;
pzx2 = bg6._x - puzzle2._x;
pzy2 = bg6._y - puzzle2._y;
portx = bg6._x - portalway._x;
porty = bg6._y - portalway._y;
fgbx = bg6._x - flamebox._x;
fgby = bg6._y - flamebox._y;
badgx1 = bg6._x - badguy1._x;
badgy1 = bg6._y - badguy1._y;
badgix1 = badguy1._x;
badgiy1 = badguy1._y;
benzo1 = 0;
badgx2 = bg6._x - badguy2._x;
badgy2 = bg6._y - badguy2._y;
badgix2 = badguy2._x;
badgiy2 = badguy2._y;
benzo2 = 0;
bcoinbx1 = bg6._x - bcoinb1._x;
bcoinby1 = bg6._y - bcoinb1._y;
bcoinbx2 = bg6._x - bcoinb2._x;
bcoinby2 = bg6._y - bcoinb2._y;
bcoinbx3 = bg6._x - bcoinb3._x;
bcoinby3 = bg6._y - bcoinb3._y;
bcoinbx4 = bg6._x - bcoinb4._x;
bcoinby4 = bg6._y - bcoinb4._y;
bcoinbx5 = bg6._x - bcoinb5._x;
bcoinby5 = bg6._y - bcoinb5._y;
coinbx1 = bg6._x - coinb1._x;
coinby1 = bg6._y - coinb1._y;
coinbx2 = bg6._x - coinb2._x;
coinby2 = bg6._y - coinb2._y;
coinbx3 = bg6._x - coinb3._x;
coinby3 = bg6._y - coinb3._y;
coinbx4 = bg6._x - coinb4._x;
coinby4 = bg6._y - coinb4._y;
coinbx5 = bg6._x - coinb5._x;
coinby5 = bg6._y - coinb5._y;
coinbx6 = bg6._x - coinb6._x;
coinby6 = bg6._y - coinb6._y;
coinbx7 = bg6._x - coinb7._x;
coinby7 = bg6._y - coinb7._y;
coinbx8 = bg6._x - coinb8._x;
coinby8 = bg6._y - coinb8._y;
coinbx9 = bg6._x - coinb9._x;
coinby9 = bg6._y - coinb9._y;
coinbx10 = bg6._x - coinb10._x;
coinby10 = bg6._y - coinb10._y;
coinbx11 = bg6._x - coinb11._x;
coinby11 = bg6._y - coinb11._y;
coinbx12 = bg6._x - coinb12._x;
coinby12 = bg6._y - coinb12._y;
coinbx13 = bg6._x - coinb13._x;
coinby13 = bg6._y - coinb13._y;
coinbx14 = bg6._x - coinb14._x;
coinby14 = bg6._y - coinb14._y;
coinbx15 = bg6._x - coinb15._x;
coinby15 = bg6._y - coinb15._y;
coinbx16 = bg6._x - coinb16._x;
coinby16 = bg6._y - coinb16._y;
coinbx17 = bg6._x - coinb17._x;
coinby17 = bg6._y - coinb17._y;
coinbx18 = bg6._x - coinb18._x;
coinby18 = bg6._y - coinb18._y;
coinbx19 = bg6._x - coinb19._x;
coinby19 = bg6._y - coinb19._y;
coinbx20 = bg6._x - coinb20._x;
coinby20 = bg6._y - coinb20._y;
coinbx21 = bg6._x - coinb21._x;
coinby21 = bg6._y - coinb21._y;
coinbx22 = bg6._x - coinb22._x;
coinby22 = bg6._y - coinb22._y;
coinbx23 = bg6._x - coinb23._x;
coinby23 = bg6._y - coinb23._y;
coinbx24 = bg6._x - coinb24._x;
coinby24 = bg6._y - coinb24._y;
coinbx25 = bg6._x - coinb25._x;
coinby25 = bg6._y - coinb25._y;
coinbx26 = bg6._x - coinb26._x;
coinby26 = bg6._y - coinb26._y;
coinbx27 = bg6._x - coinb27._x;
coinby27 = bg6._y - coinb27._y;
coinbx28 = bg6._x - coinb28._x;
coinby28 = bg6._y - coinb28._y;
coinbx29 = bg6._x - coinb29._x;
coinby29 = bg6._y - coinb29._y;
coinbx30 = bg6._x - coinb30._x;
coinby30 = bg6._y - coinb30._y;
coinbx31 = bg6._x - coinb31._x;
coinby31 = bg6._y - coinb31._y;
coinbx32 = bg6._x - coinb32._x;
coinby32 = bg6._y - coinb32._y;
coinbx33 = bg6._x - coinb33._x;
coinby33 = bg6._y - coinb33._y;
coinbx34 = bg6._x - coinb34._x;
coinby34 = bg6._y - coinb34._y;
coinbx35 = bg6._x - coinb35._x;
coinby35 = bg6._y - coinb35._y;
coinbx36 = bg6._x - coinb36._x;
coinby36 = bg6._y - coinb36._y;
coinbx37 = bg6._x - coinb37._x;
coinby37 = bg6._y - coinb37._y;
coinbx38 = bg6._x - coinb38._x;
coinby38 = bg6._y - coinb38._y;
coinbx39 = bg6._x - coinb39._x;
coinby39 = bg6._y - coinb39._y;
coinbx40 = bg6._x - coinb40._x;
coinby40 = bg6._y - coinb40._y;
portaled = false;
magix = bg6._x - magicswitch._x;
magiy = bg6._y - magicswitch._y;
keyx = bg6._x - key._x;
keyy = bg6._y - key._y;
wallx = bg6._x - wall._x;
wally = bg6._y - wall._y;
cratex = bg6._x - crate._x;
cratey = bg6._y - crate._y;
push = 1;
raicax = bg6._x - raincash._x;
raicay = bg6._y - raincash._y;
gycanx1 = bg6._x - gyrocannon1._x;
gycany1 = bg6._y - gyrocannon1._y;
gycanx2 = bg6._x - gyrocannon2._x;
gycany2 = bg6._y - gyrocannon2._y;
gycanx3 = bg6._x - gyrocannon3._x;
gycany3 = bg6._y - gyrocannon3._y;
gycanx4 = bg6._x - gyrocannon4._x;
gycany4 = bg6._y - gyrocannon4._y;
gycanx5 = bg6._x - gyrocannon5._x;
gycany5 = bg6._y - gyrocannon5._y;
onEnterFrame = function () {
i = 0;
while (i <= 40) {
if (gyro.hitTest(_root['coinb' + i]) && _root['coinb' + i]._visible == true) {
cash += 1;
klepto += 1;
_root['coinb' + i].play();
_root['coinb' + i]._visible = true;
duplicateMovieClip('star' + pink, 'starz1', 1000);
starzx1 = bg6._x - gyro._x;
starzy1 = bg6._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz2', 1002);
starzx2 = bg6._x - gyro._x;
starzy2 = bg6._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz3', 1003);
starzx3 = bg6._x - gyro._x;
starzy3 = bg6._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz4', 1004);
starzx4 = bg6._x - gyro._x;
starzy4 = bg6._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz5', 1005);
starzx5 = bg6._x - gyro._x;
starzy5 = bg6._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz6', 1006);
starzx6 = bg6._x - gyro._x;
starzy6 = bg6._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
dupstar = 0;
score += 10;
}
if (gyro.hitTest(spring) && jump < 0) {
jump = 45;
ht = 0.99;
spring.slug.play();
}
if (gyro.hitTest(spring.core) && ht <= 0) {
jump = 45;
ht = 0.99;
lives -= 1;
gauge.gorp.play();
gyro._x = bg6._x - intx;
gyro._y = -300;
}
if (gyro.hitTest(_root['bcoinb' + i]) && _root['bcoinb' + i]._visible == true) {
bcash += 1;
_root['bcoinb' + i].play();
_root['bcoinb' + i]._visible = true;
gauge.boc.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg6._x - gyro._x;
starzy1 = bg6._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg6._x - gyro._x;
starzy2 = bg6._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg6._x - gyro._x;
starzy3 = bg6._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg6._x - gyro._x;
starzy4 = bg6._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg6._x - gyro._x;
starzy5 = bg6._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg6._x - gyro._x;
starzy6 = bg6._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
dupstar = 0;
score += 10;
}
if (gyro.hitTest(key) && key._visible == true) {
gate = true;
key._visible = false;
key.gotoAndStop(55);
}
if (gyro.hitTest(letterg) && oletter != true) {
gletter = true;
gyroletterx += 1;
letterg.gotoAndStop(55);
gauge.gyroletters.play();
duplicateMovieClip('star' + pink, 'starz1', 1000);
starzx1 = bg6._x - gyro._x;
starzy1 = bg6._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz2', 1002);
starzx2 = bg6._x - gyro._x;
starzy2 = bg6._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz3', 1003);
starzx3 = bg6._x - gyro._x;
starzy3 = bg6._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz4', 1004);
starzx4 = bg6._x - gyro._x;
starzy4 = bg6._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz5', 1005);
starzx5 = bg6._x - gyro._x;
starzy5 = bg6._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz6', 1006);
starzx6 = bg6._x - gyro._x;
starzy6 = bg6._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
score += 50;
}
if (gyro.hitTest(puzzle) && puzzle._visible == true) {
puzzles += 1;
puzzle._visible = false;
gauge.puzzle.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg6._x - gyro._x;
starzy1 = bg6._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg6._x - gyro._x;
starzy2 = bg6._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg6._x - gyro._x;
starzy3 = bg6._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg6._x - gyro._x;
starzy4 = bg6._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg6._x - gyro._x;
starzy5 = bg6._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg6._x - gyro._x;
starzy6 = bg6._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
score += 100;
}
if (gyro.hitTest(puzzle2) && puzzle2._visible == true) {
puzzles += 1;
puzzle2._visible = false;
gauge.puzzle.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg6._x - gyro._x;
starzy1 = bg6._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg6._x - gyro._x;
starzy2 = bg6._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg6._x - gyro._x;
starzy3 = bg6._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg6._x - gyro._x;
starzy4 = bg6._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg6._x - gyro._x;
starzy5 = bg6._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg6._x - gyro._x;
starzy6 = bg6._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
score += 100;
}
if (gletter == true && yletter == true && rletter == true && oletter == true) {
gauge.gyroletters.gotoAndPlay('freelives');
gletter = false;
yletter = false;
rletter = false;
oletter = false;
}
if (cash >= 100) {
lives += 1;
soundr.gotoAndPlay('freelife');
cash = 0;
}
if (boomerang1.hitTest(bugenemy1)) {
bugenemy1.play();
score += 10;
}
if (boomerang1.hitTest(bugenemy2)) {
bugenemy2.play();
score += 10;
}
if (portalway.core.hitTest(gyro._x, gyro._y, true) && portalway._visible == true && jump < 0) {
gyro.gotoAndStop('teleport');
portaled = true;
pause = true;
}
if (_root['bugenemy' + i]._x < -100 || _root['bugenemy' + i]._x > 700) {
_root['bugenemy' + i].gotoAndStop(1);
}
if (_root['bugenemy' + i]._x < gyro._x - 20) {
_root['bugenemy' + i]._xscale = -100;
}
if (_root['bugenemy' + i]._x > gyro._x + 20) {
_root['bugenemy' + i]._xscale = 100;
}
if (gyro.hitTest(_root['bugenemy' + i].core) && jump < 0) {
_root['bugenemy' + i].gotoAndStop(3);
duplicateMovieClip('star' + blue, 'starz1', 1000);
jump = 10;
starzx1 = bg6._x - gyro._x;
starzy1 = bg6._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg6._x - gyro._x;
starzy2 = bg6._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg6._x - gyro._x;
starzy3 = bg6._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg6._x - gyro._x;
starzy4 = bg6._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg6._x - gyro._x;
starzy5 = bg6._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg6._x - gyro._x;
starzy6 = bg6._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
score += 100;
}
if (gyro.hitTest(raincash) && rainbow2 != true) {
rainbow2 = true;
duplicateMovieClip(reward, 'reward1', 1999);
reward1._x = 300;
reward1._y = 200;
raincash.play();
goalb2 = true;
}
++i;
}
if (trap != true && gyro._y > mxy && aim != true && pause != true || trap != true && gyro._y <= mxy && bg6._y <= mxbg6y && pause != true && jump < 0 && aim != true || gyro._y > 400 && pause != true && trap != true && bg6._y <= mxbg6y && aim != true) {
gyro._y -= jump;
jump -= ht;
}
if (trap != true && gyro._y <= mxy && aim != true && pause != true || trap != true && aim != true && gyro._y > 300 && pause != true && bg6._y > mxbg6y && jump < 0) {
bg6._y += jump;
midg._y += jump / 4;
jump -= ht;
}
if (Key.isDown(65) && pause != true && dead != true && climb != true && trap != true && ht == 0 && duck != true && aim != true && rope != true && whiptimer > whipper) {
jump = 10;
ht = 0.5;
gyro.gotoAndPlay('jump');
}
if (jump < -15) {
jump = -16;
}
if (Key.isDown(65) && pause != true && dead != true && climb != true && aim != true && trap != true && ht == 0 && duck == true && rope != true && whiptimer > whipper) {
jump = 11;
ht = 0.5;
duck = false;
motion = 0;
gyro.gotoAndPlay('boostjump');
}
if (Key.isDown(40) && pause != true && portaled != true && dead != true && climb != true && aim != true && trap != true && ht == 0 && rope != true && whiptimer > whipper && att == 0) {
duck = true;
gyro.gotoAndStop('duck');
}
if (!Key.isDown(40) && pause != true && portaled != true && dead != true && climb != true && trap != true && duck == true && rope != true && whiptimer > whipper && att == 0) {
duck = false;
gyro.gotoAndStop(1);
}
if (bg6.core.hitTest(gyro._x, gyro._y + 25, true) && dead != true && climb != true && jump < -3 && whiptimer > whipper && att == 0) {
gyro.gotoAndStop(1);
jump = 0;
motion = 7;
att = 0;
ht = 0;
fliper = 1;
ken = false;
}
if (!bg6.core.hitTest(gyro._x, gyro._y + 35, true) && portaled != true && dead != true && climb != true && ht == 0 && rope != true && whiptimer > whipper && att == 0) {
gyro.gotoAndPlay('ballup');
ht = 0.5;
}
for (;;) {
if (!(bg6.core.hitTest(gyro._x, gyro._y + 25, true) && jump < 0.7 && whiptimer > whipper)) break;
gyro._y -= 0.1;
}
for (;;) {
if (!(bg6.ceiling.hitTest(gyro._x, gyro._y - 35, true) && jump > 0 && whiptimer > whipper)) break;
gyro._y -= 0.1;
jump -= 3;
}
if (Key.isDown(39) && gyro._x > 0 && gyro._x < 600 && pause != true && portaled != true && dead != true && climb != true && trap != true && duck != true && aim != true && gyro._x <= mxx && rope != true && whiptimer > whipper && att == 0) {
gyro.play();
goright = true;
goleft = false;
gyro._x += motion / push;
bobob = 90;
gyro._xscale = 50;
}
if (Key.isDown(37) && gyro._x > 0 && gyro._x < 600 && pause != true && portaled != true && dead != true && climb != true && trap != true && duck != true && aim != true && gyro._x >= mnx && rope != true && whiptimer > whipper && att == 0) {
gyro.play();
goleft = true;
goright = false;
gyro._x -= motion / push;
bobob = -90;
gyro._xscale = -50;
}
if (Key.isDown(39) && gyro._x > 0 && gyro._x < 600 && pause != true && portaled != true && dead != true && climb != true && trap != true && duck != true && aim != true && gyro._x > mxx && rope != true && whiptimer > whipper && att == 0) {
gyro.play();
goright = true;
goleft = false;
bg6._x -= motion / push;
midg._x -= motion / 30;
bobob = 90;
gyro._xscale = 50;
}
if (Key.isDown(37) && gyro._x > 0 && gyro._x < 600 && pause != true && portaled != true && dead != true && climb != true && trap != true && duck != true && aim != true && gyro._x < mnx && rope != true && whiptimer > whipper && att == 0) {
gyro.play();
goleft = true;
goright = false;
bobob = -90;
bg6._x += motion / push;
midg._x += motion / 30;
gyro._xscale = -50;
}
if (!Key.isDown(37) && pause != true && pause != true && dead != true && climb != true && ht == 0 && trap != true && duck != true && aim != true && goleft == true && rope != true && whiptimer > whipper && att == 0) {
gyro.gotoAndStop(1);
goleft = false;
}
if (!Key.isDown(39) && pause != true && pause != true && dead != true && climb != true && ht == 0 && trap != true && duck != true && aim != true && goright == true && rope != true && whiptimer > whipper && att == 0) {
gyro.gotoAndStop(1);
goright = false;
}
if (trap != true && pause != true && portaled != true) {
bg6._x -= att;
midg._x -= att / 30;
}
if (bg6.spikes.hitTest(gyro._x, gyro._y + 30, true)) {
att = 0;
lives -= 1;
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg6._x - gyro._x;
starzy1 = bg6._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg6._x - gyro._x;
starzy2 = bg6._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg6._x - gyro._x;
starzy3 = bg6._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg6._x - gyro._x;
starzy4 = bg6._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg6._x - gyro._x;
starzy5 = bg6._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg6._x - gyro._x;
starzy6 = bg6._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
gauge.gorp.play();
gyro._x = bg6._x - intx;
gyro._y = bg6._y - inty;
}
if (bg6.wall.hitTest(gyro._x + 20, gyro._y, true)) {
gyro._x -= motion;
att = 0;
}
while (bg6.wall.hitTest(gyro._x + 20, gyro._y, true)) {
gyro._x -= 0.1;
}
if (bg6.wall.hitTest(gyro._x - 20, gyro._y, true)) {
att = 0;
gyro._x += motion;
}
while (bg6.wall.hitTest(gyro._x - 20, gyro._y, true)) {
gyro._x += 0.1;
}
if (gyro._y < 200 && aim != true && trap != true && ht == 0 && dead != true && climb != true) {
gyro._y += bett / 5;
bg6._y += bett / 5;
midg._y += bett / 200;
}
if (bg6._y <= mxbg6y) {
bg6._y = mxbg6y;
}
if (gyro._y > 330 && aim != true && bg6._y > mxbg6y && dead != true) {
gyro._y += bett;
bg6._y += bett;
midg._y += bett / 200;
}
if (gyro._y < 300 && aim != true && trap == true && dead != true && climb != true) {
gyro._y += bett / 3;
bg6._y += bett / 3;
midg._y += bett / 200;
}
if (pause != true) {
bett = (330 - gyro._y) / 5;
}
if (gyro._x < mnx - 60 && bleco <= 0) {
bg6._x += mot / 23;
midg._x += mot / 680;
gyro._x += mot / 23;
}
if (gyro._x > mxx + 60 && bleco <= 0) {
bg6._x += mot / 23;
midg._x += mot / 680;
gyro._x += mot / 23;
}
if (midg._y <= intymidg) {
midg._y = intymidg;
}
if (midg._x <= 197) {
midg._x = 197;
}
if (benny < score) {
benny += 1;
}
if (pause != true) {
starzx1 += starburst1;
starburst1 *= 0.94;
starzy1 += starjump1;
starjump1 -= 0.5;
starzx2 += starburst2;
starburst2 *= 0.94;
starzy2 += starjump2;
starjump2 -= 0.5;
starzx3 += starburst3;
starburst3 *= 0.94;
starzy3 += starjump3;
starjump3 -= 0.5;
starzx4 += starburst4;
starburst4 *= 0.94;
starzy4 += starjump4;
starjump4 -= 0.5;
starzx5 += starburst5;
starburst5 *= 0.94;
starzy5 += starjump5;
starjump5 -= 0.5;
starzx6 += starburst6;
starburst6 *= 0.94;
starzy6 += starjump6;
starjump6 -= 0.5;
}
if (bg6.vines.hitTest(gyro._x, gyro._y, true) && dead != true && climb != true && Key.isDown(38)) {
climb = true;
ht = 0;
jump = 0;
gyro.gotoAndStop('climb');
}
if (bg6.vines.hitTest(gyro._x, gyro._y, true) && gyro._x > 0 && gyro._x < 600 && dead != true && climb == true && Key.isDown(65) && pukpuk != true || !bg6.vines.hitTest(gyro._x, gyro._y, true) && dead != true && climb == true) {
climb = false;
gyro.gotoAndPlay('jump');
jump = 5;
pukpuk = true;
climb = false;
}
if (jump < -4) {
pukpuk = false;
}
if (trap != true && dead != true && gyro._x > 0 && gyro._x < 600 && gyro._x < mxx && climb == true && Key.isDown(39)) {
gyro._x += 2;
ht = 0;
jump = 0;
gyro.play();
gogo = true;
}
if (trap != true && dead != true && gyro._x > 0 && gyro._x < 600 && gyro._x > mnx && climb == true && Key.isDown(37)) {
gyro._x -= 2;
gyro.play();
gogo = true;
}
if (trap != true && dead != true && gyro._x > 0 && gyro._x < 600 && gyro._x >= mxx && climb == true && Key.isDown(39)) {
bg6._x -= 2;
gyro.play();
gogo = true;
}
if (trap != true && dead != true && gyro._x > 0 && gyro._x < 600 && gyro._x <= mnx && climb == true && Key.isDown(37)) {
bg6._x += 2;
gyro.play();
gogo = true;
}
if (trap != true && dead != true && gyro._x > 0 && gyro._x < 600 && gyro._y < 230 && climb == true && Key.isDown(40)) {
gyro._y += 2;
gyro.play();
gogo = true;
}
if (trap != true && dead != true && gyro._x > 0 && gyro._x < 600 && gyro._y > 130 && climb == true && Key.isDown(38)) {
gyro._y -= 2;
ht = 0;
jump = 0;
gyro.play();
gogo = true;
}
if (trap != true && dead != true && gyro._x > 0 && gyro._x < 600 && gyro._y >= 230 && climb == true && Key.isDown(40)) {
bg6._y -= 2;
gyro.play();
gogo = true;
}
if (trap != true && dead != true && gyro._x > 0 && gyro._x < 600 && gyro._y <= 130 && climb == true && Key.isDown(38)) {
bg6._y += 2;
ht = 0;
jump = 0;
gyro.play();
gogo = true;
}
if (!Key.isDown(38) && !Key.isDown(40) && !Key.isDown(39) && !Key.isDown(37) && gogo == true && climb == true) {
gyro.gotoAndStop('climb');
}
if (gyro._y > 1700 && lives > 0) {
lives -= 1;
gauge.gorp.play();
gyro._x = bg6._x - intx;
gyro._y = -300;
}
if (lives <= 0) {
gameover.play();
portaled = true;
pause = true;
}
if (bg6.trap.hitTest(gyro._x, gyro._y - 30, true) && trap != true && ken != true && jump <= 0) {
trap = true;
stt = 0;
trape = 1;
motion = 9;
jump = 0;
ht = 0;
}
for (;;) {
if (!(bg6.trap.hitTest(gyro._x, gyro._y - 30, true) && jump <= 1)) break;
gyro._y -= 0.1;
}
if (!Key.isDown(65) && jump < -9) {
fliper = 0;
}
if (Key.isDown(65) && Key.isDown(40) && trap == true) {
trap = false;
ht = 0.9;
jump = -8;
}
if (trape > 100) {
trape = 2;
}
if (trap == true) {
gyro.bob.bobo.gotoAndStop(Math.round(fliper));
gyro.gotoAndStop('trapeze');
gyro.trap.gotoAndStop(Math.round(trape));
}
if (Key.isDown(65) && trap == true && pause != true && portaled != true && gyrocannon != true) {
folgot = true;
trape += fliper / 4;
fliper += 0.2;
swingsound.play();
}
if (fliper > 15) {
fliper = 15;
}
if (!Key.isDown(65) && folgot == true && trap == true && pause != true && portaled != true && gyrocannon != true) {
jump = fliper * 1.4;
swingsound.gotoAndStop(1);
trap = false;
folgot = false;
ken = true;
gyro.gotoAndPlay('ballup');
ht = 0.7;
}
if (jump < 0) {
ken = false;
}
if (trap != true) {
whiptimer += 1;
boomx1 -= trajectoryx1;
boomy1 += trajectoryy1;
trajectoryx1 -= ben;
trajectoryy1 -= ken;
boomtimer += 1;
dupstar += 1;
}
if (boomerang1._x > gyro._x) {
ben = 0.5;
}
if (boomerang1._x < gyro._x) {
ben = -0.5;
}
if (boomerang1._y > gyro._y + 20) {
ken = -0.5;
}
if (boomerang1._y < gyro._y - 20) {
ken = 0.5;
}
if (boomerang1._y < gyro._y + 20 && boomerang1._y > gyro._y - 20) {
ken = 0;
trajectoryy1 = 0;
}
if (boomer <= 0 && dupstar > 5) {
duplicateMovieClip('star' + type, 'star' + stardu, stardu + 100);
_root['starx' + stardu] = bg6._x - boomerang1._x;
_root['stary' + stardu] = bg6._y - boomerang1._y;
_root['star' + stardu]._rotation = Math.random() * 360;
stardu += 1;
dupstar = 0;
}
if (stardu > 5) {
stardu = 1;
}
if (Key.isDown(83) && pause != true && dead != true && climb != true && jump <= 0 && ht == 0 && rope != true && aim != true && boomer > 0 && trap != true && duck != true && aim != true && whiptimer > whipper) {
aim = true;
dupstar = 0;
ror = 0;
}
if (aim == true) {
gyro.gotoAndStop('aim');
arrows._x = gyro._x;
arrows._y = gyro._y;
arrows._visible = true;
arrows._rotation = ror * (gyro._xscale / 50);
arrows._xscale = gyro._xscale * 1.25;
}
if (aim != true) {
arrows._visible = false;
}
if (aim == true && Key.isDown(40) && ror < 70) {
ror += 5;
arrows.play();
}
if (aim == true && Key.isDown(38) && ror > -70) {
ror -= 5;
arrows.play();
}
if (boomerang1._x > gyro._x - 50 && boomerang1._x < gyro._x + 50 && boomerang1._y > gyro._y - 50 && boomerang1._y < gyro._y + 50 && boomtimer > 50) {
boomer = 1;
zex = false;
removeMovieClip(boomerang1);
}
if (!Key.isDown(83) && pause != true && aim == true && trap != true && boomer > 0 && whiptimer > whipper && duck != true) {
duplicateMovieClip('boomerang' + type, 'boomerang' + boomer, 200 + boomer);
stardu = 1;
_root['boomx' + boomer] = bg6._x - gyro._x;
_root['boomy' + boomer] = bg6._y - gyro._y - 50 * Math.sin(ror * 0.0174532925199433);
gyro.gotoAndPlay('boomerang');
_root['trajectoryx' + boomer] = 20 * Math.cos(ror * 0.0174532925199433) * (gyro._xscale / 50);
_root['glip' + boomer] = 1 * (gyro._xscale / 80);
_root['trajectoryy' + boomer] = -20 * Math.sin(ror * 0.0174532925199433);
_root['boomacc' + boomer] = 0;
aim = false;
ht = 0;
jump = 0;
ben = 0.5;
ken = 0.5;
boomer = 0;
whiptimer = 0;
whipper = 20;
boomtimer = 0;
}
if (boomerang1.hitTest(gyroswitch1) && nero <= 1) {
gyroswitch1.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg6._x - gyroswitch1._x;
starzy1 = bg6._y - gyroswitch1._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg6._x - gyroswitch1._x;
starzy2 = bg6._y - gyroswitch1._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg6._x - gyroswitch1._x;
starzy3 = bg6._y - gyroswitch1._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg6._x - gyroswitch1._x;
starzy4 = bg6._y - gyroswitch1._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg6._x - gyroswitch1._x;
starzy5 = bg6._y - gyroswitch1._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg6._x - gyroswitch1._x;
starzy6 = bg6._y - gyroswitch1._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
nero = 2;
}
if (!Key.isDown(67)) {
cohert = false;
}
if (Key.isDown(67) && cohert != true && portaled != true && pause != true && portaled != true) {
pause = true;
cohert = true;
gyro.stop();
}
if (Key.isDown(67) && cohert != true && pause == true) {
pause = false;
cohert = true;
}
if (pause == true && portaled != true && torial._visible != true) {
gyro.stop();
gauge.boc.gotoAndPlay(60);
pausemen._visible = true;
gauge.puzzle.gotoAndPlay(60);
gauge.gyroletters.gotoAndPlay(60);
gyro.goop.gotoAndPlay(1);
}
if (pause != true && portaled != true && torial._visible != true) {
pausemen._visible = false;
}
if (pause != true && portaled != true) {
gyrotate1 -= 1;
gyrotate2 -= 1;
gyrotate3 -= 1;
gyrotate4 -= 1;
gyrotate5 -= 1;
benzogo = (300 - gyro._x) / 25;
}
if (gyrocannon == true) {
gyro._x = _root['gyrocannon' + gyrock]._x;
gyro._y = _root['gyrocannon' + gyrock]._y;
}
if (gyrocannon == true && gyro._x > 370 || gyrocannon == true && gyro._x < 230) {
bg6._x += benzogo;
}
if (gyro.hitTest(gyrocannon1) && gyrotate1 <= 0 && gyrocannon != true) {
gyrocannon = true;
gyrock = 1;
gyrocannon1.play();
}
if (gyrock == 1 && pause != true && portaled != true) {
gyrocannon1._rotation += 4;
}
if (jump > 13 || jump < -13) {
att = 0;
}
if (jump > 13 && ht < 0.5 || jump < -13 && ht < 0.5) {
att = 0;
ht = 0.5;
}
if (att > 13 || att < -13 || portaled == true) {
jump = 0;
ht = 0;
}
if (Key.isDown(65) && gyrock == 1 && pause != true && portaled != true) {
att = 25 * Math.cos(gyrocannon1._rotation * 0.0174532925199433);
jump = -30 * Math.sin(gyrocannon1._rotation * 0.0174532925199433);
ht = 0.1;
gyro._xscale = 50;
gyrocannon1.play();
gyro.gotoAndPlay('ballup');
gyrocannon1.play();
gyrock = 0;
gyrocannon = false;
gyrotate1 = 60;
}
if (gyro.hitTest(gyrocannon2) && gyrotate2 <= 0 && gyrocannon != true) {
gyrocannon = true;
gyrock = 2;
gyrocannon2.play();
flly = 0;
att = 0;
}
if (pause != true && portaled != true) {
flly += 3;
}
if (flly > 200 && gyrock == 2) {
att = 0;
jump = -30;
ht = 0.1;
gyrocannon2.play();
gyrock = 0;
gyrocannon = false;
gyrotate2 = 60;
}
if (gyro.hitTest(gyrocannon3) && gyrotate3 <= 0 && gyrocannon != true) {
gyrocannon = true;
gyrock = 3;
att = 0;
gyrocannon3.play();
flly = 0;
}
if (flly > 200 && gyrock == 3) {
att = 40;
jump = 0;
ht = 0.1;
gyrocannon3.play();
gyrock = 0;
gyrocannon = false;
gyrotate3 = 60;
}
if (gyro.hitTest(gyrocannon4) && gyrotate4 <= 0 && gyrocannon != true) {
gyrocannon = true;
gyrock = 4;
att = 0;
gyrocannon4.play();
flly = 0;
}
if (flly > 200 && gyrock == 4) {
att = 0;
jump = -30;
ht = 0.1;
gyrocannon4.play();
gyrock = 0;
gyrocannon = false;
gyrotate4 = 60;
}
if (gyro.hitTest(gyrocannon5) && gyrotate5 <= 0 && gyrocannon != true) {
gyrocannon = true;
gyrocannon5.play();
gyrock = 5;
att = 0;
flly = 0;
}
if (flly > 200 && gyrock == 5) {
att = -20;
jump = 0;
ht = 0.1;
gyrocannon5.play();
gyrock = 0;
gyrocannon = false;
gyrotate5 = 60;
}
if (boomerang1.hitTest(gyroswitch1) && nero <= 1) {
gyroswitch1.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg6._x - gyroswitch1._x;
starzy1 = bg6._y - gyroswitch1._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg6._x - gyroswitch1._x;
starzy2 = bg6._y - gyroswitch1._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg6._x - gyroswitch1._x;
starzy3 = bg6._y - gyroswitch1._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg6._x - gyroswitch1._x;
starzy4 = bg6._y - gyroswitch1._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg6._x - gyroswitch1._x;
starzy5 = bg6._y - gyroswitch1._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg6._x - gyroswitch1._x;
starzy6 = bg6._y - gyroswitch1._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
nero = 2;
}
if (gyro.hitTest(tutorboxx) && jump < 0) {
torial.gotoAndStop(2);
torial._visible = true;
pause = true;
jump = 12;
}
if (gyro.hitTest(tutorboxx2) && jump < 0) {
torial.gotoAndStop(3);
torial._visible = true;
pause = true;
jump = 12;
}
if (Key.isDown(32) && torial._visible == true) {
torial.gotoAndStop(1);
torial._visible = false;
pause = false;
}
if (dead == true) {
jump = 0;
ht = 0;
}
if (pause == true) {
_quality = 'High';
}
if (pause != true && qset >= 3) {
_quality = 'High';
}
if (pause != true && qset == 2) {
_quality = 'Medium';
}
if (pause != true && qset <= 1) {
_quality = 'Low';
}
boomerang1._x = bg6._x - boomx1;
boomerang1._y = bg6._y - boomy1;
star1._x = bg6._x - starx1;
star1._y = bg6._y - stary1;
star2._x = bg6._x - starx2;
star2._y = bg6._y - stary2;
star3._x = bg6._x - starx3;
star3._y = bg6._y - stary3;
star4._x = bg6._x - starx4;
star4._y = bg6._y - stary4;
star5._x = bg6._x - starx5;
star5._y = bg6._y - stary5;
gauge.blade.gotoAndStop(weapon);
bcoinb1._x = bg6._x - bcoinbx1;
bcoinb1._y = bg6._y - bcoinby1;
bcoinb2._x = bg6._x - bcoinbx2;
bcoinb2._y = bg6._y - bcoinby2;
bcoinb3._x = bg6._x - bcoinbx3;
bcoinb3._y = bg6._y - bcoinby3;
bcoinb4._x = bg6._x - bcoinbx4;
bcoinb4._y = bg6._y - bcoinby4;
bcoinb5._x = bg6._x - bcoinbx5;
bcoinb5._y = bg6._y - bcoinby5;
coinb1._x = bg6._x - coinbx1;
coinb1._y = bg6._y - coinby1;
coinb2._x = bg6._x - coinbx2;
coinb2._y = bg6._y - coinby2;
coinb3._x = bg6._x - coinbx3;
coinb3._y = bg6._y - coinby3;
coinb4._x = bg6._x - coinbx4;
coinb4._y = bg6._y - coinby4;
coinb5._x = bg6._x - coinbx5;
coinb5._y = bg6._y - coinby5;
coinb6._x = bg6._x - coinbx6;
coinb6._y = bg6._y - coinby6;
coinb7._x = bg6._x - coinbx7;
coinb7._y = bg6._y - coinby7;
coinb8._x = bg6._x - coinbx8;
coinb8._y = bg6._y - coinby8;
coinb9._x = bg6._x - coinbx9;
coinb9._y = bg6._y - coinby9;
coinb10._x = bg6._x - coinbx10;
coinb10._y = bg6._y - coinby10;
coinb11._x = bg6._x - coinbx11;
coinb11._y = bg6._y - coinby11;
coinb12._x = bg6._x - coinbx12;
coinb12._y = bg6._y - coinby12;
coinb13._x = bg6._x - coinbx13;
coinb13._y = bg6._y - coinby13;
coinb14._x = bg6._x - coinbx14;
coinb14._y = bg6._y - coinby14;
coinb15._x = bg6._x - coinbx15;
coinb15._y = bg6._y - coinby15;
coinb16._x = bg6._x - coinbx16;
coinb16._y = bg6._y - coinby16;
coinb17._x = bg6._x - coinbx17;
coinb17._y = bg6._y - coinby17;
coinb18._x = bg6._x - coinbx18;
coinb18._y = bg6._y - coinby18;
coinb19._x = bg6._x - coinbx19;
coinb19._y = bg6._y - coinby19;
coinb20._x = bg6._x - coinbx20;
coinb20._y = bg6._y - coinby20;
coinb21._x = bg6._x - coinbx21;
coinb21._y = bg6._y - coinby21;
coinb22._x = bg6._x - coinbx22;
coinb22._y = bg6._y - coinby22;
coinb23._x = bg6._x - coinbx23;
coinb23._y = bg6._y - coinby23;
coinb24._x = bg6._x - coinbx24;
coinb24._y = bg6._y - coinby24;
coinb25._x = bg6._x - coinbx25;
coinb25._y = bg6._y - coinby25;
coinb26._x = bg6._x - coinbx26;
coinb26._y = bg6._y - coinby26;
coinb27._x = bg6._x - coinbx27;
coinb27._y = bg6._y - coinby27;
coinb28._x = bg6._x - coinbx28;
coinb28._y = bg6._y - coinby28;
coinb29._x = bg6._x - coinbx29;
coinb29._y = bg6._y - coinby29;
coinb30._x = bg6._x - coinbx30;
coinb30._y = bg6._y - coinby30;
coinb31._x = bg6._x - coinbx31;
coinb31._y = bg6._y - coinby31;
coinb32._x = bg6._x - coinbx32;
coinb32._y = bg6._y - coinby32;
coinb33._x = bg6._x - coinbx33;
coinb33._y = bg6._y - coinby33;
coinb34._x = bg6._x - coinbx34;
coinb34._y = bg6._y - coinby34;
coinb35._x = bg6._x - coinbx35;
coinb35._y = bg6._y - coinby35;
coinb36._x = bg6._x - coinbx36;
coinb36._y = bg6._y - coinby36;
coinb37._x = bg6._x - coinbx37;
coinb37._y = bg6._y - coinby37;
coinb38._x = bg6._x - coinbx38;
coinb38._y = bg6._y - coinby38;
coinb39._x = bg6._x - coinbx39;
coinb39._y = bg6._y - coinby39;
coinb40._x = bg6._x - coinbx40;
coinb40._y = bg6._y - coinby40;
magicswitch._x = bg6._x - magix;
magicswitch._y = bg6._y - magiy;
gauge.lives = lives;
gauge.cash = cash;
gauge.score = benny;
starz1._x = bg6._x - starzx1;
starz1._y = bg6._y - starzy1;
starz2._x = bg6._x - starzx2;
starz2._y = bg6._y - starzy2;
starz3._x = bg6._x - starzx3;
starz3._y = bg6._y - starzy3;
starz4._x = bg6._x - starzx4;
starz4._y = bg6._y - starzy4;
starz5._x = bg6._x - starzx5;
starz5._y = bg6._y - starzy5;
starz6._x = bg6._x - starzx6;
starz6._y = bg6._y - starzy6;
flamebox._x = bg6._x - fgbx;
flamebox._y = bg6._y - fgby;
mot = 300 - gyro._x;
key._x = bg6._x - keyx;
key._y = bg6._y - keyy;
letterg._x = bg6._x - glx;
letterg._y = bg6._y - gly;
gauge.gyroletters.letterg._visible = gletter;
gauge.gyroletters.lettery._visible = yletter;
gauge.gyroletters.letterr._visible = rletter;
gauge.gyroletters.lettero._visible = oletter;
portalway._visible = gate;
gyroswitch1._x = bg6._x - gysx1;
gyroswitch1._y = bg6._y - gysy1;
gyroswitch2._x = bg6._x - gysx2;
gyroswitch2._y = bg6._y - gysy2;
gyroswitch3._x = bg6._x - gysx3;
gyroswitch3._y = bg6._y - gysy3;
gyroswitch4._x = bg6._x - gysx4;
gyroswitch4._y = bg6._y - gysy4;
gyroswitch5._x = bg6._x - gysx5;
gyroswitch5._y = bg6._y - gysy5;
bugenemy1._x = bg6._x - begx1;
bugenemy1._y = bg6._y - begy1;
bugenemy2._x = bg6._x - begx2;
bugenemy2._y = bg6._y - begy2;
bugenemy3._x = bg6._x - begx3;
bugenemy3._y = bg6._y - begy3;
wall.gotoAndStop(nero);
spring._x = bg6._x - springx;
spring._y = bg6._y - springy;
wall._x = bg6._x - wallx;
wall._y = bg6._y - wally;
bg6.wall.gotoAndStop(nero);
bg6.core.gotoAndStop(nero);
puzzle._x = bg6._x - pzx;
puzzle._y = bg6._y - pzy;
puzzle2._x = bg6._x - pzx2;
puzzle2._y = bg6._y - pzy2;
gauge.puzzle.count = puzzles;
portalway._x = bg6._x - portx;
portalway._y = bg6._y - porty;
tutorboxx._x = bg6._x - tbx;
tutorboxx._y = bg6._y - tby;
tutorboxx2._x = bg6._x - tbx2;
tutorboxx2._y = bg6._y - tby2;
crate._x = bg6._x - cratex;
crate._y = bg6._y - cratey;
puzzle2._x = bg6._x - pzx2;
puzzle2._y = bg6._y - pzy2;
gyrocannon1._x = bg6._x - gycanx1;
gyrocannon1._y = bg6._y - gycany1;
gyrocannon2._x = bg6._x - gycanx2;
gyrocannon2._y = bg6._y - gycany2;
gyrocannon3._x = bg6._x - gycanx3;
gyrocannon3._y = bg6._y - gycany3;
gyrocannon4._x = bg6._x - gycanx4;
gyrocannon4._y = bg6._y - gycany4;
gyrocannon5._x = bg6._x - gycanx5;
gyrocannon5._y = bg6._y - gycany5;
raincash._x = bg6._x - raicax;
raincash._y = bg6._y - raicay;
badguy1._x = bg6._x - badgx1;
badguy1._y = bg6._y - badgy1;
benzo1 += 1;
gauge.boc.count = bcash;
badguy2._x = bg6._x - badgx2;
badguy2._y = bg6._y - badgy2;
benzo2 += 1;
};
}
movieClip 1632 {
}
movieClip 1636 {
}
movieClip 1638 {
}
movieClip 1640 {
}
movieClip 1644 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1647 {
frame 1 {
stop();
}
}
movieClip 1649 {
}
movieClip 1653 {
}
movieClip 1655 {
}
movieClip 1658 {
}
movieClip 1659 {
}
movieClip 1661 {
}
movieClip 1663 {
}
movieClip 1666 {
}
movieClip 1667 {
}
movieClip 1668 {
}
movieClip 1672 {
}
movieClip 1674 {
}
movieClip 1675 {
}
movieClip 1677 {
}
movieClip 1678 {
}
movieClip 1680 {
}
movieClip 1681 {
}
instance raincash of movieClip 265 {
onClipEvent (enterFrame) {
if (_root.goalb2 == true) {
this.gotoAndStop(10);
}
}
}
movieClip 1683 {
}
movieClip 1685 {
}
movieClip 1687 {
}
movieClip 1689 {
}
movieClip 1690 {
frame 26 {
if (_root.spring._x > 0 && _root.spring._x < 600 && _root.spring._y > 0 && spring._y < 450) {
_root.chomp.play();
}
}
}
movieClip 1691 {
frame 1 {
stop();
}
}
movieClip 1693 {
}
movieClip 1694 {
}
movieClip 1696 {
}
movieClip 1698 {
}
movieClip 1699 {
}
movieClip 1701 {
}
movieClip 1702 {
}
movieClip 1704 {
}
movieClip 1714 {
frame 38 {
stop();
}
}
movieClip 1715 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 1718 {
}
movieClip 1719 {
}
movieClip 1721 {
}
movieClip 1722 {
}
movieClip 1724 {
}
movieClip 1726 {
}
movieClip 1727 {
}
movieClip 1728 {
frame 10 {
stop();
}
}
movieClip 1729 {
}
movieClip 1730 {
frame 1 {
stop();
}
frame 18 {
stop();
}
}
movieClip 1732 {
frame 1 {
stop();
}
frame 93 {
gotoAndPlay(81);
}
}
movieClip 1735 {
}
movieClip 1736 {
frame 20 {
stop();
}
}
movieClip 1737 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 1740 {
frame 55 {
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.data.goals1 = _root.goals1;
savefile.data.goals2 = _root.goals2;
savefile.data.goals3 = _root.goals3;
savefile.data.goals4 = _root.goals4;
savefile.data.achieva1 = _root.achieva1;
savefile.data.achieva2 = _root.achieva2;
savefile.data.achieva3 = _root.achieva3;
savefile.data.achieva4 = _root.achieva4;
savefile.data.achieva5 = _root.achieva5;
savefile.data.achieva6 = _root.achieva6;
savefile.data.achievb1 = _root.achievb1;
savefile.data.achievb2 = _root.achievb2;
savefile.data.achievb3 = _root.achievb3;
savefile.data.achievb4 = _root.achievb4;
savefile.data.achievb5 = _root.achievb5;
savefile.data.achievb6 = _root.achievb6;
savefile.data.achievc1 = _root.achievc1;
savefile.data.achievc2 = _root.achievc2;
savefile.data.achievc3 = _root.achievc3;
savefile.data.achievc4 = _root.achievc4;
savefile.data.achievc5 = _root.achievc5;
savefile.data.achievc6 = _root.achievc6;
savefile.flush();
}
frame 132 {
stop();
}
}
movieClip 1744 {
frame 290 {
stop();
}
}
instance of movieClip 1744 {
onClipEvent (load) {
this.swapDepths(9700);
}
}
movieClip 1748 {
}
movieClip 1752 {
}
movieClip 1753 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
frame 41 {
for (i in _root) {
_root[i].swapDepths(10102);
removeMovieClip(_root[i]);
}
delete eval(onEnterFrame());
}
frame 42 {
delete eval(onEnterFrame());
}
frame 43 {
if (qset == undefined) {
qset = 2;
}
if (qset == 2) {
_quality = 'Medium';
}
if (qset == 1) {
_quality = 'Low';
}
if (qset == 3) {
_quality = 'High';
}
}
frame 43 {
stop();
blue = 'blue';
pink = 'pink';
nero = 1;
renzo = 0;
bg7.core._visible = false;
bg7.trap._visible = false;
bg7.ceiling._visible = false;
bg7.wall._visible = false;
bg7.spikes._visible = false;
bg7.vines._visible = false;
if (weapon == undefined) {
weapon = 'boomerang';
hammer = true;
}
if (cash == undefined) {
cash = 0;
bcash = 0;
}
if (puzzles == undefined) {
puzzles = 0;
}
if (lives == undefined) {
lives = 9;
}
torial._visible = false;
benny = 0;
flly = 0;
torial.swapDepths(10001);
powertimer.swapDepths(9997);
tuto.swapDepths(9998);
pausemen.swapDepths(9999);
gauge.swapDepths(10000);
tran.swapDepths(50000);
wall.swapDepths(500);
arrows.swapDepths(502);
gameover.swapDepths(60000);
gyrocannon1.swapDepths(701);
gyrocannon2.swapDepths(702);
gyrocannon3.swapDepths(703);
gyrocannon4.swapDepths(704);
gyrocannon5.swapDepths(705);
trape = 0;
gate = false;
pause = false;
key._visible = true;
boomer = 1;
type = 'norm';
jump = 10;
ht = 0.5;
gyro.gotoAndPlay('jump');
mxy = gyro._y - 80;
mxbg7y = bg7._y;
motion = 7;
tutorialsc = true;
mxx = gyro._x + 70;
mnx = gyro._x - 120;
whiptimer = 50;
whipper = 40;
att = 0;
gen = 0.9300000000000001;
intx = bg7._x - gyro._x;
inty = bg7._y - gyro._y;
tbx = bg7._x - tutorboxx._x;
tby = bg7._y - tutorboxx._y;
tbx2 = bg7._x - tutorboxx2._x;
tby2 = bg7._y - tutorboxx2._y;
if (gletter == undefined) {
gletter = false;
}
if (yletter == undefined) {
yletter = false;
}
if (rletter == undefined) {
rletter = false;
}
if (oletter == undefined) {
oletter = false;
}
intymidg = midg._y;
portaled = false;
springx = bg7._x - spring._x;
springy = bg7._y - spring._y;
gysx1 = bg7._x - gyroswitch1._x;
gysy1 = bg7._y - gyroswitch1._y;
gysx2 = bg7._x - gyroswitch2._x;
gysy2 = bg7._y - gyroswitch2._y;
gysx3 = bg7._x - gyroswitch3._x;
gysy3 = bg7._y - gyroswitch3._y;
gysx4 = bg7._x - gyroswitch4._x;
gysy4 = bg7._y - gyroswitch4._y;
gysx5 = bg7._x - gyroswitch5._x;
gysy5 = bg7._y - gyroswitch5._y;
gyrotate1 = 1;
gyrotate2 = 1;
gyrotate3 = 1;
gyrotate4 = 1;
gyrotate5 = 1;
begx1 = bg7._x - bugenemy1._x;
begy1 = bg7._y - bugenemy1._y;
begx2 = bg7._x - bugenemy2._x;
begy2 = bg7._y - bugenemy2._y;
begx3 = bg7._x - bugenemy3._x;
begy3 = bg7._y - bugenemy3._y;
glx = bg7._x - lettery._x;
gly = bg7._y - lettery._y;
pzx = bg7._x - puzzle._x;
pzy = bg7._y - puzzle._y;
pzx2 = bg7._x - puzzle2._x;
pzy2 = bg7._y - puzzle2._y;
portx = bg7._x - portalway._x;
porty = bg7._y - portalway._y;
fgbx = bg7._x - flamebox._x;
fgby = bg7._y - flamebox._y;
badgx1 = bg7._x - badguy1._x;
badgy1 = bg7._y - badguy1._y;
badgix1 = badguy1._x;
badgiy1 = badguy1._y;
benzo1 = 0;
badgx2 = bg7._x - badguy2._x;
badgy2 = bg7._y - badguy2._y;
badgix2 = badguy2._x;
badgiy2 = badguy2._y;
benzo2 = 0;
bcoinbx1 = bg7._x - bcoinb1._x;
bcoinby1 = bg7._y - bcoinb1._y;
bcoinbx2 = bg7._x - bcoinb2._x;
bcoinby2 = bg7._y - bcoinb2._y;
bcoinbx3 = bg7._x - bcoinb3._x;
bcoinby3 = bg7._y - bcoinb3._y;
bcoinbx4 = bg7._x - bcoinb4._x;
bcoinby4 = bg7._y - bcoinb4._y;
bcoinbx5 = bg7._x - bcoinb5._x;
bcoinby5 = bg7._y - bcoinb5._y;
coinbx1 = bg7._x - coinb1._x;
coinby1 = bg7._y - coinb1._y;
coinbx2 = bg7._x - coinb2._x;
coinby2 = bg7._y - coinb2._y;
coinbx3 = bg7._x - coinb3._x;
coinby3 = bg7._y - coinb3._y;
coinbx4 = bg7._x - coinb4._x;
coinby4 = bg7._y - coinb4._y;
coinbx5 = bg7._x - coinb5._x;
coinby5 = bg7._y - coinb5._y;
coinbx6 = bg7._x - coinb6._x;
coinby6 = bg7._y - coinb6._y;
coinbx7 = bg7._x - coinb7._x;
coinby7 = bg7._y - coinb7._y;
coinbx8 = bg7._x - coinb8._x;
coinby8 = bg7._y - coinb8._y;
coinbx9 = bg7._x - coinb9._x;
coinby9 = bg7._y - coinb9._y;
coinbx10 = bg7._x - coinb10._x;
coinby10 = bg7._y - coinb10._y;
coinbx11 = bg7._x - coinb11._x;
coinby11 = bg7._y - coinb11._y;
coinbx12 = bg7._x - coinb12._x;
coinby12 = bg7._y - coinb12._y;
coinbx13 = bg7._x - coinb13._x;
coinby13 = bg7._y - coinb13._y;
coinbx14 = bg7._x - coinb14._x;
coinby14 = bg7._y - coinb14._y;
coinbx15 = bg7._x - coinb15._x;
coinby15 = bg7._y - coinb15._y;
coinbx16 = bg7._x - coinb16._x;
coinby16 = bg7._y - coinb16._y;
coinbx17 = bg7._x - coinb17._x;
coinby17 = bg7._y - coinb17._y;
coinbx18 = bg7._x - coinb18._x;
coinby18 = bg7._y - coinb18._y;
coinbx19 = bg7._x - coinb19._x;
coinby19 = bg7._y - coinb19._y;
coinbx20 = bg7._x - coinb20._x;
coinby20 = bg7._y - coinb20._y;
coinbx21 = bg7._x - coinb21._x;
coinby21 = bg7._y - coinb21._y;
coinbx22 = bg7._x - coinb22._x;
coinby22 = bg7._y - coinb22._y;
coinbx23 = bg7._x - coinb23._x;
coinby23 = bg7._y - coinb23._y;
coinbx24 = bg7._x - coinb24._x;
coinby24 = bg7._y - coinb24._y;
coinbx25 = bg7._x - coinb25._x;
coinby25 = bg7._y - coinb25._y;
coinbx26 = bg7._x - coinb26._x;
coinby26 = bg7._y - coinb26._y;
coinbx27 = bg7._x - coinb27._x;
coinby27 = bg7._y - coinb27._y;
coinbx28 = bg7._x - coinb28._x;
coinby28 = bg7._y - coinb28._y;
coinbx29 = bg7._x - coinb29._x;
coinby29 = bg7._y - coinb29._y;
coinbx30 = bg7._x - coinb30._x;
coinby30 = bg7._y - coinb30._y;
coinbx31 = bg7._x - coinb31._x;
coinby31 = bg7._y - coinb31._y;
coinbx32 = bg7._x - coinb32._x;
coinby32 = bg7._y - coinb32._y;
coinbx33 = bg7._x - coinb33._x;
coinby33 = bg7._y - coinb33._y;
coinbx34 = bg7._x - coinb34._x;
coinby34 = bg7._y - coinb34._y;
coinbx35 = bg7._x - coinb35._x;
coinby35 = bg7._y - coinb35._y;
coinbx36 = bg7._x - coinb36._x;
coinby36 = bg7._y - coinb36._y;
coinbx37 = bg7._x - coinb37._x;
coinby37 = bg7._y - coinb37._y;
coinbx38 = bg7._x - coinb38._x;
coinby38 = bg7._y - coinb38._y;
coinbx39 = bg7._x - coinb39._x;
coinby39 = bg7._y - coinb39._y;
coinbx40 = bg7._x - coinb40._x;
coinby40 = bg7._y - coinb40._y;
portaled = false;
magix = bg7._x - magicswitch._x;
magiy = bg7._y - magicswitch._y;
keyx = bg7._x - key._x;
keyy = bg7._y - key._y;
wallx = bg7._x - wall._x;
wally = bg7._y - wall._y;
cratex = bg7._x - crate._x;
cratey = bg7._y - crate._y;
push = 1;
raicax = bg7._x - raincash._x;
raicay = bg7._y - raincash._y;
gycanx1 = bg7._x - gyrocannon1._x;
gycany1 = bg7._y - gyrocannon1._y;
gycanx2 = bg7._x - gyrocannon2._x;
gycany2 = bg7._y - gyrocannon2._y;
gycanxx3 = bg7._x - gyrocannon3._x;
gycanx3 = bg7._x - gyrocannon3._x;
gycany3 = bg7._y - gyrocannon3._y;
gycanx4 = bg7._x - gyrocannon4._x;
gycany4 = bg7._y - gyrocannon4._y;
gycanx5 = bg7._x - gyrocannon5._x;
gycany5 = bg7._y - gyrocannon5._y;
gycanx6 = bg7._x - gyrocannon6._x;
gycany6 = bg7._y - gyrocannon6._y;
onEnterFrame = function () {
i = 0;
while (i <= 40) {
if (gyro.hitTest(_root['coinb' + i]) && _root['coinb' + i]._visible == true) {
cash += 1;
klepto += 1;
_root['coinb' + i].play();
_root['coinb' + i]._visible = true;
duplicateMovieClip('star' + pink, 'starz1', 1000);
starzx1 = bg7._x - gyro._x;
starzy1 = bg7._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz2', 1002);
starzx2 = bg7._x - gyro._x;
starzy2 = bg7._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz3', 1003);
starzx3 = bg7._x - gyro._x;
starzy3 = bg7._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz4', 1004);
starzx4 = bg7._x - gyro._x;
starzy4 = bg7._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz5', 1005);
starzx5 = bg7._x - gyro._x;
starzy5 = bg7._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz6', 1006);
starzx6 = bg7._x - gyro._x;
starzy6 = bg7._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
dupstar = 0;
score += 10;
}
if (gyro.hitTest(spring) && jump < 0) {
jump = 45;
ht = 0.99;
spring.play();
}
if (gyro.hitTest(raincash)) {
duplicateMovieClip(reward, 'reward1', 1999);
reward1._x = 300;
reward1._y = 200;
raincash.play();
goalb3 = true;
}
if (gyro.hitTest(_root['bcoinb' + i]) && _root['bcoinb' + i]._visible == true) {
bcash += 1;
_root['bcoinb' + i].play();
_root['bcoinb' + i]._visible = true;
gauge.boc.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg7._x - gyro._x;
starzy1 = bg7._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg7._x - gyro._x;
starzy2 = bg7._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg7._x - gyro._x;
starzy3 = bg7._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg7._x - gyro._x;
starzy4 = bg7._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg7._x - gyro._x;
starzy5 = bg7._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg7._x - gyro._x;
starzy6 = bg7._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
dupstar = 0;
score += 10;
}
if (gyro.hitTest(key) && key._visible == true) {
gate = true;
key._visible = false;
key.gotoAndStop(55);
}
if (gyro.hitTest(lettery) && yletter != true) {
yletter = true;
gyroletterx += 1;
lettery.gotoAndStop(55);
gauge.gyroletters.play();
duplicateMovieClip('star' + pink, 'starz1', 1000);
starzx1 = bg7._x - gyro._x;
starzy1 = bg7._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz2', 1002);
starzx2 = bg7._x - gyro._x;
starzy2 = bg7._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz3', 1003);
starzx3 = bg7._x - gyro._x;
starzy3 = bg7._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz4', 1004);
starzx4 = bg7._x - gyro._x;
starzy4 = bg7._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz5', 1005);
starzx5 = bg7._x - gyro._x;
starzy5 = bg7._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz6', 1006);
starzx6 = bg7._x - gyro._x;
starzy6 = bg7._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
score += 50;
}
if (gyro.hitTest(puzzle) && puzzle._visible == true) {
puzzles += 1;
puzzle._visible = false;
gauge.puzzle.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg7._x - gyro._x;
starzy1 = bg7._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg7._x - gyro._x;
starzy2 = bg7._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg7._x - gyro._x;
starzy3 = bg7._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg7._x - gyro._x;
starzy4 = bg7._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg7._x - gyro._x;
starzy5 = bg7._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg7._x - gyro._x;
starzy6 = bg7._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
score += 100;
}
if (portalway.core.hitTest(gyro._x, gyro._y, true) && portalway._visible == true && jump < 0) {
gyro.gotoAndStop('teleport');
portaled = true;
pause = true;
}
++i;
}
if (trap != true && gyro._y > mxy && aim != true && pause != true && renzo <= 0 || trap != true && renzo <= 0 && gyro._y <= mxy && bg7._y <= mxbg7y && pause != true && jump < 0 && aim != true || gyro._y > 400 && renzo <= 0 && pause != true && trap != true && bg7._y <= mxbg7y && aim != true) {
gyro._y -= jump;
jump -= ht;
}
if (trap != true && gyro._y <= mxy && aim != true && pause != true && renzo <= 0 || trap != true && renzo <= 0 && aim != true && gyro._y > 300 && pause != true && bg7._y > mxbg7y && jump < 0) {
bg7._y += jump;
midg._y += jump / 4;
jump -= ht;
}
if (Key.isDown(65) && pause != true && dead != true && climb != true && trap != true && ht == 0 && duck != true && aim != true && rope != true && whiptimer > whipper) {
jump = 10;
ht = 0.5;
gyro.gotoAndPlay('jump');
}
if (jump < -15) {
jump = -16;
}
if (Key.isDown(65) && pause != true && dead != true && climb != true && aim != true && trap != true && ht == 0 && duck == true && rope != true && whiptimer > whipper) {
jump = 11;
ht = 0.5;
duck = false;
motion = 0;
gyro.gotoAndPlay('boostjump');
}
if (Key.isDown(40) && pause != true && portaled != true && dead != true && climb != true && aim != true && trap != true && ht == 0 && rope != true && whiptimer > whipper && att == 0) {
duck = true;
gyro.gotoAndStop('duck');
}
if (!Key.isDown(40) && pause != true && portaled != true && dead != true && climb != true && trap != true && duck == true && rope != true && whiptimer > whipper && att == 0) {
duck = false;
gyro.gotoAndStop(1);
}
if (bg7.core.hitTest(gyro._x, gyro._y + 25, true) && dead != true && climb != true && jump < -3 && whiptimer > whipper && att == 0) {
gyro.gotoAndStop(1);
jump = 0;
motion = 7;
att = 0;
foforestore = false;
ht = 0;
fliper = 1;
gyrocannon1.gotoAndStop(1);
gyrocannon2.gotoAndStop(1);
gyrocannon3.gotoAndStop(1);
gyrocannon4.gotoAndStop(1);
gyrocannon5.gotoAndStop(1);
ken = false;
}
if (!bg7.core.hitTest(gyro._x, gyro._y + 35, true) && portaled != true && dead != true && climb != true && ht == 0 && rope != true && whiptimer > whipper && att == 0) {
gyro.gotoAndPlay('ballup');
ht = 0.5;
}
for (;;) {
if (!(bg7.core.hitTest(gyro._x, gyro._y + 25, true) && jump < 0.7 && whiptimer > whipper)) break;
gyro._y -= 0.1;
}
for (;;) {
if (!(bg7.ceiling.hitTest(gyro._x, gyro._y - 35, true) && jump > 0 && whiptimer > whipper)) break;
gyro._y -= 0.1;
jump -= 3;
}
if (Key.isDown(39) && gyro._x > 0 && gyro._x < 600 && pause != true && portaled != true && dead != true && climb != true && trap != true && duck != true && aim != true && gyro._x <= mxx && rope != true && whiptimer > whipper && att == 0) {
gyro.play();
goright = true;
goleft = false;
gyro._x += motion / push;
bobob = 90;
gyro._xscale = 50;
}
if (Key.isDown(37) && gyro._x > 0 && gyro._x < 600 && pause != true && portaled != true && dead != true && climb != true && trap != true && duck != true && aim != true && gyro._x >= mnx && rope != true && whiptimer > whipper && att == 0) {
gyro.play();
goleft = true;
goright = false;
gyro._x -= motion / push;
bobob = -90;
gyro._xscale = -50;
}
if (Key.isDown(39) && gyro._x > 0 && gyro._x < 600 && pause != true && portaled != true && dead != true && climb != true && trap != true && duck != true && aim != true && gyro._x > mxx && rope != true && whiptimer > whipper && att == 0) {
gyro.play();
goright = true;
goleft = false;
bg7._x -= motion / push;
midg._x -= motion / 30;
bobob = 90;
gyro._xscale = 50;
}
if (Key.isDown(37) && gyro._x > 0 && gyro._x < 600 && pause != true && portaled != true && dead != true && climb != true && trap != true && duck != true && aim != true && gyro._x < mnx && rope != true && whiptimer > whipper && att == 0) {
gyro.play();
goleft = true;
goright = false;
bobob = -90;
bg7._x += motion / push;
midg._x += motion / 30;
gyro._xscale = -50;
}
if (!Key.isDown(37) && pause != true && pause != true && dead != true && climb != true && ht == 0 && trap != true && duck != true && aim != true && goleft == true && rope != true && whiptimer > whipper && att == 0) {
gyro.gotoAndStop(1);
goleft = false;
}
if (!Key.isDown(39) && pause != true && pause != true && dead != true && climb != true && ht == 0 && trap != true && duck != true && aim != true && goright == true && rope != true && whiptimer > whipper && att == 0) {
gyro.gotoAndStop(1);
goright = false;
}
if (Key.isDown(65)) {
bleckx = true;
}
if (!Key.isDown(65)) {
bleckx = false;
}
if (trap != true && pause != true && portaled != true && climb != true) {
bg7._x -= att;
midg._x -= att / 30;
}
if (bg7.spikes.hitTest(gyro._x, gyro._y + 30, true) && gyro._y < 400) {
att = 0;
jump = 0;
midg._y = intymidg;
lives -= 1;
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg7._x - gyro._x;
starzy1 = bg7._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg7._x - gyro._x;
starzy2 = bg7._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg7._x - gyro._x;
starzy3 = bg7._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg7._x - gyro._x;
starzy4 = bg7._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg7._x - gyro._x;
starzy5 = bg7._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg7._x - gyro._x;
starzy6 = bg7._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
gauge.gorp.play();
gyro._x = bg7._x - intx;
gyro._y = bg7._y - inty;
}
if (bg7.laser.core.hitTest(gyro)) {
att = 0;
lives -= 1;
bg7.laser.gotoAndPlay('chomp');
renzo = 140;
gyrodie.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg7._x - gyro._x;
starzy1 = bg7._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg7._x - gyro._x;
starzy2 = bg7._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
gyro._x = bg7._x - intx;
gyro._y = bg7._y - inty;
}
if (bg7.laser2.core.hitTest(gyro)) {
att = 0;
bg7.laser2.gotoAndPlay('chomp');
renzo = 140;
lives -= 1;
gyrodie.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg7._x - gyro._x;
starzy1 = bg7._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg7._x - gyro._x;
starzy2 = bg7._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
gyro._x = bg7._x - intx;
gyro._y = bg7._y - inty;
}
if (bg7.laser3.core.hitTest(gyro)) {
att = 0;
bg7.laser3.gotoAndPlay('chomp');
renzo = 140;
lives -= 1;
gyrodie.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg7._x - gyro._x;
starzy1 = bg7._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg7._x - gyro._x;
starzy2 = bg7._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
gyro._x = bg7._x - intx;
gyro._y = bg7._y - inty;
}
if (bg7.laser4.core.hitTest(gyro)) {
att = 0;
gyrodie.play();
lives -= 1;
bg7.laser4.gotoAndPlay('chomp');
renzo = 140;
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg7._x - gyro._x;
starzy1 = bg7._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg7._x - gyro._x;
starzy2 = bg7._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
gyro._x = bg7._x - intx;
gyro._y = bg7._y - inty;
}
if (bg7.laser5.core.hitTest(gyro)) {
att = 0;
gyrodie.play();
lives -= 1;
bg7.laser5.gotoAndPlay('chomp');
renzo = 140;
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg7._x - gyro._x;
starzy1 = bg7._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg7._x - gyro._x;
starzy2 = bg7._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
gyro._x = bg7._x - intx;
gyro._y = bg7._y - inty;
}
if (bg7.laser6.core.hitTest(gyro)) {
att = 0;
bg7.laser6.gotoAndPlay('chomp');
renzo = 140;
lives -= 1;
gyrodie.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg7._x - gyro._x;
starzy1 = bg7._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg7._x - gyro._x;
starzy2 = bg7._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
gyro._x = bg7._x - intx;
gyro._y = bg7._y - inty;
}
if (bg7.laser7.core.hitTest(gyro)) {
att = 0;
gyrodie.play();
lives -= 1;
bg7.laser7.gotoAndPlay('chomp');
renzo = 50;
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg7._x - gyro._x;
starzy1 = bg7._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg7._x - gyro._x;
starzy2 = bg7._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
gyro._x = bg7._x - intx;
gyro._y = bg7._y - inty;
}
if (bg7.wall.hitTest(gyro._x + 20, gyro._y, true)) {
gyro._x -= motion;
att = 0;
}
while (bg7.wall.hitTest(gyro._x + 20, gyro._y, true)) {
gyro._x -= 0.1;
}
if (bg7.wall.hitTest(gyro._x - 20, gyro._y, true)) {
att = 0;
gyro._x += motion;
}
while (bg7.wall.hitTest(gyro._x - 20, gyro._y, true)) {
gyro._x += 0.1;
}
if (gyro._y < 200 && renzo <= 0 && aim != true && trap != true && ht == 0 && dead != true && climb != true) {
gyro._y += bett / 5;
bg7._y += bett / 5;
midg._y += bett / 40;
}
if (bg7._y <= mxbg7y) {
bg7._y = mxbg7y;
}
if (gyro._y > 330 && renzo <= 0 && aim != true && bg7._y > mxbg7y && dead != true) {
gyro._y += bett;
bg7._y += bett;
midg._y += bett / 40;
}
if (gyro._y < 300 && renzo <= 0 && aim != true && trap == true && dead != true && climb != true) {
gyro._y += bett / 3;
bg7._y += bett / 3;
midg._y += bett / 40;
}
if (gyro._y < 200 && renzo <= 0 && aim != true && gyrocannon == true && dead != true && climb != true) {
gyro._y += bett / 3;
bg7._y += bett / 3;
midg._y += bett / 40;
}
if (pause != true) {
bett = (330 - gyro._y) / 5;
renzo -= 1;
}
if (gyro._x < mnx - 60 && bleco <= 0 && renzo <= 0) {
bg7._x += mot / 23;
midg._x += mot / 680;
gyro._x += mot / 23;
}
if (gyro._x > mxx + 60 && bleco <= 0 && renzo <= 0) {
bg7._x += mot / 23;
midg._x += mot / 680;
gyro._x += mot / 23;
}
if (midg._y <= intymidg) {
midg._y = intymidg;
}
if (benny < score) {
benny += 1;
}
if (pause != true) {
starzx1 += starburst1;
starburst1 *= 0.94;
starzy1 += starjump1;
starjump1 -= 0.5;
starzx2 += starburst2;
starburst2 *= 0.94;
starzy2 += starjump2;
starjump2 -= 0.5;
starzx3 += starburst3;
starburst3 *= 0.94;
starzy3 += starjump3;
starjump3 -= 0.5;
starzx4 += starburst4;
starburst4 *= 0.94;
starzy4 += starjump4;
starjump4 -= 0.5;
starzx5 += starburst5;
starburst5 *= 0.94;
starzy5 += starjump5;
starjump5 -= 0.5;
starzx6 += starburst6;
starburst6 *= 0.94;
starzy6 += starjump6;
starjump6 -= 0.5;
}
if (bg7.vines.hitTest(gyro._x, gyro._y, true) && dead != true && climb != true && Key.isDown(38)) {
climb = true;
ht = 0;
jump = 0;
gyro.gotoAndStop('climb');
}
if (bg7.vines.hitTest(gyro._x, gyro._y, true) && gyro._x > 0 && gyro._x < 600 && dead != true && climb == true && Key.isDown(65) && pukpuk != true || !bg7.vines.hitTest(gyro._x, gyro._y, true) && dead != true && climb == true) {
climb = false;
gyro.gotoAndPlay('jump');
jump = 5;
pukpuk = true;
climb = false;
}
if (jump < -4) {
pukpuk = false;
}
if (trap != true && dead != true && gyro._x > 0 && gyro._x < 600 && gyro._x < mxx && climb == true && Key.isDown(39)) {
gyro._x += 2;
ht = 0;
jump = 0;
gyro.play();
gogo = true;
}
if (trap != true && dead != true && gyro._x > 0 && gyro._x < 600 && gyro._x > mnx && climb == true && Key.isDown(37)) {
gyro._x -= 2;
gyro.play();
gogo = true;
}
if (trap != true && dead != true && gyro._x > 0 && gyro._x < 600 && gyro._x >= mxx && climb == true && Key.isDown(39)) {
bg7._x -= 2;
gyro.play();
gogo = true;
}
if (trap != true && dead != true && gyro._x > 0 && gyro._x < 600 && gyro._x <= mnx && climb == true && Key.isDown(37)) {
bg7._x += 2;
gyro.play();
gogo = true;
}
if (trap != true && dead != true && gyro._x > 0 && gyro._x < 600 && gyro._y < 230 && climb == true && Key.isDown(40)) {
gyro._y += 2;
gyro.play();
gogo = true;
}
if (trap != true && dead != true && gyro._x > 0 && gyro._x < 600 && gyro._y > 130 && climb == true && Key.isDown(38)) {
gyro._y -= 2;
ht = 0;
jump = 0;
gyro.play();
gogo = true;
}
if (trap != true && dead != true && gyro._x > 0 && gyro._x < 600 && gyro._y >= 230 && climb == true && Key.isDown(40)) {
bg7._y -= 2;
midg._y -= 0.06666666666666667;
gyro.play();
gogo = true;
}
if (trap != true && dead != true && gyro._x > 0 && gyro._x < 600 && gyro._y <= 130 && climb == true && Key.isDown(38)) {
bg7._y += 2;
midg._y += 0.06666666666666667;
ht = 0;
jump = 0;
gyro.play();
gogo = true;
}
if (!Key.isDown(38) && !Key.isDown(40) && !Key.isDown(39) && !Key.isDown(37) && gogo == true && climb == true) {
gyro.gotoAndStop('climb');
}
if (gyro._y > 1700 && lives > 0 && renzo <= 0 && foforestore != true) {
lives -= 1;
midg._y = intymidg;
gauge.gorp.play();
foforestore = true;
gyro._x = bg7._x - intx;
gyro._y = -bg7._y - inty;
}
if (lives <= 0) {
gameover.play();
portaled = true;
pause = true;
}
if (bg7.trap.hitTest(gyro._x, gyro._y - 30, true) && trap != true && ken != true && jump <= 0) {
trap = true;
gyrocannon1.gotoAndStop(1);
gyrocannon2.gotoAndStop(1);
gyrocannon3.gotoAndStop(1);
gyrocannon4.gotoAndStop(1);
gyrocannon5.gotoAndStop(1);
stt = 0;
trape = 1;
motion = 9;
jump = 0;
ht = 0;
}
for (;;) {
if (!(bg7.trap.hitTest(gyro._x, gyro._y - 30, true) && jump <= 1)) break;
gyro._y -= 0.1;
}
if (trape > 100) {
trape = 2;
}
if (trap == true) {
gyro.bob.bobo.gotoAndStop(Math.round(fliper));
gyro.gotoAndStop('trapeze');
gyro.trap.gotoAndStop(Math.round(trape));
}
if (Key.isDown(65) && trap == true && pause != true && portaled != true && gyrocannon != true) {
folgot = true;
trape += fliper / 4;
fliper += 0.2;
swingsound.play();
}
if (fliper > 15) {
fliper = 15;
}
if (!Key.isDown(65) && folgot == true && trap == true && pause != true && portaled != true && gyrocannon != true) {
jump = fliper * 1.4;
trap = false;
folgot = false;
swingsound.gotoAndStop(1);
ken = true;
gyro.gotoAndPlay('ballup');
ht = 0.7;
}
if (jump < 0) {
ken = false;
}
if (trap != true) {
whiptimer += 1;
boomx1 -= trajectoryx1;
boomy1 += trajectoryy1;
trajectoryx1 -= ben;
trajectoryy1 -= ken;
boomtimer += 1;
dupstar += 1;
}
if (boomerang1._x > gyro._x) {
ben = 0.5;
}
if (boomerang1._x < gyro._x) {
ben = -0.5;
}
if (boomerang1._y > gyro._y + 20) {
ken = -0.5;
}
if (boomerang1._y < gyro._y - 20) {
ken = 0.5;
}
if (boomerang1._y < gyro._y + 20 && boomerang1._y > gyro._y - 20) {
ken = 0;
trajectoryy1 = 0;
}
if (boomer <= 0 && dupstar > 5) {
duplicateMovieClip('star' + type, 'star' + stardu, stardu + 100);
_root['starx' + stardu] = bg7._x - boomerang1._x;
_root['stary' + stardu] = bg7._y - boomerang1._y;
_root['star' + stardu]._rotation = Math.random() * 360;
stardu += 1;
dupstar = 0;
}
if (stardu > 5) {
stardu = 1;
}
if (Key.isDown(83) && pause != true && dead != true && climb != true && jump <= 0 && ht == 0 && rope != true && aim != true && boomer > 0 && trap != true && duck != true && aim != true && whiptimer > whipper) {
aim = true;
dupstar = 0;
ror = 0;
}
if (aim == true) {
gyro.gotoAndStop('aim');
arrows._x = gyro._x;
arrows._y = gyro._y;
arrows._visible = true;
arrows._rotation = ror * (gyro._xscale / 50);
arrows._xscale = gyro._xscale * 1.25;
}
if (aim != true) {
arrows._visible = false;
}
if (aim == true && Key.isDown(40) && ror < 70) {
ror += 5;
arrows.play();
}
if (aim == true && Key.isDown(38) && ror > -70) {
ror -= 5;
arrows.play();
}
if (nero <= 1 && boomerang1._x > gyro._x - 50 && boomerang1._x < gyro._x + 50 && boomerang1._y > gyro._y - 50 && boomerang1._y < gyro._y + 50 && boomtimer > 50) {
boomer = 1;
zex = false;
fololol = false;
gyroswitch1.gotoAndStop(1);
gyroswitch2.gotoAndStop(1);
removeMovieClip(boomerang1);
}
if (nero > 1 && boomerang1._x > gyro._x - 50 && boomerang1._x < gyro._x + 50 && boomerang1._y > gyro._y - 50 && boomerang1._y < gyro._y + 50 && boomtimer > 50) {
boomer = 1;
zex = false;
removeMovieClip(boomerang1);
}
if (!Key.isDown(83) && pause != true && aim == true && trap != true && boomer > 0 && whiptimer > whipper && duck != true) {
duplicateMovieClip('boomerang' + type, 'boomerang' + boomer, 200 + boomer);
stardu = 1;
_root['boomx' + boomer] = bg7._x - gyro._x;
_root['boomy' + boomer] = bg7._y - gyro._y - 50 * Math.sin(ror * 0.0174532925199433);
gyro.gotoAndPlay('boomerang');
_root['trajectoryx' + boomer] = 20 * Math.cos(ror * 0.0174532925199433) * (gyro._xscale / 50);
_root['glip' + boomer] = 1 * (gyro._xscale / 80);
_root['trajectoryy' + boomer] = -20 * Math.sin(ror * 0.0174532925199433);
_root['boomacc' + boomer] = 0;
aim = false;
ht = 0;
jump = 0;
ben = 0.5;
ken = 0.5;
boomer = 0;
whiptimer = 0;
whipper = 20;
boomtimer = 0;
}
if (boomerang1.hitTest(gyroswitch1)) {
gyroswitch1.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg7._x - gyroswitch1._x;
starzy1 = bg7._y - gyroswitch1._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg7._x - gyroswitch1._x;
starzy2 = bg7._y - gyroswitch1._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg7._x - gyroswitch1._x;
starzy3 = bg7._y - gyroswitch1._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg7._x - gyroswitch1._x;
starzy4 = bg7._y - gyroswitch1._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg7._x - gyroswitch1._x;
starzy5 = bg7._y - gyroswitch1._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg7._x - gyroswitch1._x;
starzy6 = bg7._y - gyroswitch1._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
nero = 2;
}
if (boomerang1.hitTest(gyroswitch2)) {
gyroswitch2.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg7._x - gyroswitch2._x;
starzy1 = bg7._y - gyroswitch2._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg7._x - gyroswitch2._x;
starzy2 = bg7._y - gyroswitch2._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg7._x - gyroswitch2._x;
starzy3 = bg7._y - gyroswitch2._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg7._x - gyroswitch2._x;
starzy4 = bg7._y - gyroswitch2._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg7._x - gyroswitch2._x;
starzy5 = bg7._y - gyroswitch2._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg7._x - gyroswitch2._x;
starzy6 = bg7._y - gyroswitch2._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
nero = 3;
}
if (!Key.isDown(67)) {
cohert = false;
}
if (Key.isDown(67) && cohert != true && portaled != true && pause != true && portaled != true) {
pause = true;
cohert = true;
gyro.stop();
}
if (Key.isDown(67) && cohert != true && pause == true) {
pause = false;
cohert = true;
}
if (pause == true && portaled != true && torial._visible != true) {
gyro.stop();
gauge.boc.gotoAndPlay(60);
pausemen._visible = true;
gauge.puzzle.gotoAndPlay(60);
gauge.gyroletters.gotoAndPlay(60);
gyro.goop.gotoAndPlay(1);
}
if (pause != true && portaled != true && torial._visible != true) {
pausemen._visible = false;
}
if (pause != true && portaled != true) {
gyrotate1 -= 1;
gyrotate2 -= 1;
gyrotate3 -= 1;
gyrotate4 -= 1;
gyrotate5 -= 1;
gyrotate6 -= 1;
benzogo = (300 - gyro._x) / 25;
}
if (gyrocannon == true) {
gyro._x = _root['gyrocannon' + gyrock]._x;
gyro._y = _root['gyrocannon' + gyrock]._y;
}
if (gyrocannon == true && gyro._x > 370 || gyrocannon == true && gyro._x < 330) {
bg7._x += benzogo;
}
if (gyro.hitTest(gyrocannon1) && gyrotate1 <= 0 && gyrocannon != true) {
gyrocannon = true;
gyrock = 1;
gyrocannon1.play();
}
if (gyrock == 1 && pause != true && portaled != true) {
gyrocannon1._rotation += 4;
}
if (gyrock == 2 && pause != true && portaled != true) {
gyrocannon2._rotation += 4;
}
if (gyrock == 3 && pause != true && portaled != true) {
gyrocannon3._rotation -= 4;
}
if (gyrock == 5 && pause != true && portaled != true) {
gyrocannon5._rotation -= 4;
}
if (gyrock == 4 && pause != true && portaled != true) {
gyrocannon4._rotation += 4;
}
if (jump > 13 || jump < -13) {
att = 0;
}
if (jump > 13 && ht < 0.5 || jump < -13 && ht < 0.5) {
att = 0;
ht = 0.5;
}
if (att > 13 || att < -13 || portaled == true) {
jump = 0;
ht = 0;
}
if (pause != true) {
fogo3 += 1;
}
if (Key.isDown(65) && gyrotate <= 0 && gyrock == 1 && pause != true && portaled != true) {
att = 25 * Math.cos(gyrocannon1._rotation * 0.0174532925199433);
jump = -30 * Math.sin(gyrocannon1._rotation * 0.0174532925199433);
ht = 0.1;
gyro._xscale = 50;
gyrocannon1.play();
gyro.gotoAndPlay('ballup');
gyrocannon1.play();
gyrock = 0;
gyrocannon = false;
gyrotate1 = 60;
}
if (Key.isDown(65) && gyrotate <= 0 && gyrock == 2 && pause != true && portaled != true) {
att = 25 * Math.cos(gyrocannon2._rotation * 0.0174532925199433);
jump = -30 * Math.sin(gyrocannon2._rotation * 0.0174532925199433);
ht = 0.1;
gyro._xscale = 50;
gyrocannon2.play();
gyro.gotoAndPlay('ballup');
gyrocannon2.play();
gyrock = 0;
gyrocannon = false;
gyrotate2 = 60;
}
if (Key.isDown(65) && gyrotate <= 0 && gyrock == 4 && pause != true && portaled != true) {
att = 25 * Math.cos(gyrocannon4._rotation * 0.0174532925199433);
jump = -30 * Math.sin(gyrocannon4._rotation * 0.0174532925199433);
ht = 0.1;
gyro._xscale = 50;
gyrocannon4.play();
gyro.gotoAndPlay('ballup');
gyrocannon4.play();
gyrock = 0;
gyrocannon = false;
gyrotate4 = 60;
}
if (Key.isDown(65) && gyrotate <= 0 && gyrock == 3 && pause != true && portaled != true) {
att = 25 * Math.cos(gyrocannon3._rotation * 0.0174532925199433);
jump = -30 * Math.sin(gyrocannon3._rotation * 0.0174532925199433);
ht = 0.1;
gyro._xscale = 50;
gyrocannon3.play();
gyro.gotoAndPlay('ballup');
gyrocannon3.play();
gyrock = 0;
gyrocannon = false;
gyrotate3 = 60;
}
if (Key.isDown(65) && gyrotate <= 0 && gyrock == 5 && pause != true && portaled != true) {
att = 25 * Math.cos(gyrocannon5._rotation * 0.0174532925199433);
jump = -30 * Math.sin(gyrocannon5._rotation * 0.0174532925199433);
ht = 0.1;
gyro._xscale = 50;
gyrocannon5.play();
gyro.gotoAndPlay('ballup');
gyrocannon5.play();
gyrock = 0;
gyrocannon = false;
gyrotate5 = 60;
}
if (Key.isDown(65) && gyrotate <= 0 && gyrock == 6 && pause != true && portaled != true) {
jump = 40;
ht = 0.5;
gyro._xscale = 50;
gyrocannon5.play();
gyro.gotoAndPlay('ballup');
gyrocannon6.play();
gyrock = 0;
gyrocannon = false;
gyrotate6 = 60;
}
if (gyro.hitTest(gyrocannon2) && gyrotate2 <= 0 && gyrocannon != true) {
gyrocannon = true;
gyrock = 2;
gyrocannon2.play();
flly = 0;
att = 0;
gyrotate2 = 60;
}
if (gyro.hitTest(gyrocannon3) && gyrotate3 <= 0 && gyrocannon != true) {
gyrocannon = true;
gyrock = 3;
gyrocannon3.play();
fogo3 = 0;
flly = 0;
att = 0;
gyrotate3 = 60;
}
if (gyro.hitTest(gyrocannon4) && gyrotate4 <= 0 && gyrocannon != true) {
gyrocannon = true;
gyrock = 4;
gyrocannon4.play();
fogo4 = 0;
flly = 0;
att = 0;
gyrotate4 = 60;
}
if (gyro.hitTest(gyrocannon5) && gyrotate5 <= 0 && gyrocannon != true) {
gyrocannon = true;
gyrock = 5;
gyrocannon5.play();
fogo5 = 0;
flly = 0;
att = 0;
gyrotate5 = 60;
}
if (gyro.hitTest(gyrocannon6) && gyrotate6 <= 0 && gyrocannon != true) {
gyrocannon = true;
gyrock = 6;
gyrocannon6.play();
fogo5 = 0;
flly = 0;
att = 0;
}
if (dead == true) {
jump = 0;
ht = 0;
}
if (pause == true) {
_quality = 'High';
}
if (pause != true && qset >= 3) {
_quality = 'High';
}
if (pause != true && qset == 2) {
_quality = 'Medium';
}
if (pause != true && qset <= 1) {
_quality = 'Low';
}
boomerang1._x = bg7._x - boomx1;
boomerang1._y = bg7._y - boomy1;
star1._x = bg7._x - starx1;
star1._y = bg7._y - stary1;
star2._x = bg7._x - starx2;
star2._y = bg7._y - stary2;
star3._x = bg7._x - starx3;
star3._y = bg7._y - stary3;
star4._x = bg7._x - starx4;
star4._y = bg7._y - stary4;
star5._x = bg7._x - starx5;
star5._y = bg7._y - stary5;
gauge.blade.gotoAndStop(weapon);
bcoinb1._x = bg7._x - bcoinbx1;
bcoinb1._y = bg7._y - bcoinby1;
bcoinb2._x = bg7._x - bcoinbx2;
bcoinb2._y = bg7._y - bcoinby2;
bcoinb3._x = bg7._x - bcoinbx3;
bcoinb3._y = bg7._y - bcoinby3;
bcoinb4._x = bg7._x - bcoinbx4;
bcoinb4._y = bg7._y - bcoinby4;
bcoinb5._x = bg7._x - bcoinbx5;
bcoinb5._y = bg7._y - bcoinby5;
coinb1._x = bg7._x - coinbx1;
coinb1._y = bg7._y - coinby1;
coinb2._x = bg7._x - coinbx2;
coinb2._y = bg7._y - coinby2;
coinb3._x = bg7._x - coinbx3;
coinb3._y = bg7._y - coinby3;
coinb4._x = bg7._x - coinbx4;
coinb4._y = bg7._y - coinby4;
coinb5._x = bg7._x - coinbx5;
coinb5._y = bg7._y - coinby5;
coinb6._x = bg7._x - coinbx6;
coinb6._y = bg7._y - coinby6;
coinb7._x = bg7._x - coinbx7;
coinb7._y = bg7._y - coinby7;
coinb8._x = bg7._x - coinbx8;
coinb8._y = bg7._y - coinby8;
coinb9._x = bg7._x - coinbx9;
coinb9._y = bg7._y - coinby9;
coinb10._x = bg7._x - coinbx10;
coinb10._y = bg7._y - coinby10;
coinb11._x = bg7._x - coinbx11;
coinb11._y = bg7._y - coinby11;
coinb12._x = bg7._x - coinbx12;
coinb12._y = bg7._y - coinby12;
coinb13._x = bg7._x - coinbx13;
coinb13._y = bg7._y - coinby13;
coinb14._x = bg7._x - coinbx14;
coinb14._y = bg7._y - coinby14;
coinb15._x = bg7._x - coinbx15;
coinb15._y = bg7._y - coinby15;
coinb16._x = bg7._x - coinbx16;
coinb16._y = bg7._y - coinby16;
coinb17._x = bg7._x - coinbx17;
coinb17._y = bg7._y - coinby17;
coinb18._x = bg7._x - coinbx18;
coinb18._y = bg7._y - coinby18;
coinb19._x = bg7._x - coinbx19;
coinb19._y = bg7._y - coinby19;
coinb20._x = bg7._x - coinbx20;
coinb20._y = bg7._y - coinby20;
coinb21._x = bg7._x - coinbx21;
coinb21._y = bg7._y - coinby21;
coinb22._x = bg7._x - coinbx22;
coinb22._y = bg7._y - coinby22;
coinb23._x = bg7._x - coinbx23;
coinb23._y = bg7._y - coinby23;
coinb24._x = bg7._x - coinbx24;
coinb24._y = bg7._y - coinby24;
coinb25._x = bg7._x - coinbx25;
coinb25._y = bg7._y - coinby25;
coinb26._x = bg7._x - coinbx26;
coinb26._y = bg7._y - coinby26;
coinb27._x = bg7._x - coinbx27;
coinb27._y = bg7._y - coinby27;
coinb28._x = bg7._x - coinbx28;
coinb28._y = bg7._y - coinby28;
coinb29._x = bg7._x - coinbx29;
coinb29._y = bg7._y - coinby29;
coinb30._x = bg7._x - coinbx30;
coinb30._y = bg7._y - coinby30;
coinb31._x = bg7._x - coinbx31;
coinb31._y = bg7._y - coinby31;
coinb32._x = bg7._x - coinbx32;
coinb32._y = bg7._y - coinby32;
coinb33._x = bg7._x - coinbx33;
coinb33._y = bg7._y - coinby33;
coinb34._x = bg7._x - coinbx34;
coinb34._y = bg7._y - coinby34;
coinb35._x = bg7._x - coinbx35;
coinb35._y = bg7._y - coinby35;
coinb36._x = bg7._x - coinbx36;
coinb36._y = bg7._y - coinby36;
coinb37._x = bg7._x - coinbx37;
coinb37._y = bg7._y - coinby37;
coinb38._x = bg7._x - coinbx38;
coinb38._y = bg7._y - coinby38;
coinb39._x = bg7._x - coinbx39;
coinb39._y = bg7._y - coinby39;
coinb40._x = bg7._x - coinbx40;
coinb40._y = bg7._y - coinby40;
magicswitch._x = bg7._x - magix;
magicswitch._y = bg7._y - magiy;
gauge.lives = lives;
gauge.cash = cash;
gauge.score = benny;
starz1._x = bg7._x - starzx1;
starz1._y = bg7._y - starzy1;
starz2._x = bg7._x - starzx2;
starz2._y = bg7._y - starzy2;
starz3._x = bg7._x - starzx3;
starz3._y = bg7._y - starzy3;
starz4._x = bg7._x - starzx4;
starz4._y = bg7._y - starzy4;
starz5._x = bg7._x - starzx5;
starz5._y = bg7._y - starzy5;
starz6._x = bg7._x - starzx6;
starz6._y = bg7._y - starzy6;
flamebox._x = bg7._x - fgbx;
flamebox._y = bg7._y - fgby;
mot = 300 - gyro._x;
key._x = bg7._x - keyx;
key._y = bg7._y - keyy;
lettery._x = bg7._x - glx;
lettery._y = bg7._y - gly;
gauge.gyroletters.letterg._visible = gletter;
gauge.gyroletters.lettery._visible = yletter;
gauge.gyroletters.letterr._visible = rletter;
gauge.gyroletters.lettero._visible = oletter;
portalway._visible = gate;
gyroswitch1._x = bg7._x - gysx1;
gyroswitch1._y = bg7._y - gysy1;
gyroswitch2._x = bg7._x - gysx2;
gyroswitch2._y = bg7._y - gysy2;
gyroswitch3._x = bg7._x - gysx3;
gyroswitch3._y = bg7._y - gysy3;
gyroswitch4._x = bg7._x - gysx4;
gyroswitch4._y = bg7._y - gysy4;
gyroswitch5._x = bg7._x - gysx5;
gyroswitch5._y = bg7._y - gysy5;
gyroswitch6._x = bg7._x - gysx6;
gyroswitch6._y = bg7._y - gysy6;
bugenemy1._x = bg7._x - begx1;
bugenemy1._y = bg7._y - begy1;
bugenemy2._x = bg7._x - begx2;
bugenemy2._y = bg7._y - begy2;
bugenemy3._x = bg7._x - begx3;
bugenemy3._y = bg7._y - begy3;
wall.gotoAndStop(nero);
spring._x = bg7._x - springx;
spring._y = bg7._y - springy;
wall._x = bg7._x - wallx;
wall._y = bg7._y - wally;
bg7.wall.gotoAndStop(nero);
bg7.core.gotoAndStop(nero);
puzzle._x = bg7._x - pzx;
puzzle._y = bg7._y - pzy;
puzzle2._x = bg7._x - pzx2;
puzzle2._y = bg7._y - pzy2;
gauge.puzzle.count = puzzles;
portalway._x = bg7._x - portx;
portalway._y = bg7._y - porty;
tutorboxx._x = bg7._x - tbx;
tutorboxx._y = bg7._y - tby;
tutorboxx2._x = bg7._x - tbx2;
tutorboxx2._y = bg7._y - tby2;
crate._x = bg7._x - cratex;
crate._y = bg7._y - cratey;
puzzle2._x = bg7._x - pzx2;
puzzle2._y = bg7._y - pzy2;
gyrocannon1._x = bg7._x - gycanx1;
gyrocannon1._y = bg7._y - gycany1;
gyrocannon2._x = bg7._x - gycanx2;
gyrocannon2._y = bg7._y - gycany2;
gyrocannon3._x = bg7._x - gycanx3;
gyrocannon3._y = bg7._y - gycany3;
gyrocannon4._x = bg7._x - gycanx4;
gyrocannon4._y = bg7._y - gycany4;
gyrocannon5._x = bg7._x - gycanx5;
gyrocannon5._y = bg7._y - gycany5;
raincash._x = bg7._x - raicax;
raincash._y = bg7._y - raicay;
badguy1._x = bg7._x - badgx1;
badguy1._y = bg7._y - badgy1;
benzo1 += 1;
gauge.boc.count = bcash;
badguy2._x = bg7._x - badgx2;
badguy2._y = bg7._y - badgy2;
benzo2 += 1;
};
}
movieClip 1755 {
}
movieClip 1757 {
frame 1 {
stop();
}
}
movieClip 1759 {
}
movieClip 1763 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 1767 {
}
movieClip 1769 {
}
movieClip 1771 {
}
movieClip 1774 {
}
movieClip 1777 {
}
movieClip 1784 {
}
movieClip 1786 {
}
movieClip 1788 {
}
movieClip 1789 {
}
movieClip 1794 {
}
movieClip 1796 {
}
movieClip 1799 {
}
movieClip 1802 {
}
movieClip 1804 {
}
movieClip 1806 {
frame 391 {
gotoAndPlay(1);
}
frame 500 {
gotoAndPlay(40);
}
}
movieClip 1807 {
}
instance raincash of movieClip 265 {
onClipEvent (enterFrame) {
if (_root.goalb3 == true) {
this.gotoAndStop(10);
}
}
}
movieClip 1810 {
frame 20 {
stop();
}
}
movieClip 1811 {
frame 20 {
stop();
}
}
movieClip 1812 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1819 {
frame 64 {
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.data.goals1 = _root.goals1;
savefile.data.goals2 = _root.goals2;
savefile.data.goals3 = _root.goals3;
savefile.data.goals4 = _root.goals4;
savefile.data.achieva1 = _root.achieva1;
savefile.data.achieva2 = _root.achieva2;
savefile.data.achieva3 = _root.achieva3;
savefile.data.achieva4 = _root.achieva4;
savefile.data.achieva5 = _root.achieva5;
savefile.data.achieva6 = _root.achieva6;
savefile.data.achievb1 = _root.achievb1;
savefile.data.achievb2 = _root.achievb2;
savefile.data.achievb3 = _root.achievb3;
savefile.data.achievb4 = _root.achievb4;
savefile.data.achievb5 = _root.achievb5;
savefile.data.achievb6 = _root.achievb6;
savefile.data.achievc1 = _root.achievc1;
savefile.data.achievc2 = _root.achievc2;
savefile.data.achievc3 = _root.achievc3;
savefile.data.achievc4 = _root.achievc4;
savefile.data.achievc5 = _root.achievc5;
savefile.data.achievc6 = _root.achievc6;
savefile.flush();
}
frame 132 {
stop();
}
frame 245 {
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.data.goals1 = _root.goals1;
savefile.data.goals2 = _root.goals2;
savefile.data.goals3 = _root.goals3;
savefile.data.goals4 = _root.goals4;
savefile.data.achieva1 = _root.achieva1;
savefile.data.achieva2 = _root.achieva2;
savefile.data.achieva3 = _root.achieva3;
savefile.data.achieva4 = _root.achieva4;
savefile.data.achieva5 = _root.achieva5;
savefile.data.achieva6 = _root.achieva6;
savefile.data.achievb1 = _root.achievb1;
savefile.data.achievb2 = _root.achievb2;
savefile.data.achievb3 = _root.achievb3;
savefile.data.achievb4 = _root.achievb4;
savefile.data.achievb5 = _root.achievb5;
savefile.data.achievb6 = _root.achievb6;
savefile.data.achievc1 = _root.achievc1;
savefile.data.achievc2 = _root.achievc2;
savefile.data.achievc3 = _root.achievc3;
savefile.data.achievc4 = _root.achievc4;
savefile.data.achievc5 = _root.achievc5;
savefile.data.achievc6 = _root.achievc6;
savefile.flush();
}
frame 264 {
stop();
}
frame 385 {
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.data.goals1 = _root.goals1;
savefile.data.goals2 = _root.goals2;
savefile.data.goals3 = _root.goals3;
savefile.data.goals4 = _root.goals4;
savefile.data.achieva1 = _root.achieva1;
savefile.data.achieva2 = _root.achieva2;
savefile.data.achieva3 = _root.achieva3;
savefile.data.achieva4 = _root.achieva4;
savefile.data.achieva5 = _root.achieva5;
savefile.data.achieva6 = _root.achieva6;
savefile.data.achievb1 = _root.achievb1;
savefile.data.achievb2 = _root.achievb2;
savefile.data.achievb3 = _root.achievb3;
savefile.data.achievb4 = _root.achievb4;
savefile.data.achievb5 = _root.achievb5;
savefile.data.achievb6 = _root.achievb6;
savefile.data.achievc1 = _root.achievc1;
savefile.data.achievc2 = _root.achievc2;
savefile.data.achievc3 = _root.achievc3;
savefile.data.achievc4 = _root.achievc4;
savefile.data.achievc5 = _root.achievc5;
savefile.data.achievc6 = _root.achievc6;
savefile.flush();
}
frame 396 {
stop();
}
frame 519 {
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.data.goals1 = _root.goals1;
savefile.data.goals2 = _root.goals2;
savefile.data.goals3 = _root.goals3;
savefile.data.goals4 = _root.goals4;
savefile.data.achieva1 = _root.achieva1;
savefile.data.achieva2 = _root.achieva2;
savefile.data.achieva3 = _root.achieva3;
savefile.data.achieva4 = _root.achieva4;
savefile.data.achieva5 = _root.achieva5;
savefile.data.achieva6 = _root.achieva6;
savefile.data.achievb1 = _root.achievb1;
savefile.data.achievb2 = _root.achievb2;
savefile.data.achievb3 = _root.achievb3;
savefile.data.achievb4 = _root.achievb4;
savefile.data.achievb5 = _root.achievb5;
savefile.data.achievb6 = _root.achievb6;
savefile.data.achievc1 = _root.achievc1;
savefile.data.achievc2 = _root.achievc2;
savefile.data.achievc3 = _root.achievc3;
savefile.data.achievc4 = _root.achievc4;
savefile.data.achievc5 = _root.achievc5;
savefile.data.achievc6 = _root.achievc6;
savefile.flush();
}
frame 528 {
stop();
}
frame 648 {
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.data.goals1 = _root.goals1;
savefile.data.goals2 = _root.goals2;
savefile.data.goals3 = _root.goals3;
savefile.data.goals4 = _root.goals4;
savefile.data.achieva1 = _root.achieva1;
savefile.data.achieva2 = _root.achieva2;
savefile.data.achieva3 = _root.achieva3;
savefile.data.achieva4 = _root.achieva4;
savefile.data.achieva5 = _root.achieva5;
savefile.data.achieva6 = _root.achieva6;
savefile.data.achievb1 = _root.achievb1;
savefile.data.achievb2 = _root.achievb2;
savefile.data.achievb3 = _root.achievb3;
savefile.data.achievb4 = _root.achievb4;
savefile.data.achievb5 = _root.achievb5;
savefile.data.achievb6 = _root.achievb6;
savefile.data.achievc1 = _root.achievc1;
savefile.data.achievc2 = _root.achievc2;
savefile.data.achievc3 = _root.achievc3;
savefile.data.achievc4 = _root.achievc4;
savefile.data.achievc5 = _root.achievc5;
savefile.data.achievc6 = _root.achievc6;
savefile.flush();
}
frame 660 {
stop();
}
frame 785 {
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.data.goals1 = _root.goals1;
savefile.data.goals2 = _root.goals2;
savefile.data.goals3 = _root.goals3;
savefile.data.goals4 = _root.goals4;
savefile.data.achieva1 = _root.achieva1;
savefile.data.achieva2 = _root.achieva2;
savefile.data.achieva3 = _root.achieva3;
savefile.data.achieva4 = _root.achieva4;
savefile.data.achieva5 = _root.achieva5;
savefile.data.achieva6 = _root.achieva6;
savefile.data.achievb1 = _root.achievb1;
savefile.data.achievb2 = _root.achievb2;
savefile.data.achievb3 = _root.achievb3;
savefile.data.achievb4 = _root.achievb4;
savefile.data.achievb5 = _root.achievb5;
savefile.data.achievb6 = _root.achievb6;
savefile.data.achievc1 = _root.achievc1;
savefile.data.achievc2 = _root.achievc2;
savefile.data.achievc3 = _root.achievc3;
savefile.data.achievc4 = _root.achievc4;
savefile.data.achievc5 = _root.achievc5;
savefile.data.achievc6 = _root.achievc6;
savefile.flush();
}
frame 792 {
stop();
}
}
movieClip 1823 {
frame 290 {
stop();
}
}
instance of movieClip 1823 {
onClipEvent (load) {
this.swapDepths(9700);
}
}
frame 44 {
if (qset == undefined) {
qset = 2;
}
if (qset == 2) {
_quality = 'Medium';
}
if (qset == 1) {
_quality = 'Low';
}
if (qset == 3) {
_quality = 'High';
}
}
frame 44 {
for (i in _root) {
_root[i].swapDepths(10102);
removeMovieClip(_root[i]);
}
delete eval(onEnterFrame());
}
frame 45 {
delete eval(onEnterFrame());
}
frame 46 {
if (qset == undefined) {
qset = 2;
}
if (qset == 2) {
_quality = 'Medium';
}
if (qset == 1) {
_quality = 'Low';
}
if (qset == 3) {
_quality = 'High';
}
}
frame 46 {
stop();
blue = 'blue';
pink = 'pink';
nero = 1;
renzo = 0;
pause = false;
sublunge = 0;
subjetro = 0;
submarine = false;
subjump = 0;
subht = 0.005;
subxx = bg8._x - sub._x;
subxy = bg8._y - sub._y;
bubbler = 0;
gen = 1;
subhealth = 10;
bg8.core._visible = false;
bg8.wall._visible = false;
bg8.subcore._visible = false;
bg8.trap._visible = false;
bg8.ceiling._visible = false;
if (weapon == undefined) {
weapon = 'boomerang';
hammer = true;
}
if (cash == undefined) {
cash = 0;
bcash = 0;
}
if (puzzles == undefined) {
puzzles = 0;
}
if (lives == undefined) {
lives = 9;
}
torial._visible = false;
benny = 0;
flly = 0;
torial.swapDepths(10001);
powertimer.swapDepths(9997);
tuto.swapDepths(9998);
pausemen.swapDepths(9999);
gauge.swapDepths(10000);
tran.swapDepths(50000);
wall.swapDepths(500);
arrows.swapDepths(502);
gameover.swapDepths(60000);
insubport.swapDepths(701);
outsubport.swapDepths(702);
gyrocannon3.swapDepths(703);
gyrocannon4.swapDepths(704);
gyrocannon5.swapDepths(705);
mine1.swapDepths(751);
mine2.swapDepths(752);
mine3.swapDepths(753);
mine4.swapDepths(754);
mine5.swapDepths(755);
mine6.swapDepths(756);
mine7.swapDepths(757);
mine8.swapDepths(758);
mine9.swapDepths(759);
mine10.swapDepths(760);
trape = 0;
gate = false;
pause = false;
key._visible = true;
boomer = 1;
type = 'norm';
jump = 10;
ht = 0.5;
gyro.gotoAndPlay('jump');
mxy = gyro._y - 80;
mxbg8y = bg8._y;
motion = 7;
tutorialsc = true;
mxx = gyro._x + 70;
mnx = gyro._x - 120;
whiptimer = 50;
whipper = 40;
att = 0;
gen = 0.9300000000000001;
intx = bg8._x - gyro._x;
inty = bg8._y - gyro._y;
tbx = bg8._x - tutorboxx._x;
tby = bg8._y - tutorboxx._y;
tbx2 = bg8._x - tutorboxx2._x;
tby2 = bg8._y - tutorboxx2._y;
if (gletter == undefined) {
gletter = false;
}
if (yletter == undefined) {
yletter = false;
}
if (rletter == undefined) {
rletter = false;
}
if (oletter == undefined) {
oletter = false;
}
intymidg = midg._y;
portaled = false;
springx = bg8._x - spring._x;
springy = bg8._y - spring._y;
gysx1 = bg8._x - gyroswitch1._x;
gysy1 = bg8._y - gyroswitch1._y;
gysx2 = bg8._x - gyroswitch2._x;
gysy2 = bg8._y - gyroswitch2._y;
gysx3 = bg8._x - gyroswitch3._x;
gysy3 = bg8._y - gyroswitch3._y;
gysx4 = bg8._x - gyroswitch4._x;
gysy4 = bg8._y - gyroswitch4._y;
gysx5 = bg8._x - gyroswitch5._x;
gysy5 = bg8._y - gyroswitch5._y;
gyrotate1 = 1;
gyrotate2 = 1;
gyrotate3 = 1;
gyrotate4 = 1;
gyrotate5 = 1;
begx1 = bg8._x - bugenemy1._x;
begy1 = bg8._y - bugenemy1._y;
begx2 = bg8._x - bugenemy2._x;
begy2 = bg8._y - bugenemy2._y;
begx3 = bg8._x - bugenemy3._x;
begy3 = bg8._y - bugenemy3._y;
insubportx = bg8._x - insubport._x;
insubporty = bg8._y - insubport._y;
outsubportx = bg8._x - outsubport._x;
outsubporty = bg8._y - outsubport._y;
glx = bg8._x - letterr._x;
gly = bg8._y - letterr._y;
pzx = bg8._x - puzzle._x;
pzy = bg8._y - puzzle._y;
pzx2 = bg8._x - puzzle2._x;
pzy2 = bg8._y - puzzle2._y;
portx = bg8._x - portalway._x;
porty = bg8._y - portalway._y;
fgbx = bg8._x - flamebox._x;
fgby = bg8._y - flamebox._y;
badgx1 = bg8._x - badguy1._x;
badgy1 = bg8._y - badguy1._y;
badgix1 = badguy1._x;
badgiy1 = badguy1._y;
benzo1 = 0;
badgx2 = bg8._x - badguy2._x;
badgy2 = bg8._y - badguy2._y;
badgix2 = badguy2._x;
badgiy2 = badguy2._y;
benzo2 = 0;
bcoinbx1 = bg8._x - bcoinb1._x;
bcoinby1 = bg8._y - bcoinb1._y;
bcoinbx2 = bg8._x - bcoinb2._x;
bcoinby2 = bg8._y - bcoinb2._y;
bcoinbx3 = bg8._x - bcoinb3._x;
bcoinby3 = bg8._y - bcoinb3._y;
bcoinbx4 = bg8._x - bcoinb4._x;
bcoinby4 = bg8._y - bcoinb4._y;
bcoinbx5 = bg8._x - bcoinb5._x;
bcoinby5 = bg8._y - bcoinb5._y;
coinbx1 = bg8._x - coinb1._x;
coinby1 = bg8._y - coinb1._y;
coinbx2 = bg8._x - coinb2._x;
coinby2 = bg8._y - coinb2._y;
coinbx3 = bg8._x - coinb3._x;
coinby3 = bg8._y - coinb3._y;
coinbx4 = bg8._x - coinb4._x;
coinby4 = bg8._y - coinb4._y;
coinbx5 = bg8._x - coinb5._x;
coinby5 = bg8._y - coinb5._y;
coinbx6 = bg8._x - coinb6._x;
coinby6 = bg8._y - coinb6._y;
coinbx7 = bg8._x - coinb7._x;
coinby7 = bg8._y - coinb7._y;
coinbx8 = bg8._x - coinb8._x;
coinby8 = bg8._y - coinb8._y;
coinbx9 = bg8._x - coinb9._x;
coinby9 = bg8._y - coinb9._y;
coinbx10 = bg8._x - coinb10._x;
coinby10 = bg8._y - coinb10._y;
coinbx11 = bg8._x - coinb11._x;
coinby11 = bg8._y - coinb11._y;
coinbx12 = bg8._x - coinb12._x;
coinby12 = bg8._y - coinb12._y;
coinbx13 = bg8._x - coinb13._x;
coinby13 = bg8._y - coinb13._y;
coinbx14 = bg8._x - coinb14._x;
coinby14 = bg8._y - coinb14._y;
coinbx15 = bg8._x - coinb15._x;
coinby15 = bg8._y - coinb15._y;
coinbx16 = bg8._x - coinb16._x;
coinby16 = bg8._y - coinb16._y;
coinbx17 = bg8._x - coinb17._x;
coinby17 = bg8._y - coinb17._y;
coinbx18 = bg8._x - coinb18._x;
coinby18 = bg8._y - coinb18._y;
coinbx19 = bg8._x - coinb19._x;
coinby19 = bg8._y - coinb19._y;
coinbx20 = bg8._x - coinb20._x;
coinby20 = bg8._y - coinb20._y;
coinbx21 = bg8._x - coinb21._x;
coinby21 = bg8._y - coinb21._y;
coinbx22 = bg8._x - coinb22._x;
coinby22 = bg8._y - coinb22._y;
coinbx23 = bg8._x - coinb23._x;
coinby23 = bg8._y - coinb23._y;
coinbx24 = bg8._x - coinb24._x;
coinby24 = bg8._y - coinb24._y;
coinbx25 = bg8._x - coinb25._x;
coinby25 = bg8._y - coinb25._y;
coinbx26 = bg8._x - coinb26._x;
coinby26 = bg8._y - coinb26._y;
coinbx27 = bg8._x - coinb27._x;
coinby27 = bg8._y - coinb27._y;
coinbx28 = bg8._x - coinb28._x;
coinby28 = bg8._y - coinb28._y;
coinbx29 = bg8._x - coinb29._x;
coinby29 = bg8._y - coinb29._y;
coinbx30 = bg8._x - coinb30._x;
coinby30 = bg8._y - coinb30._y;
coinbx31 = bg8._x - coinb31._x;
coinby31 = bg8._y - coinb31._y;
coinbx32 = bg8._x - coinb32._x;
coinby32 = bg8._y - coinb32._y;
coinbx33 = bg8._x - coinb33._x;
coinby33 = bg8._y - coinb33._y;
coinbx34 = bg8._x - coinb34._x;
coinby34 = bg8._y - coinb34._y;
coinbx35 = bg8._x - coinb35._x;
coinby35 = bg8._y - coinb35._y;
coinbx36 = bg8._x - coinb36._x;
coinby36 = bg8._y - coinb36._y;
coinbx37 = bg8._x - coinb37._x;
coinby37 = bg8._y - coinb37._y;
coinbx38 = bg8._x - coinb38._x;
coinby38 = bg8._y - coinb38._y;
coinbx39 = bg8._x - coinb39._x;
coinby39 = bg8._y - coinb39._y;
coinbx40 = bg8._x - coinb40._x;
coinby40 = bg8._y - coinb40._y;
portaled = false;
magix = bg8._x - magicswitch._x;
magiy = bg8._y - magicswitch._y;
keyx = bg8._x - key._x;
keyy = bg8._y - key._y;
wallx = bg8._x - wall._x;
wally = bg8._y - wall._y;
cratex = bg8._x - crate._x;
cratey = bg8._y - crate._y;
push = 1;
raicax = bg8._x - raincash._x;
raicay = bg8._y - raincash._y;
mine1x = bg8._x - mine1._x;
mine1y = bg8._y - mine1._y;
mine2x = bg8._x - mine2._x;
mine2y = bg8._y - mine2._y;
mine3x = bg8._x - mine3._x;
mine3y = bg8._y - mine3._y;
mine4x = bg8._x - mine4._x;
mine4y = bg8._y - mine4._y;
mine5x = bg8._x - mine5._x;
mine5y = bg8._y - mine5._y;
mine6x = bg8._x - mine6._x;
mine6y = bg8._y - mine6._y;
mine7x = bg8._x - mine7._x;
mine7y = bg8._y - mine7._y;
mine8x = bg8._x - mine8._x;
mine8y = bg8._y - mine8._y;
onEnterFrame = function () {
i = 0;
while (i <= 40) {
if (gyro.hitTest(_root['coinb' + i]) && _root['coinb' + i]._visible == true) {
cash += 1;
klepto += 1;
_root['coinb' + i].play();
_root['coinb' + i]._visible = true;
duplicateMovieClip('star' + pink, 'starz1', 1000);
starzx1 = bg8._x - gyro._x;
starzy1 = bg8._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz2', 1002);
starzx2 = bg8._x - gyro._x;
starzy2 = bg8._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz3', 1003);
starzx3 = bg8._x - gyro._x;
starzy3 = bg8._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz4', 1004);
starzx4 = bg8._x - gyro._x;
starzy4 = bg8._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz5', 1005);
starzx5 = bg8._x - gyro._x;
starzy5 = bg8._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz6', 1006);
starzx6 = bg8._x - gyro._x;
starzy6 = bg8._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
dupstar = 0;
score += 10;
}
if (cash >= 100) {
lives += 1;
cash = 0;
}
if (gyro.hitTest(_root['bcoinb' + i]) && _root['bcoinb' + i]._visible == true) {
bcash += 1;
_root['bcoinb' + i].play();
_root['bcoinb' + i]._visible = true;
gauge.boc.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg8._x - gyro._x;
starzy1 = bg8._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg8._x - gyro._x;
starzy2 = bg8._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg8._x - gyro._x;
starzy3 = bg8._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg8._x - gyro._x;
starzy4 = bg8._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg8._x - gyro._x;
starzy5 = bg8._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg8._x - gyro._x;
starzy6 = bg8._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
dupstar = 0;
score += 10;
}
if (sub.core.hitTest(_root['mine' + i].core) && submarine == true && subhealth > 0) {
subhealth = 0;
_root['mine' + i].play();
}
if (gyro.hitTest(key) && key._visible == true) {
gate = true;
key._visible = false;
key.gotoAndStop(55);
}
if (gyro.hitTest(letterr) && rletter != true) {
rletter = true;
gyroletterx += 1;
letterr.gotoAndStop(55);
gauge.gyroletters.play();
duplicateMovieClip('star' + pink, 'starz1', 1000);
starzx1 = bg8._x - gyro._x;
starzy1 = bg8._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz2', 1002);
starzx2 = bg8._x - gyro._x;
starzy2 = bg8._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz3', 1003);
starzx3 = bg8._x - gyro._x;
starzy3 = bg8._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz4', 1004);
starzx4 = bg8._x - gyro._x;
starzy4 = bg8._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz5', 1005);
starzx5 = bg8._x - gyro._x;
starzy5 = bg8._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz6', 1006);
starzx6 = bg8._x - gyro._x;
starzy6 = bg8._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
score += 50;
}
if (gyro.hitTest(puzzle) && puzzle._visible == true) {
puzzles += 1;
puzzle._visible = false;
gauge.puzzle.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg8._x - gyro._x;
starzy1 = bg8._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg8._x - gyro._x;
starzy2 = bg8._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg8._x - gyro._x;
starzy3 = bg8._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg8._x - gyro._x;
starzy4 = bg8._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg8._x - gyro._x;
starzy5 = bg8._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg8._x - gyro._x;
starzy6 = bg8._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
score += 100;
}
if (portalway.core.hitTest(gyro._x, gyro._y, true) && portalway._visible == true && jump < 0) {
gyro.gotoAndStop('teleport');
portaled = true;
pause = true;
}
++i;
}
if (trap != true && gyro._y > mxy && aim != true && submarine != true && pause != true && renzo <= 0 || trap != true && renzo <= 0 && gyro._y <= mxy && bg8._y <= mxbg8y && submarine != true && pause != true && jump < 0 && aim != true || gyro._y > 400 && renzo <= 0 && submarine != true && pause != true && trap != true && bg8._y <= mxbg8y && aim != true) {
gyro._y -= jump;
jump -= ht;
}
if (trap != true && gyro._y <= mxy && aim != true && submarine != true && pause != true && renzo <= 0 || trap != true && renzo <= 0 && aim != true && gyro._y > 300 && submarine != true && pause != true && bg8._y > mxbg8y && jump < 0) {
bg8._y += jump;
midg._y += jump / 4;
jump -= ht;
}
if (Key.isDown(65) && submarine != true && pause != true && dead != true && climb != true && trap != true && ht == 0 && duck != true && aim != true && rope != true && whiptimer > whipper) {
jump = 10;
ht = 0.5;
gyro.gotoAndPlay('jump');
}
if (jump < -15) {
jump = -16;
}
if (Key.isDown(65) && submarine != true && pause != true && dead != true && climb != true && aim != true && trap != true && ht == 0 && duck == true && rope != true && whiptimer > whipper) {
jump = 11;
ht = 0.5;
duck = false;
motion = 0;
gyro.gotoAndPlay('boostjump');
}
if (Key.isDown(40) && submarine != true && pause != true && portaled != true && dead != true && climb != true && aim != true && trap != true && ht == 0 && rope != true && whiptimer > whipper && att == 0) {
duck = true;
gyro.gotoAndStop('duck');
}
if (!Key.isDown(40) && submarine != true && pause != true && portaled != true && dead != true && climb != true && trap != true && duck == true && rope != true && whiptimer > whipper && att == 0) {
duck = false;
gyro.gotoAndStop(1);
}
if (bg8.core.hitTest(gyro._x, gyro._y + 25, true) && dead != true && climb != true && jump < -3 && whiptimer > whipper && att == 0) {
gyro.gotoAndStop(1);
jump = 0;
motion = 7;
att = 0;
foforestore = false;
ht = 0;
fliper = 1;
gyrocannon1.gotoAndStop(1);
gyrocannon2.gotoAndStop(1);
gyrocannon3.gotoAndStop(1);
gyrocannon4.gotoAndStop(1);
gyrocannon5.gotoAndStop(1);
ken = false;
}
if (!bg8.core.hitTest(gyro._x, gyro._y + 35, true) && portaled != true && dead != true && climb != true && ht == 0 && rope != true && whiptimer > whipper && att == 0) {
gyro.gotoAndPlay('ballup');
ht = 0.5;
}
for (;;) {
if (!(bg8.core.hitTest(gyro._x, gyro._y + 25, true) && jump < 0.7 && whiptimer > whipper)) break;
gyro._y -= 0.1;
}
for (;;) {
if (!(bg8.ceiling.hitTest(gyro._x, gyro._y - 35, true) && jump > 0 && whiptimer > whipper)) break;
gyro._y -= 0.1;
jump -= 3;
}
if (Key.isDown(39) && gyro._x > 0 && gyro._x < 600 && submarine != true && pause != true && portaled != true && dead != true && climb != true && trap != true && duck != true && aim != true && gyro._x <= mxx && rope != true && whiptimer > whipper && att == 0) {
gyro.play();
goright = true;
goleft = false;
gyro._x += motion / push;
bobob = 90;
gyro._xscale = 50;
}
if (Key.isDown(37) && gyro._x > 0 && gyro._x < 600 && submarine != true && pause != true && portaled != true && dead != true && climb != true && trap != true && duck != true && aim != true && gyro._x >= mnx && rope != true && whiptimer > whipper && att == 0) {
gyro.play();
goleft = true;
goright = false;
gyro._x -= motion / push;
bobob = -90;
gyro._xscale = -50;
}
if (Key.isDown(39) && gyro._x > 0 && gyro._x < 600 && submarine != true && pause != true && portaled != true && dead != true && climb != true && trap != true && duck != true && aim != true && gyro._x > mxx && rope != true && whiptimer > whipper && att == 0) {
gyro.play();
goright = true;
goleft = false;
bg8._x -= motion / push;
midg._x -= motion / 30;
bobob = 90;
gyro._xscale = 50;
}
if (Key.isDown(37) && gyro._x > 0 && gyro._x < 600 && submarine != true && pause != true && portaled != true && dead != true && climb != true && trap != true && duck != true && aim != true && gyro._x < mnx && rope != true && whiptimer > whipper && att == 0) {
gyro.play();
goleft = true;
goright = false;
bobob = -90;
bg8._x += motion / push;
midg._x += motion / 30;
gyro._xscale = -50;
}
if (!Key.isDown(37) && submarine != true && pause != true && submarine != true && pause != true && dead != true && climb != true && ht == 0 && trap != true && duck != true && aim != true && goleft == true && rope != true && whiptimer > whipper && att == 0) {
gyro.gotoAndStop(1);
goleft = false;
}
if (!Key.isDown(39) && submarine != true && pause != true && submarine != true && pause != true && dead != true && climb != true && ht == 0 && trap != true && duck != true && aim != true && goright == true && rope != true && whiptimer > whipper && att == 0) {
gyro.gotoAndStop(1);
goright = false;
}
if (Key.isDown(65)) {
bleckx = true;
}
if (!Key.isDown(65)) {
bleckx = false;
}
if (trap != true && submarine != true && pause != true && portaled != true && climb != true) {
bg8._x -= att;
midg._x -= att / 30;
}
if (bg8.wall.hitTest(gyro._x + 20, gyro._y, true)) {
gyro._x -= motion;
att = 0;
}
while (bg8.wall.hitTest(gyro._x + 20, gyro._y, true)) {
gyro._x -= 0.1;
}
if (bg8.wall.hitTest(gyro._x - 20, gyro._y, true)) {
att = 0;
gyro._x += motion;
}
while (bg8.wall.hitTest(gyro._x - 20, gyro._y, true)) {
gyro._x += 0.1;
}
if (gyro._y < 200 && renzo <= 0 && aim != true && trap != true && ht == 0 && dead != true && climb != true) {
gyro._y += bett / 5;
bg8._y += bett / 5;
midg._y += bett / 40;
}
if (bg8._y <= mxbg8y) {
bg8._y = mxbg8y;
}
if (gyro._y > 330 && renzo <= 0 && aim != true && bg8._y > mxbg8y && dead != true) {
gyro._y += bett;
bg8._y += bett;
midg._y += bett / 40;
}
if (gyro._y < 300 && renzo <= 0 && aim != true && trap == true && dead != true && climb != true) {
gyro._y += bett / 3;
bg8._y += bett / 3;
midg._y += bett / 40;
}
if (gyro._y < 200 && renzo <= 0 && aim != true && gyrocannon == true && dead != true && climb != true) {
gyro._y += bett / 3;
bg8._y += bett / 3;
midg._y += bett / 40;
}
if (submarine != true && pause != true) {
bett = (330 - gyro._y) / 5;
renzo -= 1;
}
if (gyro._x < mnx - 60 && bleco <= 0 && renzo <= 0) {
bg8._x += mot / 23;
midg._x += mot / 680;
gyro._x += mot / 23;
}
if (gyro._x > mxx + 60 && bleco <= 0 && renzo <= 0) {
bg8._x += mot / 23;
midg._x += mot / 680;
gyro._x += mot / 23;
}
if (midg._y <= intymidg) {
midg._y = intymidg;
}
if (benny < score) {
benny += 1;
}
if (pause != true) {
starzx1 += starburst1;
starburst1 *= 0.94;
starzy1 += starjump1;
starjump1 -= 0.5;
starzx2 += starburst2;
starburst2 *= 0.94;
starzy2 += starjump2;
starjump2 -= 0.5;
starzx3 += starburst3;
starburst3 *= 0.94;
starzy3 += starjump3;
starjump3 -= 0.5;
starzx4 += starburst4;
starburst4 *= 0.94;
starzy4 += starjump4;
starjump4 -= 0.5;
starzx5 += starburst5;
starburst5 *= 0.94;
starzy5 += starjump5;
starjump5 -= 0.5;
starzx6 += starburst6;
starburst6 *= 0.94;
starzy6 += starjump6;
starjump6 -= 0.5;
}
if (gyro._y > 1700 && lives > 0 && renzo <= 0 && foforestore != true) {
lives -= 1;
gyro._x = bg8._x - intx;
gyro._y = bg8._y - inty;
midg._y = intymidg;
gauge.gorp.play();
foforestore = true;
}
if (lives <= 0) {
gameover.play();
portaled = true;
pause = true;
}
if (bg8.trap.hitTest(gyro._x, gyro._y - 30, true) && trap != true && ken != true && jump <= 0) {
trap = true;
gyrocannon1.gotoAndStop(1);
gyrocannon2.gotoAndStop(1);
gyrocannon3.gotoAndStop(1);
gyrocannon4.gotoAndStop(1);
gyrocannon5.gotoAndStop(1);
stt = 0;
trape = 1;
motion = 9;
jump = 0;
ht = 0;
}
for (;;) {
if (!(bg8.trap.hitTest(gyro._x, gyro._y - 30, true) && jump <= 1)) break;
gyro._y -= 0.1;
}
if (trape > 100) {
trape = 2;
}
if (trap == true) {
gyro.bob.bobo.gotoAndStop(Math.round(fliper));
gyro.gotoAndStop('trapeze');
gyro.trap.gotoAndStop(Math.round(trape));
}
if (Key.isDown(65) && trap == true && submarine != true && pause != true && portaled != true && gyrocannon != true) {
folgot = true;
swingsound.play();
trape += fliper / 4;
fliper += 0.2;
}
if (fliper > 15) {
fliper = 15;
}
if (!Key.isDown(65) && folgot == true && trap == true && submarine != true && pause != true && portaled != true && gyrocannon != true) {
jump = fliper * 1.4;
trap = false;
swingsound.gotoAndStop(1);
folgot = false;
ken = true;
gyro.gotoAndPlay('ballup');
ht = 0.7;
}
if (jump < 0) {
ken = false;
}
if (trap != true) {
whiptimer += 1;
boomx1 -= trajectoryx1;
boomy1 += trajectoryy1;
trajectoryx1 -= ben;
trajectoryy1 -= ken;
boomtimer += 1;
dupstar += 1;
}
if (boomerang1._x > gyro._x) {
ben = 0.5;
}
if (boomerang1._x < gyro._x) {
ben = -0.5;
}
if (boomerang1._y > gyro._y + 20) {
ken = -0.5;
}
if (boomerang1._y < gyro._y - 20) {
ken = 0.5;
}
if (boomerang1._y < gyro._y + 20 && boomerang1._y > gyro._y - 20) {
ken = 0;
trajectoryy1 = 0;
}
if (boomer <= 0 && dupstar > 5) {
duplicateMovieClip('star' + type, 'star' + stardu, stardu + 100);
_root['starx' + stardu] = bg8._x - boomerang1._x;
_root['stary' + stardu] = bg8._y - boomerang1._y;
_root['star' + stardu]._rotation = Math.random() * 360;
stardu += 1;
dupstar = 0;
}
if (stardu > 5) {
stardu = 1;
}
if (Key.isDown(83) && submarine != true && pause != true && dead != true && climb != true && jump <= 0 && ht == 0 && rope != true && aim != true && boomer > 0 && trap != true && duck != true && aim != true && whiptimer > whipper) {
aim = true;
dupstar = 0;
ror = 0;
}
if (aim == true) {
gyro.gotoAndStop('aim');
arrows._x = gyro._x;
arrows._y = gyro._y;
arrows._visible = true;
arrows._rotation = ror * (gyro._xscale / 50);
arrows._xscale = gyro._xscale * 1.25;
}
if (aim != true) {
arrows._visible = false;
}
if (aim == true && Key.isDown(40) && ror < 70) {
ror += 5;
arrows.play();
}
if (aim == true && Key.isDown(38) && ror > -70) {
ror -= 5;
arrows.play();
}
if (nero <= 1 && boomerang1._x > gyro._x - 50 && boomerang1._x < gyro._x + 50 && boomerang1._y > gyro._y - 50 && boomerang1._y < gyro._y + 50 && boomtimer > 50) {
boomer = 1;
zex = false;
fololol = false;
gyroswitch1.gotoAndStop(1);
gyroswitch2.gotoAndStop(1);
removeMovieClip(boomerang1);
}
if (nero > 1 && boomerang1._x > gyro._x - 50 && boomerang1._x < gyro._x + 50 && boomerang1._y > gyro._y - 50 && boomerang1._y < gyro._y + 50 && boomtimer > 50) {
boomer = 1;
zex = false;
removeMovieClip(boomerang1);
}
if (!Key.isDown(83) && submarine != true && pause != true && aim == true && trap != true && boomer > 0 && whiptimer > whipper && duck != true) {
duplicateMovieClip('boomerang' + type, 'boomerang' + boomer, 200 + boomer);
stardu = 1;
_root['boomx' + boomer] = bg8._x - gyro._x;
_root['boomy' + boomer] = bg8._y - gyro._y - 50 * Math.sin(ror * 0.0174532925199433);
gyro.gotoAndPlay('boomerang');
_root['trajectoryx' + boomer] = 20 * Math.cos(ror * 0.0174532925199433) * (gyro._xscale / 50);
_root['glip' + boomer] = 1 * (gyro._xscale / 80);
_root['trajectoryy' + boomer] = -20 * Math.sin(ror * 0.0174532925199433);
_root['boomacc' + boomer] = 0;
aim = false;
ht = 0;
jump = 0;
ben = 0.5;
ken = 0.5;
boomer = 0;
whiptimer = 0;
whipper = 20;
boomtimer = 0;
}
if (submarine == true) {
gyro._x = sub._x;
gyro._y = sub._y;
sub.jet1._rotation = subjetro;
sub.jet2._rotation = subjetro;
gyro._visible = false;
nero = 2;
}
if (submarine != true) {
gyro._visible = true;
nero = 1;
}
if (pause != true && submarine == true && subhealth > 1) {
subjump -= subht;
bg8._y += subjump / 3;
}
if (pause != true && submarine == true && subhealth > 1) {
bg8._x -= sublunge / 3;
}
if (submarine == true && pause != true && Key.isDown(39)) {
subjetro += 5;
}
if (submarine == true && pause != true && Key.isDown(37)) {
subjetro -= 5;
}
if (Key.isDown(65) && pause != true && submarine == true) {
sublunge += 0.2 * Math.sin(subjetro * 0.0174532925199433);
subjump += 0.15 * Math.cos(subjetro * 0.0174532925199433);
sub.jet1.play();
sub.jet2.play();
}
if (!Key.isDown(65)) {
sub.jet1.gotoAndStop(1);
sub.jet2.gotoAndStop(1);
}
if (subjump > 7) {
subjump = 7;
}
if (subjump < -7) {
subjump = -7;
}
if (sublunge > 7) {
sublunge = 7;
}
if (sublunge < -7) {
sublunge = -7;
}
if (pause != true && submarine == true) {
bubbler += 1;
bubble1._x = bg8._x - bubblex1;
bubble1._y = bg8._y - bubbley1;
bubble2._x = bg8._x - bubblex2;
bubble2._y = bg8._y - bubbley2;
bubble3._x = bg8._x - bubblex3;
bubble3._y = bg8._y - bubbley3;
bubble4._x = bg8._x - bubblex4;
bubble4._y = bg8._y - bubbley4;
bubble5._x = bg8._x - bubblex5;
bubble5._y = bg8._y - bubbley5;
bubble6._x = bg8._x - bubblex6;
bubble6._y = bg8._y - bubbley6;
bubble7._x = bg8._x - bubblex7;
bubble7._y = bg8._y - bubbley7;
bubble8._x = bg8._x - bubblex8;
bubble8._y = bg8._y - bubbley8;
sub.bubble.gotoAndStop(11 - subhealth);
}
if (bubbler > 35) {
duplicateMovieClip(bubble, 'bubble' + gen, 220 + gen);
_root['bubblex' + gen] = bg8._x - (sub._x + Math.random() * 30 - Math.random() * 30);
_root['bubbley' + gen] = bg8._y - (sub._y + Math.random() * 30 - Math.random() * 30);
gen += 1;
bubbler = 0;
}
if (gen > 7) {
gen = 0;
}
if (bg8.subcore.hitTest(sub._x + 30, sub._y, true) && subhealth > 0 && sublunge > 0 && submarine == true) {
sublunge *= -0.7;
smashy.play();
subhealth -= 1;
}
for (;;) {
if (!(bg8.subcore.hitTest(sub._x + 30, sub._y, true) && submarine == true)) break;
sub._x -= 0.1;
}
if (bg8.subcore.hitTest(sub._x - 30, sub._y, true) && subhealth > 1 && sublunge < 0 && submarine == true) {
sublunge *= -0.7;
subhealth -= 1;
smashy.play();
}
for (;;) {
if (!(bg8.subcore.hitTest(sub._x - 30, sub._y, true) && submarine == true)) break;
sub._x += 0.1;
}
if (bg8.subcore.hitTest(sub._x, sub._y + 40, true) && subhealth > 1 && subjump < -2 && submarine == true) {
subjump = 0;
subhealth -= 1;
smashy.play();
}
for (;;) {
if (!(bg8.subcore.hitTest(sub._x, sub._y + 40, true) && subhealth > 1 && submarine == true)) break;
sub._y -= 0.1;
}
if (bg8.subcore.hitTest(sub._x, sub._y - 40, true) && subhealth > 1 && subjump > 2 && submarine == true) {
subjump = 0;
subhealth -= 1;
smashy.play();
}
for (;;) {
if (!(bg8.subcore.hitTest(sub._x, sub._y - 40, true) && submarine == true)) break;
sub._y += 0.1;
}
if (submarine == true) {
subcamy = 200 - sub._y;
subcamx = 300 - sub._x;
}
if (sub._y < 150 && pause != true && submarine == true || sub._y > 200 && pause != true && submarine == true) {
bg8._y += subcamy / 30;
sub._y += subcamy / 30;
}
if (sub._x < 250 && pause != true && submarine == true || sub._x > 300 && pause != true && submarine == true) {
bg8._x += subcamx / 30;
sub._x += subcamx / 30;
}
if (subhealth <= 1 && subdie != true) {
respawnv = 0;
subdie = true;
}
if (pause != true) {
respawnv += 1;
subtimer += 1;
}
if (respawnv > 70 && subdie == true) {
subhealth = 10;
sub._y = -4444;
gyro._y = 2222;
submarine = false;
midg._y = intymidg;
gauge.gorp.play();
subdie = false;
respawnv = 0;
}
if (gyro.hitTest(insubport) && jump < 0 && submarine != true) {
subhealth = 10;
sub._x = insubport._x;
sub._y = insubport._y + 30;
musicc.gotoAndPlay(2);
sublunge = 0;
subjump = -9;
submarine = true;
}
if (sub.hitTest(insubport) && submarine == true) {
subhealth = 10;
subtimer = 0;
sublunge = 0;
subjump = -9;
submarine = true;
}
if (gyro.hitTest(outsubport) && subhealth >= 10 && achievb2 != true) {
duplicateMovieClip(reward, 'rewarder', 984);
rewarder._x = 300;
rewarder._y = 200;
rewarder.gotoAndPlay('reward3');
achievb2 = true;
goals2 += 1;
}
if (gyro.hitTest(outsubport) && subtimer <= 7800 && achievb3 != true) {
duplicateMovieClip(reward, 'rewarder2', 985);
rewarder2._x = 300;
rewarder2._y = 170;
rewarder2.gotoAndPlay('reward4');
achievb3 = true;
goals2 += 1;
}
if (gyro.hitTest(outsubport) && submarine == true) {
sub._y = -4444;
musicc.gotoAndPlay(50);
gyro._x = outsubport._x;
gyro._y = outsubport._y + 120;
submarine = false;
}
if (!Key.isDown(67)) {
cohert = false;
}
if (Key.isDown(67) && cohert != true && portaled != true && pause != true && portaled != true) {
pause = true;
cohert = true;
gyro.stop();
}
if (Key.isDown(67) && cohert != true && pause == true) {
pause = false;
cohert = true;
}
if (pause == true && portaled != true && torial._visible != true) {
gyro.stop();
gauge.boc.gotoAndPlay(60);
pausemen._visible = true;
gauge.puzzle.gotoAndPlay(60);
gauge.gyroletters.gotoAndPlay(60);
gyro.goop.gotoAndPlay(1);
}
if (pause != true && portaled != true && torial._visible != true) {
pausemen._visible = false;
}
if (dead == true) {
jump = 0;
ht = 0;
}
if (pause == true) {
_quality = 'High';
}
if (pause != true && qset >= 3) {
_quality = 'High';
}
if (pause != true && qset == 2) {
_quality = 'Medium';
}
if (pause != true && qset <= 1) {
_quality = 'Low';
}
boomerang1._x = bg8._x - boomx1;
boomerang1._y = bg8._y - boomy1;
star1._x = bg8._x - starx1;
star1._y = bg8._y - stary1;
star2._x = bg8._x - starx2;
star2._y = bg8._y - stary2;
star3._x = bg8._x - starx3;
star3._y = bg8._y - stary3;
star4._x = bg8._x - starx4;
star4._y = bg8._y - stary4;
star5._x = bg8._x - starx5;
star5._y = bg8._y - stary5;
gauge.blade.gotoAndStop(weapon);
bcoinb1._x = bg8._x - bcoinbx1;
bcoinb1._y = bg8._y - bcoinby1;
bcoinb2._x = bg8._x - bcoinbx2;
bcoinb2._y = bg8._y - bcoinby2;
bcoinb3._x = bg8._x - bcoinbx3;
bcoinb3._y = bg8._y - bcoinby3;
bcoinb4._x = bg8._x - bcoinbx4;
bcoinb4._y = bg8._y - bcoinby4;
bcoinb5._x = bg8._x - bcoinbx5;
bcoinb5._y = bg8._y - bcoinby5;
coinb1._x = bg8._x - coinbx1;
coinb1._y = bg8._y - coinby1;
coinb2._x = bg8._x - coinbx2;
coinb2._y = bg8._y - coinby2;
coinb3._x = bg8._x - coinbx3;
coinb3._y = bg8._y - coinby3;
coinb4._x = bg8._x - coinbx4;
coinb4._y = bg8._y - coinby4;
coinb5._x = bg8._x - coinbx5;
coinb5._y = bg8._y - coinby5;
coinb6._x = bg8._x - coinbx6;
coinb6._y = bg8._y - coinby6;
coinb7._x = bg8._x - coinbx7;
coinb7._y = bg8._y - coinby7;
coinb8._x = bg8._x - coinbx8;
coinb8._y = bg8._y - coinby8;
coinb9._x = bg8._x - coinbx9;
coinb9._y = bg8._y - coinby9;
coinb10._x = bg8._x - coinbx10;
coinb10._y = bg8._y - coinby10;
coinb11._x = bg8._x - coinbx11;
coinb11._y = bg8._y - coinby11;
coinb12._x = bg8._x - coinbx12;
coinb12._y = bg8._y - coinby12;
coinb13._x = bg8._x - coinbx13;
coinb13._y = bg8._y - coinby13;
coinb14._x = bg8._x - coinbx14;
coinb14._y = bg8._y - coinby14;
coinb15._x = bg8._x - coinbx15;
coinb15._y = bg8._y - coinby15;
coinb16._x = bg8._x - coinbx16;
coinb16._y = bg8._y - coinby16;
coinb17._x = bg8._x - coinbx17;
coinb17._y = bg8._y - coinby17;
coinb18._x = bg8._x - coinbx18;
coinb18._y = bg8._y - coinby18;
coinb19._x = bg8._x - coinbx19;
coinb19._y = bg8._y - coinby19;
coinb20._x = bg8._x - coinbx20;
coinb20._y = bg8._y - coinby20;
coinb21._x = bg8._x - coinbx21;
coinb21._y = bg8._y - coinby21;
coinb22._x = bg8._x - coinbx22;
coinb22._y = bg8._y - coinby22;
coinb23._x = bg8._x - coinbx23;
coinb23._y = bg8._y - coinby23;
coinb24._x = bg8._x - coinbx24;
coinb24._y = bg8._y - coinby24;
coinb25._x = bg8._x - coinbx25;
coinb25._y = bg8._y - coinby25;
coinb26._x = bg8._x - coinbx26;
coinb26._y = bg8._y - coinby26;
coinb27._x = bg8._x - coinbx27;
coinb27._y = bg8._y - coinby27;
coinb28._x = bg8._x - coinbx28;
coinb28._y = bg8._y - coinby28;
coinb29._x = bg8._x - coinbx29;
coinb29._y = bg8._y - coinby29;
coinb30._x = bg8._x - coinbx30;
coinb30._y = bg8._y - coinby30;
coinb31._x = bg8._x - coinbx31;
coinb31._y = bg8._y - coinby31;
coinb32._x = bg8._x - coinbx32;
coinb32._y = bg8._y - coinby32;
coinb33._x = bg8._x - coinbx33;
coinb33._y = bg8._y - coinby33;
coinb34._x = bg8._x - coinbx34;
coinb34._y = bg8._y - coinby34;
coinb35._x = bg8._x - coinbx35;
coinb35._y = bg8._y - coinby35;
coinb36._x = bg8._x - coinbx36;
coinb36._y = bg8._y - coinby36;
coinb37._x = bg8._x - coinbx37;
coinb37._y = bg8._y - coinby37;
coinb38._x = bg8._x - coinbx38;
coinb38._y = bg8._y - coinby38;
coinb39._x = bg8._x - coinbx39;
coinb39._y = bg8._y - coinby39;
coinb40._x = bg8._x - coinbx40;
coinb40._y = bg8._y - coinby40;
magicswitch._x = bg8._x - magix;
magicswitch._y = bg8._y - magiy;
gauge.lives = lives;
gauge.cash = cash;
gauge.score = benny;
starz1._x = bg8._x - starzx1;
starz1._y = bg8._y - starzy1;
starz2._x = bg8._x - starzx2;
starz2._y = bg8._y - starzy2;
starz3._x = bg8._x - starzx3;
starz3._y = bg8._y - starzy3;
starz4._x = bg8._x - starzx4;
starz4._y = bg8._y - starzy4;
starz5._x = bg8._x - starzx5;
starz5._y = bg8._y - starzy5;
starz6._x = bg8._x - starzx6;
starz6._y = bg8._y - starzy6;
flamebox._x = bg8._x - fgbx;
flamebox._y = bg8._y - fgby;
mot = 300 - gyro._x;
key._x = bg8._x - keyx;
key._y = bg8._y - keyy;
letterr._x = bg8._x - glx;
letterr._y = bg8._y - gly;
gauge.gyroletters.letterg._visible = gletter;
gauge.gyroletters.lettery._visible = yletter;
gauge.gyroletters.letterr._visible = rletter;
gauge.gyroletters.lettero._visible = oletter;
portalway._visible = gate;
gyroswitch1._x = bg8._x - gysx1;
gyroswitch1._y = bg8._y - gysy1;
gyroswitch2._x = bg8._x - gysx2;
gyroswitch2._y = bg8._y - gysy2;
gyroswitch3._x = bg8._x - gysx3;
gyroswitch3._y = bg8._y - gysy3;
gyroswitch4._x = bg8._x - gysx4;
gyroswitch4._y = bg8._y - gysy4;
gyroswitch5._x = bg8._x - gysx5;
gyroswitch5._y = bg8._y - gysy5;
gyroswitch6._x = bg8._x - gysx6;
gyroswitch6._y = bg8._y - gysy6;
bugenemy1._x = bg8._x - begx1;
bugenemy1._y = bg8._y - begy1;
bugenemy2._x = bg8._x - begx2;
bugenemy2._y = bg8._y - begy2;
bugenemy3._x = bg8._x - begx3;
bugenemy3._y = bg8._y - begy3;
wall.gotoAndStop(nero);
spring._x = bg8._x - springx;
spring._y = bg8._y - springy;
wall._x = bg8._x - wallx;
wall._y = bg8._y - wally;
bg8.wall.gotoAndStop(nero);
bg8.core.gotoAndStop(nero);
puzzle._x = bg8._x - pzx;
puzzle._y = bg8._y - pzy;
puzzle2._x = bg8._x - pzx2;
puzzle2._y = bg8._y - pzy2;
gauge.puzzle.count = puzzles;
portalway._x = bg8._x - portx;
portalway._y = bg8._y - porty;
tutorboxx._x = bg8._x - tbx;
tutorboxx._y = bg8._y - tby;
tutorboxx2._x = bg8._x - tbx2;
tutorboxx2._y = bg8._y - tby2;
crate._x = bg8._x - cratex;
crate._y = bg8._y - cratey;
puzzle2._x = bg8._x - pzx2;
puzzle2._y = bg8._y - pzy2;
mine1._x = bg8._x - mine1x;
mine1._y = bg8._y - mine1y;
mine2._x = bg8._x - mine2x;
mine2._y = bg8._y - mine2y;
mine3._x = bg8._x - mine3x;
mine3._y = bg8._y - mine3y;
mine4._x = bg8._x - mine4x;
mine4._y = bg8._y - mine4y;
mine5._x = bg8._x - mine5x;
mine5._y = bg8._y - mine5y;
mine6._x = bg8._x - mine6x;
mine6._y = bg8._y - mine6y;
mine7._x = bg8._x - mine7x;
mine7._y = bg8._y - mine7y;
mine8._x = bg8._x - mine8x;
mine8._y = bg8._y - mine8y;
raincash._x = bg8._x - raicax;
raincash._y = bg8._y - raicay;
insubport._x = bg8._x - insubportx;
insubport._y = bg8._y - insubporty;
outsubport._x = bg8._x - outsubportx;
outsubport._y = bg8._y - outsubporty;
badguy1._x = bg8._x - badgx1;
badguy1._y = bg8._y - badgy1;
benzo1 += 1;
gauge.boc.count = bcash;
badguy2._x = bg8._x - badgx2;
badguy2._y = bg8._y - badgy2;
benzo2 += 1;
};
}
movieClip 1825 {
}
movieClip 1828 {
}
movieClip 1830 {
frame 1 {
stop();
}
}
movieClip 1832 {
}
movieClip 1834 {
frame 1 {
stop();
}
}
movieClip 1838 {
}
movieClip 1840 {
}
movieClip 1847 {
}
movieClip 1849 {
}
movieClip 1850 {
}
movieClip 1852 {
}
movieClip 1854 {
frame 1 {
stop();
}
}
movieClip 1856 {
}
movieClip 1867 {
frame 90 {
stop();
}
}
movieClip 1868 {
frame 1 {
stop();
}
}
movieClip 1870 {
}
movieClip 1873 {
}
movieClip 1874 {
frame 1 {
stop();
}
frame 15 {
gotoAndPlay(2);
}
}
movieClip 1875 {
frame 1 {
stop();
}
}
movieClip 1877 {
}
movieClip 1878 {
frame 44 {
stop();
}
}
movieClip 1880 {
}
movieClip 1882 {
}
movieClip 1883 {
frame 1 {
stop();
}
}
movieClip 1885 {
frame 1 {
stop();
}
frame 10 {
gotoAndStop(1);
}
}
movieClip 1889 {
frame 290 {
stop();
}
}
instance of movieClip 1889 {
onClipEvent (load) {
this.swapDepths(9700);
}
}
frame 47 {
if (qset == undefined) {
qset = 2;
}
if (qset == 2) {
_quality = 'Medium';
}
if (qset == 1) {
_quality = 'Low';
}
if (qset == 3) {
_quality = 'High';
}
}
frame 47 {
for (i in _root) {
_root[i].swapDepths(10102);
removeMovieClip(_root[i]);
}
delete eval(onEnterFrame());
}
frame 48 {
delete eval(onEnterFrame());
}
frame 49 {
if (qset == undefined) {
qset = 2;
}
if (qset == 2) {
_quality = 'Medium';
}
if (qset == 1) {
_quality = 'Low';
}
if (qset == 3) {
_quality = 'High';
}
}
frame 49 {
stop();
blue = 'blue';
pink = 'pink';
nero = 1;
renzo = 0;
bg9.core._visible = false;
bg9.trap._visible = false;
bg9.ceiling._visible = false;
bg9.wall._visible = false;
bg9.core._visible = false;
if (weapon == undefined) {
weapon = 'boomerang';
hammer = true;
}
if (cash == undefined) {
cash = 0;
bcash = 0;
}
if (puzzles == undefined) {
puzzles = 0;
}
if (lives == undefined) {
lives = 9;
}
torial._visible = false;
benny = 0;
flly = 0;
torial.swapDepths(10001);
powertimer.swapDepths(9997);
tuto.swapDepths(9998);
pausemen.swapDepths(9999);
gauge.swapDepths(10000);
tran.swapDepths(50000);
wall.swapDepths(500);
arrows.swapDepths(502);
gameover.swapDepths(60000);
gyrocannon1.swapDepths(701);
gyrocannon2.swapDepths(702);
gyrocannon3.swapDepths(703);
gyrocannon4.swapDepths(704);
gyrocannon5.swapDepths(705);
trape = 0;
gate = false;
pause = false;
key._visible = true;
boomer = 1;
type = 'norm';
jump = 10;
ht = 0.5;
gyro.gotoAndPlay('jump');
mxy = gyro._y - 80;
mxbg9y = bg9._y;
motion = 7;
tutorialsc = true;
mxx = gyro._x + 70;
mnx = gyro._x - 120;
whiptimer = 50;
whipper = 40;
att = 0;
gen = 0.9300000000000001;
intx = bg9._x - gyro._x;
inty = bg9._y - gyro._y;
tbx = bg9._x - tutorboxx._x;
tby = bg9._y - tutorboxx._y;
tbx2 = bg9._x - tutorboxx2._x;
tby2 = bg9._y - tutorboxx2._y;
if (gletter == undefined) {
gletter = false;
}
if (yletter == undefined) {
yletter = false;
}
if (rletter == undefined) {
rletter = false;
}
if (oletter == undefined) {
oletter = false;
}
intymidg = midg._y;
intymidg = midg._y;
portaled = false;
springx = bg9._x - spring._x;
springy = bg9._y - spring._y;
springx2 = bg9._x - spring2._x;
springy2 = bg9._y - spring2._y;
springx3 = bg9._x - spring3._x;
springy3 = bg9._y - spring3._y;
gysx1 = bg9._x - gyroswitch1._x;
gysy1 = bg9._y - gyroswitch1._y;
gysx2 = bg9._x - gyroswitch2._x;
gysy2 = bg9._y - gyroswitch2._y;
gysx3 = bg9._x - gyroswitch3._x;
gysy3 = bg9._y - gyroswitch3._y;
gysx4 = bg9._x - gyroswitch4._x;
gysy4 = bg9._y - gyroswitch4._y;
gysx5 = bg9._x - gyroswitch5._x;
gysy5 = bg9._y - gyroswitch5._y;
gyrotate1 = 1;
gyrotate2 = 1;
gyrotate3 = 1;
gyrotate4 = 1;
gyrotate5 = 1;
begx1 = bg9._x - bugenemy1._x;
begy1 = bg9._y - bugenemy1._y;
begx2 = bg9._x - bugenemy2._x;
begy2 = bg9._y - bugenemy2._y;
begx3 = bg9._x - bugenemy3._x;
begy3 = bg9._y - bugenemy3._y;
glx = bg9._x - lettero._x;
gly = bg9._y - lettero._y;
pzx = bg9._x - puzzle._x;
pzy = bg9._y - puzzle._y;
pzx2 = bg9._x - puzzle2._x;
pzy2 = bg9._y - puzzle2._y;
portx = bg9._x - portalway._x;
porty = bg9._y - portalway._y;
fgbx = bg9._x - flamebox._x;
fgby = bg9._y - flamebox._y;
badgx1 = bg9._x - badguy1._x;
badgy1 = bg9._y - badguy1._y;
badgix1 = badguy1._x;
badgiy1 = badguy1._y;
benzo1 = 0;
badgx2 = bg9._x - badguy2._x;
badgy2 = bg9._y - badguy2._y;
badgix2 = badguy2._x;
badgiy2 = badguy2._y;
benzo2 = 0;
bcoinbx1 = bg9._x - bcoinb1._x;
bcoinby1 = bg9._y - bcoinb1._y;
bcoinbx2 = bg9._x - bcoinb2._x;
bcoinby2 = bg9._y - bcoinb2._y;
bcoinbx3 = bg9._x - bcoinb3._x;
bcoinby3 = bg9._y - bcoinb3._y;
bcoinbx4 = bg9._x - bcoinb4._x;
bcoinby4 = bg9._y - bcoinb4._y;
bcoinbx5 = bg9._x - bcoinb5._x;
bcoinby5 = bg9._y - bcoinb5._y;
coinbx1 = bg9._x - coinb1._x;
coinby1 = bg9._y - coinb1._y;
coinbx2 = bg9._x - coinb2._x;
coinby2 = bg9._y - coinb2._y;
coinbx3 = bg9._x - coinb3._x;
coinby3 = bg9._y - coinb3._y;
coinbx4 = bg9._x - coinb4._x;
coinby4 = bg9._y - coinb4._y;
coinbx5 = bg9._x - coinb5._x;
coinby5 = bg9._y - coinb5._y;
coinbx6 = bg9._x - coinb6._x;
coinby6 = bg9._y - coinb6._y;
coinbx7 = bg9._x - coinb7._x;
coinby7 = bg9._y - coinb7._y;
coinbx8 = bg9._x - coinb8._x;
coinby8 = bg9._y - coinb8._y;
coinbx9 = bg9._x - coinb9._x;
coinby9 = bg9._y - coinb9._y;
coinbx10 = bg9._x - coinb10._x;
coinby10 = bg9._y - coinb10._y;
coinbx11 = bg9._x - coinb11._x;
coinby11 = bg9._y - coinb11._y;
coinbx12 = bg9._x - coinb12._x;
coinby12 = bg9._y - coinb12._y;
coinbx13 = bg9._x - coinb13._x;
coinby13 = bg9._y - coinb13._y;
coinbx14 = bg9._x - coinb14._x;
coinby14 = bg9._y - coinb14._y;
coinbx15 = bg9._x - coinb15._x;
coinby15 = bg9._y - coinb15._y;
coinbx16 = bg9._x - coinb16._x;
coinby16 = bg9._y - coinb16._y;
coinbx17 = bg9._x - coinb17._x;
coinby17 = bg9._y - coinb17._y;
coinbx18 = bg9._x - coinb18._x;
coinby18 = bg9._y - coinb18._y;
coinbx19 = bg9._x - coinb19._x;
coinby19 = bg9._y - coinb19._y;
coinbx20 = bg9._x - coinb20._x;
coinby20 = bg9._y - coinb20._y;
coinbx21 = bg9._x - coinb21._x;
coinby21 = bg9._y - coinb21._y;
coinbx22 = bg9._x - coinb22._x;
coinby22 = bg9._y - coinb22._y;
coinbx23 = bg9._x - coinb23._x;
coinby23 = bg9._y - coinb23._y;
coinbx24 = bg9._x - coinb24._x;
coinby24 = bg9._y - coinb24._y;
coinbx25 = bg9._x - coinb25._x;
coinby25 = bg9._y - coinb25._y;
coinbx26 = bg9._x - coinb26._x;
coinby26 = bg9._y - coinb26._y;
coinbx27 = bg9._x - coinb27._x;
coinby27 = bg9._y - coinb27._y;
coinbx28 = bg9._x - coinb28._x;
coinby28 = bg9._y - coinb28._y;
coinbx29 = bg9._x - coinb29._x;
coinby29 = bg9._y - coinb29._y;
coinbx30 = bg9._x - coinb30._x;
coinby30 = bg9._y - coinb30._y;
coinbx31 = bg9._x - coinb31._x;
coinby31 = bg9._y - coinb31._y;
coinbx32 = bg9._x - coinb32._x;
coinby32 = bg9._y - coinb32._y;
coinbx33 = bg9._x - coinb33._x;
coinby33 = bg9._y - coinb33._y;
coinbx34 = bg9._x - coinb34._x;
coinby34 = bg9._y - coinb34._y;
coinbx35 = bg9._x - coinb35._x;
coinby35 = bg9._y - coinb35._y;
coinbx36 = bg9._x - coinb36._x;
coinby36 = bg9._y - coinb36._y;
coinbx37 = bg9._x - coinb37._x;
coinby37 = bg9._y - coinb37._y;
coinbx38 = bg9._x - coinb38._x;
coinby38 = bg9._y - coinb38._y;
coinbx39 = bg9._x - coinb39._x;
coinby39 = bg9._y - coinb39._y;
coinbx40 = bg9._x - coinb40._x;
coinby40 = bg9._y - coinb40._y;
portaled = false;
magix = bg9._x - magicswitch._x;
magiy = bg9._y - magicswitch._y;
keyx = bg9._x - key._x;
keyy = bg9._y - key._y;
wallx = bg9._x - wall._x;
wally = bg9._y - wall._y;
cratex = bg9._x - crate._x;
cratey = bg9._y - crate._y;
push = 1;
raicax = bg9._x - raincash._x;
raicay = bg9._y - raincash._y;
gycanx1 = bg9._x - gyrocannon1._x;
gycany1 = bg9._y - gyrocannon1._y;
gycanx2 = bg9._x - gyrocannon2._x;
gycany2 = bg9._y - gyrocannon2._y;
gycanx3 = bg9._x - gyrocannon3._x;
gycany3 = bg9._y - gyrocannon3._y;
gycanx4 = bg9._x - gyrocannon4._x;
gycany4 = bg9._y - gyrocannon4._y;
gycanx5 = bg9._x - gyrocannon5._x;
gycany5 = bg9._y - gyrocannon5._y;
onEnterFrame = function () {
i = 0;
while (i <= 30) {
if (gyro.hitTest(_root['coinb' + i]) && _root['coinb' + i]._visible == true) {
cash += 1;
klepto += 1;
_root['coinb' + i].play();
_root['coinb' + i]._visible = true;
duplicateMovieClip('star' + pink, 'starz1', 1000);
starzx1 = bg9._x - gyro._x;
starzy1 = bg9._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz2', 1002);
starzx2 = bg9._x - gyro._x;
starzy2 = bg9._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz3', 1003);
starzx3 = bg9._x - gyro._x;
starzy3 = bg9._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz4', 1004);
starzx4 = bg9._x - gyro._x;
starzy4 = bg9._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz5', 1005);
starzx5 = bg9._x - gyro._x;
starzy5 = bg9._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz6', 1006);
starzx6 = bg9._x - gyro._x;
starzy6 = bg9._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
dupstar = 0;
score += 10;
}
if (gyro.hitTest(spring) && jump < 0) {
jump = 39;
ht = 0.5;
spring.slug.play();
}
if (gyro.hitTest(spring2) && jump < 0) {
jump = 29;
ht = 0.5;
spring2.slug.play();
}
if (gyro.hitTest(spring3) && jump < 0) {
jump = 29;
ht = 0.4;
spring3.slug.play();
}
if (gyro.hitTest(spring.core) && ht <= 0) {
lives -= 1;
gauge.gorp.play();
gyro._x = bg9._x - intx;
gyro._y = bg9._y - inty;
}
if (gyro.hitTest(spring2.core) && ht <= 0) {
lives -= 1;
gauge.gorp.play();
gyro._x = bg9._x - intx;
gyro._y = bg9._y - inty;
}
if (gyro.hitTest(spring3.core) && ht <= 0) {
lives -= 1;
gauge.gorp.play();
gyro._x = bg9._x - intx;
gyro._y = bg9._y - inty;
}
if (gyro.hitTest(_root['bcoinb' + i]) && _root['bcoinb' + i]._visible == true) {
bcash += 1;
_root['bcoinb' + i].play();
_root['bcoinb' + i]._visible = true;
gauge.boc.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg9._x - gyro._x;
starzy1 = bg9._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg9._x - gyro._x;
starzy2 = bg9._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg9._x - gyro._x;
starzy3 = bg9._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg9._x - gyro._x;
starzy4 = bg9._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg9._x - gyro._x;
starzy5 = bg9._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg9._x - gyro._x;
starzy6 = bg9._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
dupstar = 0;
score += 10;
}
if (gyro.hitTest(key) && key._visible == true) {
gate = true;
key._visible = false;
key.gotoAndStop(55);
}
if (gyro.hitTest(lettero) && oletter != true && lettero._visible == true) {
lettero._visible = false;
oletter = true;
gyroletterx += 1;
lettero.gotoAndStop(55);
gauge.gyroletters.play();
duplicateMovieClip('star' + pink, 'starz1', 1000);
starzx1 = bg9._x - gyro._x;
starzy1 = bg9._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz2', 1002);
starzx2 = bg9._x - gyro._x;
starzy2 = bg9._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz3', 1003);
starzx3 = bg9._x - gyro._x;
starzy3 = bg9._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz4', 1004);
starzx4 = bg9._x - gyro._x;
starzy4 = bg9._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz5', 1005);
starzx5 = bg9._x - gyro._x;
starzy5 = bg9._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz6', 1006);
starzx6 = bg9._x - gyro._x;
starzy6 = bg9._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
score += 50;
}
if (gletter == true && yletter == true && rletter == true && oletter == true) {
gletter = false;
yletter = false;
rletter = false;
oletter = false;
lives += 1;
soundr.gotoAndPlay('freelife');
cash = 0;
}
if (gyro.hitTest(puzzle) && puzzle._visible == true) {
puzzles += 1;
puzzle._visible = false;
gauge.puzzle.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg9._x - gyro._x;
starzy1 = bg9._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg9._x - gyro._x;
starzy2 = bg9._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg9._x - gyro._x;
starzy3 = bg9._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg9._x - gyro._x;
starzy4 = bg9._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg9._x - gyro._x;
starzy5 = bg9._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg9._x - gyro._x;
starzy6 = bg9._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
score += 100;
}
if (cash >= 100) {
lives += 1;
soundr.gotoAndPlay('freelife');
cash = 0;
}
if (portalway.core.hitTest(gyro._x, gyro._y, true) && portalway._visible == true && jump < 0) {
gyro.gotoAndStop('teleport');
portaled = true;
pause = true;
}
++i;
}
if (trap != true && gyro._y > mxy && aim != true && pause != true || trap != true && gyro._y <= mxy && bg9._y <= mxbg9y && pause != true && jump < 0 && aim != true || gyro._y > 400 && pause != true && trap != true && bg9._y <= mxbg9y && aim != true) {
gyro._y -= jump;
jump -= ht;
}
if (klepto >= 130 && achievb1 != true) {
duplicateMovieClip(reward, 'rewarder', 984);
rewarder._x = 300;
rewarder._y = 200;
rewarder.gotoAndPlay('reward2');
achievb1 = true;
goals2 += 1;
klepto = 0;
}
if (gyro.hitTest(bg9.frontier) && achievb5 != true) {
duplicateMovieClip(reward, 'rewarder', 984);
rewarder._x = 300;
rewarder._y = 200;
rewarder.gotoAndPlay('reward6');
achievb5 = true;
goals2 += 1;
klepto = 0;
}
if (trap != true && gyro._y <= mxy && aim != true && pause != true || trap != true && aim != true && gyro._y > 300 && pause != true && bg9._y > mxbg9y && jump < 0) {
bg9._y += jump;
midg._y += jump / 4;
jump -= ht;
}
if (Key.isDown(65) && pause != true && dead != true && climb != true && trap != true && ht == 0 && duck != true && aim != true && rope != true && whiptimer > whipper) {
jump = 10;
ht = 0.5;
gyro.gotoAndPlay('jump');
}
if (jump < -15) {
jump = -16;
}
if (Key.isDown(65) && pause != true && dead != true && climb != true && aim != true && trap != true && ht == 0 && duck == true && rope != true && whiptimer > whipper) {
jump = 11;
ht = 0.5;
duck = false;
motion = 0;
gyro.gotoAndPlay('boostjump');
}
if (Key.isDown(40) && pause != true && portaled != true && dead != true && climb != true && aim != true && trap != true && ht == 0 && rope != true && whiptimer > whipper && att == 0) {
duck = true;
gyro.gotoAndStop('duck');
}
if (!Key.isDown(40) && pause != true && portaled != true && dead != true && climb != true && trap != true && duck == true && rope != true && whiptimer > whipper && att == 0) {
duck = false;
gyro.gotoAndStop(1);
}
if (bg9.core.hitTest(gyro._x, gyro._y + 25, true) && dead != true && climb != true && jump < -3 && whiptimer > whipper && att == 0) {
gyro.gotoAndStop(1);
jump = 0;
motion = 7;
att = 0;
ht = 0;
fliper = 1;
ken = false;
}
if (!bg9.core.hitTest(gyro._x, gyro._y + 35, true) && portaled != true && dead != true && climb != true && ht == 0 && rope != true && whiptimer > whipper && att == 0) {
gyro.gotoAndPlay('ballup');
ht = 0.5;
}
for (;;) {
if (!(bg9.core.hitTest(gyro._x, gyro._y + 25, true) && jump < 0.7 && whiptimer > whipper)) break;
gyro._y -= 0.1;
}
for (;;) {
if (!(bg9.ceiling.hitTest(gyro._x, gyro._y - 35, true) && jump > 0 && whiptimer > whipper)) break;
gyro._y -= 0.1;
jump -= 3;
}
if (Key.isDown(39) && gyro._x > 0 && gyro._x < 600 && pause != true && portaled != true && dead != true && climb != true && trap != true && duck != true && aim != true && gyro._x <= mxx && rope != true && whiptimer > whipper && att == 0) {
gyro.play();
goright = true;
goleft = false;
gyro._x += motion / push;
bobob = 90;
gyro._xscale = 50;
}
if (Key.isDown(37) && gyro._x > 0 && gyro._x < 600 && pause != true && portaled != true && dead != true && climb != true && trap != true && duck != true && aim != true && gyro._x >= mnx && rope != true && whiptimer > whipper && att == 0) {
gyro.play();
goleft = true;
goright = false;
gyro._x -= motion / push;
bobob = -90;
gyro._xscale = -50;
}
if (Key.isDown(39) && gyro._x > 0 && gyro._x < 600 && pause != true && portaled != true && dead != true && climb != true && trap != true && duck != true && aim != true && gyro._x > mxx && rope != true && whiptimer > whipper && att == 0) {
gyro.play();
goright = true;
goleft = false;
bg9._x -= motion / push;
midg._x -= motion / 30;
bobob = 90;
gyro._xscale = 50;
}
if (Key.isDown(37) && gyro._x > 0 && gyro._x < 600 && pause != true && portaled != true && dead != true && climb != true && trap != true && duck != true && aim != true && gyro._x < mnx && rope != true && whiptimer > whipper && att == 0) {
gyro.play();
goleft = true;
goright = false;
bobob = -90;
bg9._x += motion / push;
midg._x += motion / 30;
gyro._xscale = -50;
}
if (!Key.isDown(37) && pause != true && pause != true && dead != true && climb != true && ht == 0 && trap != true && duck != true && aim != true && goleft == true && rope != true && whiptimer > whipper && att == 0) {
gyro.gotoAndStop(1);
goleft = false;
}
if (!Key.isDown(39) && pause != true && pause != true && dead != true && climb != true && ht == 0 && trap != true && duck != true && aim != true && goright == true && rope != true && whiptimer > whipper && att == 0) {
gyro.gotoAndStop(1);
goright = false;
}
if (trap != true && pause != true && portaled != true) {
bg9._x -= att;
midg._x -= att / 30;
}
if (bg9.spikes.hitTest(gyro._x, gyro._y + 30, true)) {
att = 0;
lives -= 1;
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg9._x - gyro._x;
starzy1 = bg9._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg9._x - gyro._x;
starzy2 = bg9._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg9._x - gyro._x;
starzy3 = bg9._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg9._x - gyro._x;
starzy4 = bg9._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg9._x - gyro._x;
starzy5 = bg9._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz6', 1006);
starzx6 = bg9._x - gyro._x;
starzy6 = bg9._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
gauge.gorp.play();
gyro._x = bg9._x - intx;
gyro._y = bg9._y - inty;
}
if (bg9.wall.hitTest(gyro._x + 20, gyro._y, true)) {
gyro._x -= motion;
att = 0;
}
while (bg9.wall.hitTest(gyro._x + 20, gyro._y, true)) {
gyro._x -= 0.1;
}
if (bg9.wall.hitTest(gyro._x - 20, gyro._y, true)) {
att = 0;
gyro._x += motion;
}
while (bg9.wall.hitTest(gyro._x - 20, gyro._y, true)) {
gyro._x += 0.1;
}
if (gyro._y < 200 && aim != true && trap != true && ht == 0 && dead != true && climb != true) {
gyro._y += bett / 5;
bg9._y += bett / 5;
midg._y += bett / 200;
}
if (bg9._y <= mxbg9y) {
bg9._y = mxbg9y;
}
if (gyro._y > 330 && aim != true && bg9._y > mxbg9y && dead != true) {
gyro._y += bett;
bg9._y += bett;
midg._y += bett / 200;
}
if (gyro._y < 300 && aim != true && trap == true && dead != true && climb != true) {
gyro._y += bett / 3;
bg9._y += bett / 3;
midg._y += bett / 200;
}
if (pause != true) {
bett = (330 - gyro._y) / 5;
}
if (gyro._x < mnx - 60 && bleco <= 0) {
bg9._x += mot / 23;
midg._x += mot / 680;
gyro._x += mot / 23;
}
if (gyro._x > mxx + 60 && bleco <= 0) {
bg9._x += mot / 23;
midg._x += mot / 680;
gyro._x += mot / 23;
}
if (midg._y <= intymidg) {
midg._y = intymidg;
}
if (midg._x <= 197) {
midg._x = 197;
}
if (benny < score) {
benny += 1;
}
if (pause != true) {
starzx1 += starburst1;
starburst1 *= 0.94;
starzy1 += starjump1;
starjump1 -= 0.5;
starzx2 += starburst2;
starburst2 *= 0.94;
starzy2 += starjump2;
starjump2 -= 0.5;
starzx3 += starburst3;
starburst3 *= 0.94;
starzy3 += starjump3;
starjump3 -= 0.5;
starzx4 += starburst4;
starburst4 *= 0.94;
starzy4 += starjump4;
starjump4 -= 0.5;
starzx5 += starburst5;
starburst5 *= 0.94;
starzy5 += starjump5;
starjump5 -= 0.5;
starzx6 += starburst6;
starburst6 *= 0.94;
starzy6 += starjump6;
starjump6 -= 0.5;
}
if (gyro._y > 1700 && lives > 0) {
lives -= 1;
gauge.gorp.play();
gyro._x = bg9._x - intx;
gyro._y = -300;
}
if (lives <= 0) {
gameover.play();
portaled = true;
pause = true;
}
if (bg9.trap.hitTest(gyro._x, gyro._y - 30, true) && flope != true && trap != true && ken != true && jump <= 0) {
trap = true;
stt = 0;
trape = 1;
motion = 9;
jump = 0;
ht = 0;
}
for (;;) {
if (!(bg9.trap.hitTest(gyro._x, gyro._y - 30, true) && flope != true && jump <= 1)) break;
gyro._y -= 0.1;
}
if (!Key.isDown(65) && jump < -9) {
fliper = 0;
}
if (trape > 100) {
trape = 2;
}
if (trap == true) {
gyro.bob.bobo.gotoAndStop(Math.round(fliper));
gyro.gotoAndStop('trapeze');
gyro.trap.gotoAndStop(Math.round(trape));
}
if (Key.isDown(65) && trap == true && pause != true && portaled != true && gyrocannon != true) {
folgot = true;
trape += fliper / 4;
fliper += 0.2;
swingsound.play();
}
if (fliper > 15) {
fliper = 15;
}
if (!Key.isDown(65) && folgot == true && trap == true && pause != true && portaled != true && gyrocannon != true) {
jump = fliper * 1.4;
swingsound.gotoAndStop(1);
trap = false;
folgot = false;
ken = true;
gyro.gotoAndPlay('ballup');
ht = 0.7;
}
if (jump < 0) {
ken = false;
}
if (trap != true) {
whiptimer += 1;
boomx1 -= trajectoryx1;
boomy1 += trajectoryy1;
trajectoryx1 -= ben;
trajectoryy1 -= ken;
boomtimer += 1;
dupstar += 1;
}
if (boomerang1._x > gyro._x) {
ben = 0.5;
}
if (boomerang1._x < gyro._x) {
ben = -0.5;
}
if (boomerang1._y > gyro._y + 20) {
ken = -0.5;
}
if (boomerang1._y < gyro._y - 20) {
ken = 0.5;
}
if (boomerang1._y < gyro._y + 20 && boomerang1._y > gyro._y - 20) {
ken = 0;
trajectoryy1 = 0;
}
if (boomer <= 0 && dupstar > 5) {
duplicateMovieClip('star' + type, 'star' + stardu, stardu + 100);
_root['starx' + stardu] = bg9._x - boomerang1._x;
_root['stary' + stardu] = bg9._y - boomerang1._y;
_root['star' + stardu]._rotation = Math.random() * 360;
stardu += 1;
dupstar = 0;
}
if (stardu > 5) {
stardu = 1;
}
if (Key.isDown(83) && pause != true && dead != true && climb != true && jump <= 0 && ht == 0 && rope != true && aim != true && boomer > 0 && trap != true && duck != true && aim != true && whiptimer > whipper) {
aim = true;
dupstar = 0;
ror = 0;
}
if (aim == true) {
gyro.gotoAndStop('aim');
arrows._x = gyro._x;
arrows._y = gyro._y;
arrows._visible = true;
arrows._rotation = ror * (gyro._xscale / 50);
arrows._xscale = gyro._xscale * 1.25;
}
if (aim != true) {
arrows._visible = false;
}
if (aim == true && Key.isDown(40) && ror < 70) {
ror += 5;
arrows.play();
}
if (aim == true && Key.isDown(38) && ror > -70) {
ror -= 5;
arrows.play();
}
if (boomerang1._x > gyro._x - 50 && boomerang1._x < gyro._x + 50 && boomerang1._y > gyro._y - 50 && boomerang1._y < gyro._y + 50 && boomtimer > 50) {
boomer = 1;
zex = false;
removeMovieClip(boomerang1);
}
if (!Key.isDown(83) && pause != true && aim == true && trap != true && boomer > 0 && whiptimer > whipper && duck != true) {
duplicateMovieClip('boomerang' + type, 'boomerang' + boomer, 200 + boomer);
stardu = 1;
_root['boomx' + boomer] = bg9._x - gyro._x;
_root['boomy' + boomer] = bg9._y - gyro._y - 50 * Math.sin(ror * 0.0174532925199433);
gyro.gotoAndPlay('boomerang');
_root['trajectoryx' + boomer] = 20 * Math.cos(ror * 0.0174532925199433) * (gyro._xscale / 50);
_root['glip' + boomer] = 1 * (gyro._xscale / 80);
_root['trajectoryy' + boomer] = -20 * Math.sin(ror * 0.0174532925199433);
_root['boomacc' + boomer] = 0;
aim = false;
ht = 0;
jump = 0;
ben = 0.5;
ken = 0.5;
boomer = 0;
whiptimer = 0;
whipper = 20;
boomtimer = 0;
}
if (!Key.isDown(67)) {
cohert = false;
}
if (Key.isDown(67) && cohert != true && portaled != true && pause != true && portaled != true) {
pause = true;
cohert = true;
gyro.stop();
}
if (Key.isDown(67) && cohert != true && pause == true) {
pause = false;
cohert = true;
}
if (pause == true && portaled != true && torial._visible != true) {
gyro.stop();
gauge.boc.gotoAndPlay(60);
pausemen._visible = true;
gauge.puzzle.gotoAndPlay(60);
gauge.gyroletters.gotoAndPlay(60);
gyro.goop.gotoAndPlay(1);
}
if (pause != true && portaled != true && torial._visible != true) {
pausemen._visible = false;
}
if (pause != true && ghost1 == true && gyroswitch1._alpha < 100) {
gyroswitch1._alpha += 4;
}
if (pause != true && ghost1 != true && gyroswitch1._alpha > 0) {
gyroswitch1._alpha -= 4;
}
if (gyro._x > gyroswitch1._x && gyro._xscale < 0 || gyro._x < gyroswitch1._x && gyro._xscale > 0) {
ghost1 = false;
}
if (gyro._x > gyroswitch1._x && gyro._xscale > 0 || gyro._x < gyroswitch1._x && gyro._xscale < 0) {
ghost1 = true;
}
if (boomerang1.hitTest(gyroswitch1) && nero <= 1 && ghost1 == true) {
gyroswitch1.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg9._x - gyroswitch1._x;
starzy1 = bg9._y - gyroswitch1._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg9._x - gyroswitch1._x;
starzy2 = bg9._y - gyroswitch1._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg9._x - gyroswitch1._x;
starzy3 = bg9._y - gyroswitch1._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg9._x - gyroswitch1._x;
starzy4 = bg9._y - gyroswitch1._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg9._x - gyroswitch1._x;
starzy5 = bg9._y - gyroswitch1._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
nero = 2;
}
if (pause != true && ghost2 == true && gyroswitch2._alpha < 100) {
gyroswitch2._alpha += 4;
}
if (pause != true && ghost2 != true && gyroswitch2._alpha > 0) {
gyroswitch2._alpha -= 4;
}
if (gyro._x > gyroswitch2._x && gyro._xscale < 0 || gyro._x < gyroswitch2._x && gyro._xscale > 0) {
ghost2 = false;
}
if (gyro._x > gyroswitch2._x && gyro._xscale > 0 || gyro._x < gyroswitch2._x && gyro._xscale < 0) {
ghost2 = true;
}
if (boomerang1.hitTest(gyroswitch2) && nero <= 2 && ghost2 == true) {
gyroswitch2.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg9._x - gyroswitch2._x;
starzy1 = bg9._y - gyroswitch2._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg9._x - gyroswitch2._x;
starzy2 = bg9._y - gyroswitch2._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg9._x - gyroswitch2._x;
starzy3 = bg9._y - gyroswitch2._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg9._x - gyroswitch2._x;
starzy4 = bg9._y - gyroswitch2._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg9._x - gyroswitch2._x;
starzy5 = bg9._y - gyroswitch2._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
nero = 3;
}
if (pause != true && ghost3 == true && gyroswitch3._alpha < 100) {
gyroswitch3._alpha += 4;
}
if (pause != true && ghost3 != true && gyroswitch3._alpha > 0) {
gyroswitch3._alpha -= 4;
}
if (gyro._x > gyroswitch3._x && gyro._xscale < 0 || gyro._x < gyroswitch3._x && gyro._xscale > 0) {
ghost3 = false;
}
if (gyro._x > gyroswitch3._x && gyro._xscale > 0 || gyro._x < gyroswitch3._x && gyro._xscale < 0) {
ghost3 = true;
}
if (boomerang1.hitTest(gyroswitch3) && nero <= 3 && ghost3 == true) {
gyroswitch3.play();
duplicateMovieClip('star' + blue, 'starz1', 1000);
starzx1 = bg9._x - gyroswitch3._x;
starzy1 = bg9._y - gyroswitch3._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz2', 1002);
starzx2 = bg9._x - gyroswitch3._x;
starzy2 = bg9._y - gyroswitch3._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz3', 1003);
starzx3 = bg9._x - gyroswitch3._x;
starzy3 = bg9._y - gyroswitch3._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz4', 1004);
starzx4 = bg9._x - gyroswitch3._x;
starzy4 = bg9._y - gyroswitch3._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + blue, 'starz5', 1005);
starzx5 = bg9._x - gyroswitch3._x;
starzy5 = bg9._y - gyroswitch3._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
nero = 4;
}
if (gyro.hitTest(tutorboxx) && jump < 0) {
torial.gotoAndStop(2);
torial._visible = true;
pause = true;
jump = 12;
}
if (Key.isDown(32) && torial._visible == true) {
torial.gotoAndStop(1);
torial._visible = false;
pause = false;
}
if (dead == true) {
jump = 0;
ht = 0;
}
if (pause == true) {
_quality = 'High';
}
if (pause != true && qset >= 3) {
_quality = 'High';
}
if (pause != true && qset == 2) {
_quality = 'Medium';
}
if (pause != true && qset <= 1) {
_quality = 'Low';
}
boomerang1._x = bg9._x - boomx1;
boomerang1._y = bg9._y - boomy1;
star1._x = bg9._x - starx1;
star1._y = bg9._y - stary1;
star2._x = bg9._x - starx2;
star2._y = bg9._y - stary2;
star3._x = bg9._x - starx3;
star3._y = bg9._y - stary3;
star4._x = bg9._x - starx4;
star4._y = bg9._y - stary4;
star5._x = bg9._x - starx5;
star5._y = bg9._y - stary5;
gauge.blade.gotoAndStop(weapon);
bcoinb1._x = bg9._x - bcoinbx1;
bcoinb1._y = bg9._y - bcoinby1;
bcoinb2._x = bg9._x - bcoinbx2;
bcoinb2._y = bg9._y - bcoinby2;
bcoinb3._x = bg9._x - bcoinbx3;
bcoinb3._y = bg9._y - bcoinby3;
bcoinb4._x = bg9._x - bcoinbx4;
bcoinb4._y = bg9._y - bcoinby4;
bcoinb5._x = bg9._x - bcoinbx5;
bcoinb5._y = bg9._y - bcoinby5;
coinb1._x = bg9._x - coinbx1;
coinb1._y = bg9._y - coinby1;
coinb2._x = bg9._x - coinbx2;
coinb2._y = bg9._y - coinby2;
coinb3._x = bg9._x - coinbx3;
coinb3._y = bg9._y - coinby3;
coinb4._x = bg9._x - coinbx4;
coinb4._y = bg9._y - coinby4;
coinb5._x = bg9._x - coinbx5;
coinb5._y = bg9._y - coinby5;
coinb6._x = bg9._x - coinbx6;
coinb6._y = bg9._y - coinby6;
coinb7._x = bg9._x - coinbx7;
coinb7._y = bg9._y - coinby7;
coinb8._x = bg9._x - coinbx8;
coinb8._y = bg9._y - coinby8;
coinb9._x = bg9._x - coinbx9;
coinb9._y = bg9._y - coinby9;
coinb10._x = bg9._x - coinbx10;
coinb10._y = bg9._y - coinby10;
coinb11._x = bg9._x - coinbx11;
coinb11._y = bg9._y - coinby11;
coinb12._x = bg9._x - coinbx12;
coinb12._y = bg9._y - coinby12;
coinb13._x = bg9._x - coinbx13;
coinb13._y = bg9._y - coinby13;
coinb14._x = bg9._x - coinbx14;
coinb14._y = bg9._y - coinby14;
coinb15._x = bg9._x - coinbx15;
coinb15._y = bg9._y - coinby15;
coinb16._x = bg9._x - coinbx16;
coinb16._y = bg9._y - coinby16;
coinb17._x = bg9._x - coinbx17;
coinb17._y = bg9._y - coinby17;
coinb18._x = bg9._x - coinbx18;
coinb18._y = bg9._y - coinby18;
coinb19._x = bg9._x - coinbx19;
coinb19._y = bg9._y - coinby19;
coinb20._x = bg9._x - coinbx20;
coinb20._y = bg9._y - coinby20;
coinb21._x = bg9._x - coinbx21;
coinb21._y = bg9._y - coinby21;
coinb22._x = bg9._x - coinbx22;
coinb22._y = bg9._y - coinby22;
coinb23._x = bg9._x - coinbx23;
coinb23._y = bg9._y - coinby23;
coinb24._x = bg9._x - coinbx24;
coinb24._y = bg9._y - coinby24;
coinb25._x = bg9._x - coinbx25;
coinb25._y = bg9._y - coinby25;
coinb26._x = bg9._x - coinbx26;
coinb26._y = bg9._y - coinby26;
coinb27._x = bg9._x - coinbx27;
coinb27._y = bg9._y - coinby27;
coinb28._x = bg9._x - coinbx28;
coinb28._y = bg9._y - coinby28;
coinb29._x = bg9._x - coinbx29;
coinb29._y = bg9._y - coinby29;
coinb30._x = bg9._x - coinbx30;
coinb30._y = bg9._y - coinby30;
coinb31._x = bg9._x - coinbx31;
coinb31._y = bg9._y - coinby31;
coinb32._x = bg9._x - coinbx32;
coinb32._y = bg9._y - coinby32;
coinb33._x = bg9._x - coinbx33;
coinb33._y = bg9._y - coinby33;
coinb34._x = bg9._x - coinbx34;
coinb34._y = bg9._y - coinby34;
coinb35._x = bg9._x - coinbx35;
coinb35._y = bg9._y - coinby35;
coinb36._x = bg9._x - coinbx36;
coinb36._y = bg9._y - coinby36;
coinb37._x = bg9._x - coinbx37;
coinb37._y = bg9._y - coinby37;
coinb38._x = bg9._x - coinbx38;
coinb38._y = bg9._y - coinby38;
coinb39._x = bg9._x - coinbx39;
coinb39._y = bg9._y - coinby39;
coinb40._x = bg9._x - coinbx40;
coinb40._y = bg9._y - coinby40;
magicswitch._x = bg9._x - magix;
magicswitch._y = bg9._y - magiy;
gauge.lives = lives;
gauge.cash = cash;
gauge.score = benny;
starz1._x = bg9._x - starzx1;
starz1._y = bg9._y - starzy1;
starz2._x = bg9._x - starzx2;
starz2._y = bg9._y - starzy2;
starz3._x = bg9._x - starzx3;
starz3._y = bg9._y - starzy3;
starz4._x = bg9._x - starzx4;
starz4._y = bg9._y - starzy4;
starz5._x = bg9._x - starzx5;
starz5._y = bg9._y - starzy5;
starz6._x = bg9._x - starzx6;
starz6._y = bg9._y - starzy6;
flamebox._x = bg9._x - fgbx;
flamebox._y = bg9._y - fgby;
mot = 300 - gyro._x;
key._x = bg9._x - keyx;
key._y = bg9._y - keyy;
lettero._x = bg9._x - glx;
lettero._y = bg9._y - gly;
gauge.gyroletters.letterg._visible = gletter;
gauge.gyroletters.lettery._visible = yletter;
gauge.gyroletters.letterr._visible = rletter;
gauge.gyroletters.lettero._visible = oletter;
portalway._visible = gate;
gyroswitch1._x = bg9._x - gysx1;
gyroswitch1._y = bg9._y - gysy1;
gyroswitch2._x = bg9._x - gysx2;
gyroswitch2._y = bg9._y - gysy2;
gyroswitch3._x = bg9._x - gysx3;
gyroswitch3._y = bg9._y - gysy3;
gyroswitch4._x = bg9._x - gysx4;
gyroswitch4._y = bg9._y - gysy4;
gyroswitch5._x = bg9._x - gysx5;
gyroswitch5._y = bg9._y - gysy5;
bugenemy1._x = bg9._x - begx1;
bugenemy1._y = bg9._y - begy1;
bugenemy2._x = bg9._x - begx2;
bugenemy2._y = bg9._y - begy2;
bugenemy3._x = bg9._x - begx3;
bugenemy3._y = bg9._y - begy3;
wall.gotoAndStop(nero);
spring._x = bg9._x - springx;
spring._y = bg9._y - springy;
spring2._x = bg9._x - springx2;
spring2._y = bg9._y - springy2;
spring3._x = bg9._x - springx3;
spring3._y = bg9._y - springy3;
wall._x = bg9._x - wallx;
wall._y = bg9._y - wally;
bg9.wall.gotoAndStop(nero);
bg9.core.gotoAndStop(nero);
puzzle._x = bg9._x - pzx;
puzzle._y = bg9._y - pzy;
puzzle2._x = bg9._x - pzx2;
puzzle2._y = bg9._y - pzy2;
gauge.puzzle.count = puzzles;
portalway._x = bg9._x - portx;
portalway._y = bg9._y - porty;
tutorboxx._x = bg9._x - tbx;
tutorboxx._y = bg9._y - tby;
tutorboxx2._x = bg9._x - tbx2;
tutorboxx2._y = bg9._y - tby2;
crate._x = bg9._x - cratex;
crate._y = bg9._y - cratey;
puzzle2._x = bg9._x - pzx2;
puzzle2._y = bg9._y - pzy2;
gyrocannon1._x = bg9._x - gycanx1;
gyrocannon1._y = bg9._y - gycany1;
gyrocannon2._x = bg9._x - gycanx2;
gyrocannon2._y = bg9._y - gycany2;
gyrocannon3._x = bg9._x - gycanx3;
gyrocannon3._y = bg9._y - gycany3;
gyrocannon4._x = bg9._x - gycanx4;
gyrocannon4._y = bg9._y - gycany4;
gyrocannon5._x = bg9._x - gycanx5;
gyrocannon5._y = bg9._y - gycany5;
raincash._x = bg9._x - raicax;
raincash._y = bg9._y - raicay;
badguy1._x = bg9._x - badgx1;
badguy1._y = bg9._y - badgy1;
benzo1 += 1;
gauge.boc.count = bcash;
badguy2._x = bg9._x - badgx2;
badguy2._y = bg9._y - badgy2;
benzo2 += 1;
};
}
movieClip 1894 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 1896 {
}
movieClip 1898 {
}
movieClip 1900 {
frame 1 {
stop();
}
}
movieClip 1904 {
}
movieClip 1906 {
}
movieClip 1907 {
}
movieClip 1908 {
}
movieClip 1909 {
}
movieClip 1910 {
}
movieClip 1913 {
}
movieClip 1914 {
}
movieClip 1916 {
frame 35 {
stop();
}
}
movieClip 1917 {
frame 1 {
stop();
}
}
movieClip 1920 {
}
movieClip 1921 {
}
movieClip 1924 {
}
movieClip 1925 {
}
movieClip 1926 {
frame 1 {
stop();
}
frame 11 {
stop();
}
}
movieClip 1929 {
frame 290 {
stop();
}
}
instance of movieClip 1929 {
onClipEvent (load) {
this.swapDepths(9700);
}
}
frame 50 {
if (qset == undefined) {
qset = 2;
}
if (qset == 2) {
_quality = 'Medium';
}
if (qset == 1) {
_quality = 'Low';
}
if (qset == 3) {
_quality = 'High';
}
}
frame 50 {
for (i in _root) {
_root[i].swapDepths(10102);
removeMovieClip(_root[i]);
}
delete eval(onEnterFrame());
}
frame 51 {
delete eval(onEnterFrame());
}
frame 52 {
if (qset == undefined) {
qset = 2;
}
if (qset == 2) {
_quality = 'Medium';
}
if (qset == 1) {
_quality = 'Low';
}
if (qset == 3) {
_quality = 'High';
}
}
frame 52 {
stop();
blue = 'blue';
pink = 'pink';
nero = 1;
victory = 0;
donebattle = false;
bg10.core._visible = false;
bg10.wall._visible = false;
gyrodies.gotoAndStop(60);
zokox = lives;
if (weapon == undefined) {
weapon = 'boomerang';
hammer = true;
}
stage2 = boss._xscale + 15;
stage3 = boss._xscale + 35;
bolvl = 1;
torial._visible = false;
score = 0;
benny = 0;
flly = 0;
torial.swapDepths(10001);
powertimer.swapDepths(9997);
tuto.swapDepths(9998);
pausemen.swapDepths(9999);
gauge.swapDepths(10000);
bossgauge.swapDepths(10001);
tran.swapDepths(50000);
wall.swapDepths(500);
arrows.swapDepths(502);
gameover.swapDepths(60000);
gyrocannon1.swapDepths(701);
gyrocannon2.swapDepths(702);
gyrocannon3.swapDepths(703);
gyrocannon4.swapDepths(704);
gyrocannon5.swapDepths(705);
trape = 0;
bosshealth = 100;
gate = false;
pause = false;
key._visible = true;
boomer = 1;
type = 'norm';
jump = 10;
ht = 0.5;
gyro.gotoAndPlay('jump');
mxy = gyro._y - 80;
mxbg10y = bg10._y;
motion = 7;
tutorialsc = true;
mxx = gyro._x + 140;
mnx = gyro._x;
whiptimer = 50;
whipper = 40;
att = 0;
gen = 0.9300000000000001;
intx = bg10._x - gyro._x;
inty = bg10._y - gyro._y;
bossx = bg10._x - boss._x;
bossy = bg10._y - boss._y;
tbx = bg10._x - tutorboxx._x;
tby = bg10._y - tutorboxx._y;
tbx2 = bg10._x - tutorboxx2._x;
tby2 = bg10._y - tutorboxx2._y;
armorhp1 = 300;
armorhp2 = 300;
armorhp3 = 300;
armorhp4 = 300;
armorhp5 = 300;
armorhp6 = 300;
armorhp7 = 300;
armoron1 = true;
armoron2 = true;
armoron3 = true;
armoron4 = true;
armoron5 = true;
armoron6 = true;
armoron7 = true;
armorhp8 = 300;
armoron8 = true;
intymidg = midg._y;
portaled = false;
springx = bg10._x - spring._x;
springy = bg10._y - spring._y;
gysx1 = bg10._x - gyroswitch1._x;
gysy1 = bg10._y - gyroswitch1._y;
gysx2 = bg10._x - gyroswitch2._x;
gysy2 = bg10._y - gyroswitch2._y;
gysx3 = bg10._x - gyroswitch3._x;
gysy3 = bg10._y - gyroswitch3._y;
gysx4 = bg10._x - gyroswitch4._x;
gysy4 = bg10._y - gyroswitch4._y;
gysx5 = bg10._x - gyroswitch5._x;
gysy5 = bg10._y - gyroswitch5._y;
gyrotate1 = 1;
gyrotate2 = 1;
gyrotate3 = 1;
gyrotate4 = 1;
gyrotate5 = 1;
begx1 = bg10._x - bugenemy1._x;
begy1 = bg10._y - bugenemy1._y;
begx2 = bg10._x - bugenemy2._x;
begy2 = bg10._y - bugenemy2._y;
begx3 = bg10._x - bugenemy3._x;
begy3 = bg10._y - bugenemy3._y;
pausemen._visible = false;
glx = bg10._x - letterg._x;
gly = bg10._y - letterg._y;
pzx = bg10._x - puzzle._x;
pzy = bg10._y - puzzle._y;
pzx2 = bg10._x - puzzle2._x;
pzy2 = bg10._y - puzzle2._y;
portx = bg10._x - portalway._x;
porty = bg10._y - portalway._y;
fgbx = bg10._x - flamebox._x;
fgby = bg10._y - flamebox._y;
badgx1 = bg10._x - badguy1._x;
badgy1 = bg10._y - badguy1._y;
badgix1 = badguy1._x;
badgiy1 = badguy1._y;
benzo1 = 0;
badgx2 = bg10._x - badguy2._x;
badgy2 = bg10._y - badguy2._y;
badgix2 = badguy2._x;
badgiy2 = badguy2._y;
benzo2 = 0;
bcoinbx1 = bg10._x - bcoinb1._x;
bcoinby1 = bg10._y - bcoinb1._y;
bcoinbx2 = bg10._x - bcoinb2._x;
bcoinby2 = bg10._y - bcoinb2._y;
bcoinbx3 = bg10._x - bcoinb3._x;
bcoinby3 = bg10._y - bcoinb3._y;
bcoinbx4 = bg10._x - bcoinb4._x;
bcoinby4 = bg10._y - bcoinb4._y;
bcoinbx5 = bg10._x - bcoinb5._x;
bcoinby5 = bg10._y - bcoinb5._y;
coinbx1 = bg10._x - coinb1._x;
coinby1 = bg10._y - coinb1._y;
coinbx2 = bg10._x - coinb2._x;
coinby2 = bg10._y - coinb2._y;
coinbx3 = bg10._x - coinb3._x;
coinby3 = bg10._y - coinb3._y;
coinbx4 = bg10._x - coinb4._x;
coinby4 = bg10._y - coinb4._y;
coinbx5 = bg10._x - coinb5._x;
coinby5 = bg10._y - coinb5._y;
coinbx6 = bg10._x - coinb6._x;
coinby6 = bg10._y - coinb6._y;
coinbx7 = bg10._x - coinb7._x;
coinby7 = bg10._y - coinb7._y;
coinbx8 = bg10._x - coinb8._x;
coinby8 = bg10._y - coinb8._y;
coinbx9 = bg10._x - coinb9._x;
coinby9 = bg10._y - coinb9._y;
coinbx10 = bg10._x - coinb10._x;
coinby10 = bg10._y - coinb10._y;
coinbx11 = bg10._x - coinb11._x;
coinby11 = bg10._y - coinb11._y;
coinbx12 = bg10._x - coinb12._x;
coinby12 = bg10._y - coinb12._y;
coinbx13 = bg10._x - coinb13._x;
coinby13 = bg10._y - coinb13._y;
coinbx14 = bg10._x - coinb14._x;
coinby14 = bg10._y - coinb14._y;
coinbx15 = bg10._x - coinb15._x;
coinby15 = bg10._y - coinb15._y;
coinbx16 = bg10._x - coinb16._x;
coinby16 = bg10._y - coinb16._y;
coinbx17 = bg10._x - coinb17._x;
coinby17 = bg10._y - coinb17._y;
coinbx18 = bg10._x - coinb18._x;
coinby18 = bg10._y - coinb18._y;
coinbx19 = bg10._x - coinb19._x;
coinby19 = bg10._y - coinb19._y;
coinbx20 = bg10._x - coinb20._x;
coinby20 = bg10._y - coinb20._y;
coinbx21 = bg10._x - coinb21._x;
coinby21 = bg10._y - coinb21._y;
coinbx22 = bg10._x - coinb22._x;
coinby22 = bg10._y - coinb22._y;
coinbx23 = bg10._x - coinb23._x;
coinby23 = bg10._y - coinb23._y;
coinbx24 = bg10._x - coinb24._x;
coinby24 = bg10._y - coinb24._y;
coinbx25 = bg10._x - coinb25._x;
coinby25 = bg10._y - coinb25._y;
coinbx26 = bg10._x - coinb26._x;
coinby26 = bg10._y - coinb26._y;
coinbx27 = bg10._x - coinb27._x;
coinby27 = bg10._y - coinb27._y;
coinbx28 = bg10._x - coinb28._x;
coinby28 = bg10._y - coinb28._y;
coinbx29 = bg10._x - coinb29._x;
coinby29 = bg10._y - coinb29._y;
coinbx30 = bg10._x - coinb30._x;
coinby30 = bg10._y - coinb30._y;
coinbx31 = bg10._x - coinb31._x;
coinby31 = bg10._y - coinb31._y;
coinbx32 = bg10._x - coinb32._x;
coinby32 = bg10._y - coinb32._y;
coinbx33 = bg10._x - coinb33._x;
coinby33 = bg10._y - coinb33._y;
coinbx34 = bg10._x - coinb34._x;
coinby34 = bg10._y - coinb34._y;
coinbx35 = bg10._x - coinb35._x;
coinby35 = bg10._y - coinb35._y;
coinbx36 = bg10._x - coinb36._x;
coinby36 = bg10._y - coinb36._y;
coinbx37 = bg10._x - coinb37._x;
coinby37 = bg10._y - coinb37._y;
coinbx38 = bg10._x - coinb38._x;
coinby38 = bg10._y - coinb38._y;
coinbx39 = bg10._x - coinb39._x;
coinby39 = bg10._y - coinb39._y;
coinbx40 = bg10._x - coinb40._x;
coinby40 = bg10._y - coinb40._y;
portaled = false;
magix = bg10._x - magicswitch._x;
magiy = bg10._y - magicswitch._y;
keyx = bg10._x - key._x;
keyy = bg10._y - key._y;
wallx = bg10._x - wall._x;
wally = bg10._y - wall._y;
cratex = bg10._x - crate._x;
cratey = bg10._y - crate._y;
push = 1;
raicax = bg10._x - raincash._x;
raicay = bg10._y - raincash._y;
gycanx1 = bg10._x - gyrocannon1._x;
gycany1 = bg10._y - gyrocannon1._y;
gycanx2 = bg10._x - gyrocannon2._x;
gycany2 = bg10._y - gyrocannon2._y;
gycanx3 = bg10._x - gyrocannon3._x;
gycany3 = bg10._y - gyrocannon3._y;
gycanx4 = bg10._x - gyrocannon4._x;
gycany4 = bg10._y - gyrocannon4._y;
gycanx5 = bg10._x - gyrocannon5._x;
gycany5 = bg10._y - gyrocannon5._y;
screamer = 300;
if (lives == undefined) {
lives = 9;
}
if (cash == undefined) {
cash = 0;
}
onEnterFrame = function () {
i = 0;
while (i <= 10) {
if (boomerang1.hitTest(_root.boss['armor' + i]) && boss._alpha >= 90) {
_root.boss['armor' + i].play();
_root['armorhp' + i] -= 5;
}
if (_root['armorhp' + i] <= 0 && _root['armoron' + i] == true) {
_root.boss['armor' + i].gotoAndPlay(22);
_root['armoron' + i] = false;
}
if (gyro.hitTest(spring) && jump < 0) {
jump = 45;
ht = 0.99;
spring.slug.play();
}
if (gyro.hitTest(spring.core) && ht <= 0) {
jump = 45;
ht = 0.99;
lives -= 1;
gauge.gorp.play();
gyro._x = bg10._x - intx;
gyro._y = bg10._y - inty;
}
if (gyro.hitTest(key) && key._visible == true) {
gate = true;
key._visible = false;
key.gotoAndStop(55);
}
if (gyro.hitTest(letterg) && oletter != true) {
gletter = true;
gyroletterx += 1;
letterg.gotoAndStop(55);
gauge.gyroletters.play();
duplicateMovieClip('star' + pink, 'starz1', 1000);
starzx1 = bg10._x - gyro._x;
starzy1 = bg10._y - gyro._y;
starz1._rotation = Math.random() * 360;
starburst1 = Math.random() * 10 - Math.random() * 10;
starjump1 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz2', 1002);
starzx2 = bg10._x - gyro._x;
starzy2 = bg10._y - gyro._y;
starz2._rotation = Math.random() * 360;
starburst2 = Math.random() * 10 - Math.random() * 10;
starjump2 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz3', 1003);
starzx3 = bg10._x - gyro._x;
starzy3 = bg10._y - gyro._y;
starz3._rotation = Math.random() * 360;
starburst3 = Math.random() * 10 - Math.random() * 10;
starjump3 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz4', 1004);
starzx4 = bg10._x - gyro._x;
starzy4 = bg10._y - gyro._y;
starz4._rotation = Math.random() * 360;
starburst4 = Math.random() * 10 - Math.random() * 10;
starjump4 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz5', 1005);
starzx5 = bg10._x - gyro._x;
starzy5 = bg10._y - gyro._y;
starz5._rotation = Math.random() * 360;
starburst5 = Math.random() * 10 - Math.random() * 10;
starjump5 = 5 + Math.random() * 6;
duplicateMovieClip('star' + pink, 'starz6', 1006);
starzx6 = bg10._x - gyro._x;
starzy6 = bg10._y - gyro._y;
starz6._rotation = Math.random() * 360;
starburst6 = Math.random() * 10 - Math.random() * 10;
starjump6 = 5 + Math.random() * 6;
score += 50;
}
if (portalway.core.hitTest(gyro._x, gyro._y, true) && portalway._visible == true && jump < 0) {
gyro.gotoAndStop('teleport');
portaled = true;
pause = true;
}
++i;
}
if (trap != true && gyro._y > mxy && aim != true && pause != true || trap != true && gyro._y <= mxy && bg10._y <= mxbg10y && pause != true && jump < 0 && aim != true || gyro._y > 400 && pause != true && trap != true && bg10._y <= mxbg10y && aim != true) {
gyro._y -= jump;
jump -= ht;
}
if (trap != true && gyro._y <= mxy && aim != true && pause != true || trap != true && aim != true && gyro._y > 300 && pause != true && bg10._y > mxbg10y && jump < 0) {
bg10._y += jump;
midg._y += jump / 4;
jump -= ht;
}
if (Key.isDown(65) && pause != true && victory <= 0 && screamer <= 0 && dead != true && climb != true && trap != true && ht == 0 && duck != true && aim != true && rope != true && whiptimer > whipper) {
jump = 10;
ht = 0.5;
gyro.gotoAndPlay('jump');
}
if (pause != true) {
screamer -= 1;
victory -= 1;
}
if (jump < -15) {
jump = -16;
}
if (Key.isDown(65) && pause != true && victory <= 0 && screamer <= 0 && dead != true && climb != true && aim != true && trap != true && ht == 0 && duck == true && rope != true && whiptimer > whipper) {
jump = 11;
ht = 0.5;
duck = false;
motion = 0;
gyro.gotoAndPlay('boostjump');
}
if (Key.isDown(40) && pause != true && victory <= 0 && screamer <= 0 && portaled != true && dead != true && climb != true && aim != true && trap != true && ht == 0 && rope != true && whiptimer > whipper && att == 0) {
duck = true;
gyro.gotoAndStop('duck');
}
if (!Key.isDown(40) && pause != true && victory <= 0 && screamer <= 0 && portaled != true && dead != true && climb != true && trap != true && duck == true && rope != true && whiptimer > whipper && att == 0) {
duck = false;
gyro.gotoAndStop(1);
}
if (bg10.core.hitTest(gyro._x, gyro._y + 25, true) && bosshealth > 0 && screamer <= 0 && dead != true && climb != true && jump < -3 && whiptimer > whipper && att == 0) {
gyro.gotoAndStop(1);
jump = 0;
motion = 7;
att = 0;
ht = 0;
fliper = 1;
ken = false;
}
if (bg10.core.hitTest(gyro._x, gyro._y + 25, true) && bosshealth > 0 && screamer > 0 && dead != true && climb != true && jump < -3 && whiptimer > whipper && att == 0) {
gyro.gotoAndPlay('scream');
jump = 0;
motion = 7;
att = 0;
ht = 0;
fliper = 1;
ken = false;
}
if (!bg10.core.hitTest(gyro._x, gyro._y + 35, true) && bosshealth > 0 && portaled != true && dead != true && climb != true && ht == 0 && rope != true && whiptimer > whipper && att == 0) {
gyro.gotoAndPlay('ballup');
ht = 0.5;
}
for (;;) {
if (!(bg10.core.hitTest(gyro._x, gyro._y + 25, true) && bosshealth > 0 && jump < 0.7 && whiptimer > whipper)) break;
gyro._y -= 0.1;
}
if (gyro._y > 340 && bosshealth <= 0 && victory <= 0) {
gyro.gotoAndStop(1);
jump = 0;
motion = 7;
att = 0;
ht = 0;
fliper = 1;
ken = false;
gyro._y = 340;
}
if (gyro._y > 340 && bosshealth <= 0 && victory > 0) {
gyro.gotoAndPlay('victory');
jump = 0;
motion = 7;
att = 0;
ht = 0;
fliper = 1;
ken = false;
gyro._y = 340;
}
if (Key.isDown(39) && gyro._x > 0 && gyro._x < 600 && pause != true && victory <= 0 && screamer <= 0 && portaled != true && dead != true && climb != true && trap != true && duck != true && aim != true && gyro._x <= mxx && rope != true && whiptimer > whipper && att == 0) {
gyro.play();
goright = true;
goleft = false;
gyro._x += motion / push;
bobob = 90;
gyro._xscale = 50;
}
if (Key.isDown(37) && gyro._x > 0 && gyro._x < 600 && pause != true && victory <= 0 && screamer <= 0 && portaled != true && dead != true && climb != true && trap != true && duck != true && aim != true && gyro._x >= mnx && rope != true && whiptimer > whipper && att == 0) {
gyro.play();
goleft = true;
goright = false;
gyro._x -= motion / push;
bobob = -90;
gyro._xscale = -50;
}
if (Key.isDown(39) && gyro._x > 0 && gyro._x < 600 && pause != true && victory <= 0 && screamer <= 0 && portaled != true && dead != true && climb != true && trap != true && duck != true && aim != true && gyro._x > mxx && rope != true && whiptimer > whipper && att == 0) {
gyro.play();
goright = true;
goleft = false;
bg10._x -= motion / push;
midg._x -= motion / 30;
bobob = 90;
gyro._xscale = 50;
}
if (Key.isDown(37) && gyro._x > 0 && gyro._x < 600 && pause != true && victory <= 0 && screamer <= 0 && portaled != true && dead != true && climb != true && trap != true && duck != true && aim != true && gyro._x < mnx && rope != true && whiptimer > whipper && att == 0) {
gyro.play();
goleft = true;
goright = false;
bobob = -90;
bg10._x += motion / push;
midg._x += motion / 30;
gyro._xscale = -50;
}
if (!Key.isDown(37) && pause != true && victory <= 0 && screamer <= 0 && pause != true && victory <= 0 && screamer <= 0 && dead != true && climb != true && ht == 0 && trap != true && duck != true && aim != true && goleft == true && rope != true && whiptimer > whipper && att == 0) {
gyro.gotoAndStop(1);
goleft = false;
}
if (!Key.isDown(39) && pause != true && victory <= 0 && screamer <= 0 && pause != true && victory <= 0 && screamer <= 0 && dead != true && climb != true && ht == 0 && trap != true && duck != true && aim != true && goright == true && rope != true && whiptimer > whipper && att == 0) {
gyro.gotoAndStop(1);
goright = false;
}
if (trap != true && pause != true && victory <= 0 && screamer <= 0 && portaled != true) {
bg10._x -= att;
midg._x -= att / 30;
}
if (bg10.wall.hitTest(gyro._x + 20, gyro._y, true)) {
gyro._x -= motion;
att = 0;
}
while (bg10.wall.hitTest(gyro._x + 20, gyro._y, true)) {
gyro._x -= 0.1;
}
if (bg10.wall.hitTest(gyro._x - 20, gyro._y, true)) {
att = 0;
gyro._x += motion;
}
while (bg10.wall.hitTest(gyro._x - 20, gyro._y, true)) {
gyro._x += 0.1;
}
if (gyro._y < 200 && aim != true && trap != true && ht == 0 && dead != true && climb != true) {
gyro._y += bett / 5;
bg10._y += bett / 5;
midg._y += bett / 200;
}
if (bg10._y <= mxbg10y) {
bg10._y = mxbg10y;
}
if (gyro._y > 330 && aim != true && bg10._y > mxbg10y && dead != true) {
gyro._y += bett;
bg10._y += bett;
midg._y += bett / 200;
}
if (gyro._y < 300 && aim != true && trap == true && dead != true && climb != true) {
gyro._y += bett / 3;
bg10._y += bett / 3;
midg._y += bett / 200;
}
if (pause != true && victory <= 0 && screamer <= 0) {
bett = (330 - gyro._y) / 5;
}
if (gyro._x < mnx - 60 && bleco <= 0) {
bg10._x += mot / 23;
midg._x += mot / 680;
gyro._x += mot / 23;
}
if (gyro._x > mxx + 60 && bleco <= 0) {
bg10._x += mot / 23;
midg._x += mot / 680;
gyro._x += mot / 23;
}
if (midg._y <= intymidg) {
midg._y = intymidg;
}
if (midg._x <= 197) {
midg._x = 197;
}
if (benny < score) {
benny += 1;
}
if (pause != true) {
starzx1 += starburst1;
starburst1 *= 0.94;
starzy1 += starjump1;
starjump1 -= 0.5;
starzx2 += starburst2;
starburst2 *= 0.94;
starzy2 += starjump2;
starjump2 -= 0.5;
starzx3 += starburst3;
starburst3 *= 0.94;
starzy3 += starjump3;
starjump3 -= 0.5;
starzx4 += starburst4;
starburst4 *= 0.94;
starzy4 += starjump4;
starjump4 -= 0.5;
starzx5 += starburst5;
starburst5 *= 0.94;
starzy5 += starjump5;
starjump5 -= 0.5;
starzx6 += starburst6;
starburst6 *= 0.94;
starzy6 += starjump6;
starjump6 -= 0.5;
}
if (gyro._y > 1700 && lives > 0) {
lives -= 1;
gauge.gorp.play();
gyro._x = bg10._x - intx;
gyro._y = bg10._y - inty;
}
if (lives <= 0) {
gameover.play();
portaled = true;
pause = true;
}
if (armorhp1 <= 0 && armorhp2 <= 0 && armorhp3 <= 0 && armorhp4 <= 0 && armorhp5 <= 0 && armorhp6 <= 0 && armorhp7 <= 0 && armorhp8 <= 0 && ghoststun != true) {
armorrestore = 330;
ghoststun = true;
}
if (ghoststun == true && chompchomp != true && victory <= 0 && bosshealth > 0) {
boss.gotoAndStop(2);
}
if (ghoststun != true && chompchomp != true && victory <= 0 && bosshealth > 0) {
boss.gotoAndStop(1);
}
if (chompchomp == true && victory <= 0) {
boss.gotoAndStop(3);
}
if (bosshealth <= 0) {
boss.gotoAndStop(4);
}
if (gyro._x > boss._x - (60 + difer) && bosshealth > 0 && victory <= 0 && gyro._x < boss._x + (60 + difer) && ghoststun != true && screamer <= 0) {
chompchomp = true;
chompdestroy = 50;
}
if (gyro.hitTest(boss.enemy.box) && dead != true) {
duplicateMovieClip(gyrodies, 'gyrodie', 555);
dydiex = bg10._x - (boss._x - 60 * (boss._xscale / 72));
dydiey = bg10._y - boss._y;
deather = 150;
dead = true;
}
if (pause != true) {
deather -= 1;
gyrodie._x = bg10._x - dydiex;
gyrodie._y = bg10._y - dydiey;
}
if (deather <= 0 && dead == true) {
lives -= 1;
gauge.gorp.play();
gyro._x = bg10._x - intx;
gyro._y = bg10._y - inty;
dead = false;
}
if (deather > 0 && deather != undefined) {
gyro._visible = false;
}
if (deather <= 0 || deather == undefined) {
gyro._visible = true;
}
if (chompdestroy <= 0) {
chompchomp = false;
}
if (pause != true) {
armorrestore -= 1;
chompdestroy -= 1;
}
if (bosshealth <= 0 && donebattle != true) {
bosshealth = 0;
victory = 600;
gate = true;
portalway.play();
wall._visible = false;
bg10.play();
donebattle = true;
}
if (bosshealth <= 0 && zokox <= lives && achievb4 != true) {
duplicateMovieClip(reward, 'rewarder', 984);
rewarder._x = 300;
rewarder._y = 200;
rewarder.gotoAndPlay('reward5');
achievb4 = true;
goals2 += 1;
klepto = 0;
}
if (armorhp1 <= 0) {
boss.armor1._visible = false;
}
if (armorhp2 <= 0) {
boss.armor2._visible = false;
}
if (armorhp3 <= 0) {
boss.armor3._visible = false;
}
if (armorhp4 <= 0) {
boss.armor4._visible = false;
}
if (armorhp5 <= 0) {
boss.armor5._visible = false;
}
if (armorhp6 <= 0) {
boss.armor6._visible = false;
}
if (armorhp7 <= 0) {
boss.armor7._visible = false;
}
if (armorhp8 <= 0) {
boss.armor8._visible = false;
}
if (gyro.hitTest(boss.weak) && bosshealth > 0 && ghoststun == true && jump < 0) {
bosshealth -= 6;
jump = 12;
boss.weak.play();
}
if (armorrestore <= 0 && ghoststun == true && bosshealth > 0) {
bolvl += 1;
nero += 1;
jump += 12;
armorhp1 = 300;
armorhp2 = 300;
armorhp3 = 300;
armorhp4 = 300;
armorhp5 = 300;
armorhp6 = 300;
armorhp7 = 300;
armoron1 = true;
armoron2 = true;
armoron3 = true;
armoron4 = true;
armoron5 = true;
armoron6 = true;
armoron7 = true;
armorhp8 = 300;
armoron8 = true;
ghoststun = false;
}
if (bolvl < 2) {
difer = 0;
}
if (gyro._xscale > 0 && boss._x > gyro._x && bosshealth > 0 && chompchomp != true && screamer <= 0 && pause != true && chompchomp != true || gyro._xscale < 0 && boss._x < gyro._x && screamer <= 0 && pause != true && chompchomp != true) {
hunt = false;
}
if (gyro._xscale < 0 && boss._x > gyro._x && bosshealth > 0 && chompchomp != true && screamer <= 0 && pause != true && chompchomp != true || gyro._xscale > 0 && boss._x < gyro._x && screamer <= 0 && pause != true && chompchomp != true) {
hunt = true;
}
if (hunt == true && boss._alpha < 100 && screamer <= 0 && pause != true) {
boss._alpha += 3;
}
if (hunt != true && boss._alpha > 5 && screamer <= 0 && chompchomp != true && pause != true && ghoststun != true && victory <= 0 && chompchomp != true) {
boss._alpha -= 3;
}
if (screamer <= 0 && bosshealth > 0 && pause != true && chompchomp != true && victory <= 0 && ghoststun != true && gyro._x > boss._x + 30) {
bossx -= 1.9;
boss._xscale = -(72 + difer);
}
if (screamer <= 0 && bosshealth > 0 && pause != true && chompchomp != true && victory <= 0 && ghoststun != true && gyro._x < boss._x - 30) {
bossx += 1.9;
boss._xscale = 72 + difer;
}
if (screamer <= 0 && bosshealth > 0 && pause != true && chompchomp != true && victory <= 0 && ghoststun != true && gyro._y > boss._y + 90) {
bossy -= 1.9;
}
if (screamer <= 0 && bosshealth > 0 && pause != true && chompchomp != true && victory <= 0 && ghoststun != true && gyro._y < boss._y - 30) {
bossy += 1.9;
}
if (trap != true) {
whiptimer += 1;
boomx1 -= trajectoryx1;
boomy1 += trajectoryy1;
trajectoryx1 -= ben;
trajectoryy1 -= ken;
boomtimer += 1;
dupstar += 1;
}
if (boomerang1._x > gyro._x) {
ben = 0.5;
}
if (boomerang1._x < gyro._x) {
ben = -0.5;
}
if (boomerang1._y > gyro._y + 20) {
ken = -0.5;
}
if (boomerang1._y < gyro._y - 20) {
ken = 0.5;
}
if (boomerang1._y < gyro._y + 20 && boomerang1._y > gyro._y - 20) {
ken = 0;
trajectoryy1 = 0;
}
if (boomer <= 0 && dupstar > 5) {
duplicateMovieClip('star' + type, 'star' + stardu, stardu + 100);
_root['starx' + stardu] = bg10._x - boomerang1._x;
_root['stary' + stardu] = bg10._y - boomerang1._y;
_root['star' + stardu]._rotation = Math.random() * 360;
stardu += 1;
dupstar = 0;
}
if (stardu > 5) {
stardu = 1;
}
if (Key.isDown(83) && pause != true && victory <= 0 && screamer <= 0 && dead != true && climb != true && jump <= 0 && ht == 0 && rope != true && aim != true && boomer > 0 && trap != true && duck != true && aim != true && whiptimer > whipper) {
aim = true;
dupstar = 0;
ror = 0;
}
if (aim == true) {
gyro.gotoAndStop('aim');
arrows._x = gyro._x;
arrows._y = gyro._y;
arrows._visible = true;
arrows._rotation = ror * (gyro._xscale / 50);
arrows._xscale = gyro._xscale * 1.25;
}
if (aim != true) {
arrows._visible = false;
}
if (aim == true && Key.isDown(40) && ror < 70) {
ror += 5;
arrows.play();
}
if (aim == true && Key.isDown(38) && ror > -70) {
ror -= 5;
arrows.play();
}
if (boomerang1._x > gyro._x - 50 && boomerang1._x < gyro._x + 50 && boomerang1._y > gyro._y - 50 && boomerang1._y < gyro._y + 50 && boomtimer > 50) {
boomer = 1;
zex = false;
removeMovieClip(boomerang1);
}
if (!Key.isDown(83) && pause != true && victory <= 0 && screamer <= 0 && aim == true && trap != true && boomer > 0 && whiptimer > whipper && duck != true) {
duplicateMovieClip('boomerang' + type, 'boomerang' + boomer, 200 + boomer);
stardu = 1;
_root['boomx' + boomer] = bg10._x - gyro._x;
_root['boomy' + boomer] = bg10._y - gyro._y - 50 * Math.sin(ror * 0.0174532925199433);
gyro.gotoAndPlay('boomerang');
_root['trajectoryx' + boomer] = 20 * Math.cos(ror * 0.0174532925199433) * (gyro._xscale / 50);
_root['glip' + boomer] = 1 * (gyro._xscale / 80);
_root['trajectoryy' + boomer] = -20 * Math.sin(ror * 0.0174532925199433);
_root['boomacc' + boomer] = 0;
aim = false;
ht = 0;
jump = 0;
ben = 0.5;
ken = 0.5;
boomer = 0;
whiptimer = 0;
whipper = 20;
boomtimer = 0;
}
if (!Key.isDown(67)) {
cohert = false;
}
if (Key.isDown(67) && cohert != true && portaled != true && pause != true && victory <= 0 && screamer <= 0 && portaled != true) {
pause = true;
cohert = true;
gyro.stop();
}
if (Key.isDown(67) && cohert != true && pause == true) {
pause = false;
cohert = true;
}
if (pause == true && portaled != true && torial._visible != true) {
gyro.stop();
gauge.boc.gotoAndPlay(60);
pausemen._visible = true;
gauge.puzzle.gotoAndPlay(60);
gauge.gyroletters.gotoAndPlay(60);
gyro.goop.gotoAndPlay(1);
}
if (pause != true && victory <= 0 && screamer <= 0 && portaled != true && torial._visible != true) {
pausemen._visible = false;
}
if (Key.isDown(32) && torial._visible == true) {
torial.gotoAndStop(1);
torial._visible = false;
pause = false;
}
if (dead == true) {
jump = 0;
ht = 0;
}
if (pause == true) {
_quality = 'High';
}
if (pause != true && victory <= 0 && screamer <= 0 && qset >= 3) {
_quality = 'High';
}
if (pause != true && victory <= 0 && screamer <= 0 && qset == 2) {
_quality = 'Medium';
}
if (pause != true && victory <= 0 && screamer <= 0 && qset <= 1) {
_quality = 'Low';
}
boomerang1._x = bg10._x - boomx1;
boomerang1._y = bg10._y - boomy1;
star1._x = bg10._x - starx1;
star1._y = bg10._y - stary1;
star2._x = bg10._x - starx2;
star2._y = bg10._y - stary2;
star3._x = bg10._x - starx3;
star3._y = bg10._y - stary3;
star4._x = bg10._x - starx4;
star4._y = bg10._y - stary4;
star5._x = bg10._x - starx5;
star5._y = bg10._y - stary5;
gauge.blade.gotoAndStop(weapon);
bcoinb1._x = bg10._x - bcoinbx1;
bcoinb1._y = bg10._y - bcoinby1;
bcoinb2._x = bg10._x - bcoinbx2;
bcoinb2._y = bg10._y - bcoinby2;
bcoinb3._x = bg10._x - bcoinbx3;
bcoinb3._y = bg10._y - bcoinby3;
bcoinb4._x = bg10._x - bcoinbx4;
bcoinb4._y = bg10._y - bcoinby4;
bcoinb5._x = bg10._x - bcoinbx5;
bcoinb5._y = bg10._y - bcoinby5;
coinb1._x = bg10._x - coinbx1;
coinb1._y = bg10._y - coinby1;
coinb2._x = bg10._x - coinbx2;
coinb2._y = bg10._y - coinby2;
coinb3._x = bg10._x - coinbx3;
coinb3._y = bg10._y - coinby3;
coinb4._x = bg10._x - coinbx4;
coinb4._y = bg10._y - coinby4;
coinb5._x = bg10._x - coinbx5;
coinb5._y = bg10._y - coinby5;
coinb6._x = bg10._x - coinbx6;
coinb6._y = bg10._y - coinby6;
coinb7._x = bg10._x - coinbx7;
coinb7._y = bg10._y - coinby7;
coinb8._x = bg10._x - coinbx8;
coinb8._y = bg10._y - coinby8;
coinb9._x = bg10._x - coinbx9;
coinb9._y = bg10._y - coinby9;
coinb10._x = bg10._x - coinbx10;
coinb10._y = bg10._y - coinby10;
coinb11._x = bg10._x - coinbx11;
coinb11._y = bg10._y - coinby11;
coinb12._x = bg10._x - coinbx12;
coinb12._y = bg10._y - coinby12;
coinb13._x = bg10._x - coinbx13;
coinb13._y = bg10._y - coinby13;
coinb14._x = bg10._x - coinbx14;
coinb14._y = bg10._y - coinby14;
coinb15._x = bg10._x - coinbx15;
coinb15._y = bg10._y - coinby15;
coinb16._x = bg10._x - coinbx16;
coinb16._y = bg10._y - coinby16;
coinb17._x = bg10._x - coinbx17;
coinb17._y = bg10._y - coinby17;
coinb18._x = bg10._x - coinbx18;
coinb18._y = bg10._y - coinby18;
coinb19._x = bg10._x - coinbx19;
coinb19._y = bg10._y - coinby19;
coinb20._x = bg10._x - coinbx20;
coinb20._y = bg10._y - coinby20;
coinb21._x = bg10._x - coinbx21;
coinb21._y = bg10._y - coinby21;
coinb22._x = bg10._x - coinbx22;
coinb22._y = bg10._y - coinby22;
coinb23._x = bg10._x - coinbx23;
coinb23._y = bg10._y - coinby23;
coinb24._x = bg10._x - coinbx24;
coinb24._y = bg10._y - coinby24;
coinb25._x = bg10._x - coinbx25;
coinb25._y = bg10._y - coinby25;
coinb26._x = bg10._x - coinbx26;
coinb26._y = bg10._y - coinby26;
coinb27._x = bg10._x - coinbx27;
coinb27._y = bg10._y - coinby27;
coinb28._x = bg10._x - coinbx28;
coinb28._y = bg10._y - coinby28;
coinb29._x = bg10._x - coinbx29;
coinb29._y = bg10._y - coinby29;
coinb30._x = bg10._x - coinbx30;
coinb30._y = bg10._y - coinby30;
coinb31._x = bg10._x - coinbx31;
coinb31._y = bg10._y - coinby31;
coinb32._x = bg10._x - coinbx32;
coinb32._y = bg10._y - coinby32;
coinb33._x = bg10._x - coinbx33;
coinb33._y = bg10._y - coinby33;
coinb34._x = bg10._x - coinbx34;
coinb34._y = bg10._y - coinby34;
coinb35._x = bg10._x - coinbx35;
coinb35._y = bg10._y - coinby35;
coinb36._x = bg10._x - coinbx36;
coinb36._y = bg10._y - coinby36;
coinb37._x = bg10._x - coinbx37;
coinb37._y = bg10._y - coinby37;
coinb38._x = bg10._x - coinbx38;
coinb38._y = bg10._y - coinby38;
coinb39._x = bg10._x - coinbx39;
coinb39._y = bg10._y - coinby39;
coinb40._x = bg10._x - coinbx40;
coinb40._y = bg10._y - coinby40;
magicswitch._x = bg10._x - magix;
magicswitch._y = bg10._y - magiy;
gauge.lives = lives;
gauge.cash = cash;
gauge.score = benny;
starz1._x = bg10._x - starzx1;
starz1._y = bg10._y - starzy1;
starz2._x = bg10._x - starzx2;
starz2._y = bg10._y - starzy2;
starz3._x = bg10._x - starzx3;
starz3._y = bg10._y - starzy3;
starz4._x = bg10._x - starzx4;
starz4._y = bg10._y - starzy4;
starz5._x = bg10._x - starzx5;
starz5._y = bg10._y - starzy5;
starz6._x = bg10._x - starzx6;
starz6._y = bg10._y - starzy6;
flamebox._x = bg10._x - fgbx;
flamebox._y = bg10._y - fgby;
mot = 300 - gyro._x;
key._x = bg10._x - keyx;
key._y = bg10._y - keyy;
letterg._x = bg10._x - glx;
letterg._y = bg10._y - gly;
portalway._visible = gate;
gauge.gyroletters.letterg._visible = gletter;
gauge.gyroletters.lettery._visible = yletter;
gauge.gyroletters.letterr._visible = rletter;
gauge.gyroletters.lettero._visible = oletter;
wall.gotoAndStop(nero);
spring._x = bg10._x - springx;
spring._y = bg10._y - springy;
wall._x = bg10._x - wallx;
wall._y = bg10._y - wally;
bg10.wall.gotoAndStop(nero);
bg10.core.gotoAndStop(nero);
gauge.puzzle.count = puzzles;
portalway._x = bg10._x - portx;
portalway._y = bg10._y - porty;
raincash._x = bg10._x - raicax;
raincash._y = bg10._y - raicay;
boss._x = bg10._x - bossx;
boss._y = bg10._y - bossy;
bossgauge.gotoAndStop(bosshealth);
badguy1._x = bg10._x - badgx1;
badguy1._y = bg10._y - badgy1;
benzo1 += 1;
gauge.boc.count = bcash;
badguy2._x = bg10._x - badgx2;
badguy2._y = bg10._y - badgy2;
benzo2 += 1;
};
}
movieClip 1931 {
frame 1 {
stop();
}
}
movieClip 1933 {
frame 1 {
stop();
}
}
movieClip 1938 {
}
movieClip 1941 {
frame 1 {
stop();
}
frame 475 {
stop();
}
}
movieClip 1943 {
}
movieClip 1944 {
}
movieClip 1946 {
}
movieClip 1949 {
}
movieClip 1950 {
}
movieClip 1951 {
}
movieClip 1952 {
}
movieClip 1953 {
}
movieClip 1955 {
}
movieClip 1956 {
frame 1 {
stop();
}
frame 19 {
gotoAndStop(1);
}
frame 45 {
stop();
}
}
movieClip 1958 {
}
movieClip 1960 {
frame 1 {
stop();
}
frame 19 {
gotoAndStop(1);
}
frame 45 {
stop();
}
}
movieClip 1963 {
}
movieClip 1965 {
}
movieClip 1966 {
frame 1 {
stop();
}
frame 19 {
gotoAndStop(1);
}
frame 45 {
stop();
}
}
movieClip 1968 {
}
movieClip 1970 {
frame 1 {
stop();
}
frame 19 {
gotoAndStop(1);
}
frame 45 {
stop();
}
}
movieClip 1972 {
}
movieClip 1973 {
frame 1 {
stop();
}
frame 19 {
gotoAndStop(1);
}
frame 45 {
stop();
}
}
movieClip 1975 {
}
movieClip 1976 {
frame 1 {
stop();
}
frame 19 {
gotoAndStop(1);
}
frame 45 {
stop();
}
}
movieClip 1978 {
}
movieClip 1981 {
}
movieClip 1982 {
}
movieClip 1983 {
frame 41 {
stop();
}
frame 55 {
gotoAndStop(41);
}
}
movieClip 1985 {
}
movieClip 1987 {
}
movieClip 1990 {
}
movieClip 1992 {
}
movieClip 1994 {
}
movieClip 1997 {
}
movieClip 1999 {
}
movieClip 2000 {
}
movieClip 2002 {
}
movieClip 2003 {
frame 168 {
stop();
}
}
movieClip 2004 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 2005 {
frame 6 {
boss.enemy.gotoAndPlay(6);
}
frame 25 {
boss.enemy.gotoAndPlay('chomp');
}
frame 60 {
stop();
}
}
movieClip 2006 {
frame 1 {
stop();
}
}
movieClip 2009 {
frame 290 {
stop();
}
}
instance of movieClip 2009 {
onClipEvent (load) {
this.swapDepths(9700);
}
}
frame 53 {
for (i in _root) {
_root[i].swapDepths(10102);
removeMovieClip(_root[i]);
}
delete eval(onEnterFrame());
}
frame 54 {
delete eval(onEnterFrame());
}
frame 55 {
stop();
if (_root.world <= 3) {
_root.world = 3;
}
}
frame 55 {
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.data.goals1 = _root.goals1;
savefile.data.goals2 = _root.goals2;
savefile.data.goals3 = _root.goals3;
savefile.data.goals4 = _root.goals4;
savefile.data.achieva1 = _root.achieva1;
savefile.data.achieva2 = _root.achieva2;
savefile.data.achieva3 = _root.achieva3;
savefile.data.achieva4 = _root.achieva4;
savefile.data.achieva5 = _root.achieva5;
savefile.data.achieva6 = _root.achieva6;
savefile.data.achievb1 = _root.achievb1;
savefile.data.achievb2 = _root.achievb2;
savefile.data.achievb3 = _root.achievb3;
savefile.data.achievb4 = _root.achievb4;
savefile.data.achievb5 = _root.achievb5;
savefile.data.achievb6 = _root.achievb6;
savefile.data.achievc1 = _root.achievc1;
savefile.data.achievc2 = _root.achievc2;
savefile.data.achievc3 = _root.achievc3;
savefile.data.achievc4 = _root.achievc4;
savefile.data.achievc5 = _root.achievc5;
savefile.data.achievc6 = _root.achievc6;
savefile.flush();
}
instance buo of movieClip 434 {
onClipEvent (load) {
ava = 0;
_visible = false;
bonus = false;
_root.goalb1 = true;
}
onClipEvent (enterFrame) {
if (_root.world <= 1 || _root.world == undefined) {
_root.world = 2;
}
if (ava > 200) {
_visible = true;
}
if (ava > 200 && _root.percentor2 > 75 && bonus != true) {
_root.bonus.play();
bonus = true;
}
if (_root.bcash >= 20) {
_root.goalb4 = true;
}
if (_root.puzzles >= 5) {
_root.goalb5 = true;
}
if (Key.isDown(32)) {
_root.tran.play();
}
if (_root.percentor2 > _root.percent2) {
_root.percent2 = _root.percentor2;
}
if (_root.puzzles >= _root.puzzleco2 || puzzleco2 == undefined) {
_root.puzzleco2 = _root.puzzles;
}
if (_root.bcash >= _root.blueco2 || blueco2 == undefined) {
_root.blueco2 = _root.bcash;
}
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.data.goals1 = _root.goals1;
savefile.data.goals2 = _root.goals2;
savefile.data.goals3 = _root.goals3;
savefile.data.goals4 = _root.goals4;
savefile.data.achieva1 = _root.achieva1;
savefile.data.achieva2 = _root.achieva2;
savefile.data.achieva3 = _root.achieva3;
savefile.data.achieva4 = _root.achieva4;
savefile.data.achieva5 = _root.achieva5;
savefile.data.achieva6 = _root.achieva6;
savefile.data.achievb1 = _root.achievb1;
savefile.data.achievb2 = _root.achievb2;
savefile.data.achievb3 = _root.achievb3;
savefile.data.achievb4 = _root.achievb4;
savefile.data.achievb5 = _root.achievb5;
savefile.data.achievb6 = _root.achievb6;
savefile.data.achievc1 = _root.achievc1;
savefile.data.achievc2 = _root.achievc2;
savefile.data.achievc3 = _root.achievc3;
savefile.data.achievc4 = _root.achievc4;
savefile.data.achievc5 = _root.achievc5;
savefile.data.achievc6 = _root.achievc6;
savefile.flush();
ava += 1;
sc1 = 30;
sc2 = Math.round((_root.bcash / 20) * 30);
sc3 = Math.round((_root.puzzles / 5) * 35);
_root.percentor2 = sc1 + sc2 + sc3 + 5;
}
}
frame 56 {
stop();
_quality = 'High';
}
instance of movieClip 434 {
onClipEvent (enterFrame) {
if (_root.booker != true && Key.isDown(32)) {
_root.tran.play();
_root.booker = true;
}
if (_root.booker == true && !Key.isDown(32)) {
_root.booker = false;
}
}
}
frame 57 {
if (qset == undefined) {
qset = 2;
}
if (qset == 2) {
_quality = 'Medium';
}
if (qset == 1) {
_quality = 'Low';
}
if (qset == 3) {
_quality = 'High';
}
}
frame 57 {
stop();
miss = 0;
if (lives == undefined) {
lives = 9;
}
stopsound = 0;
bgb.core._visible = false;
bgb.wall._visible = false;
bgb.wall2._visible = false;
bgb.hole._visible = false;
pausemen._visible = false;
tran.swapDepths(44444);
gauge.swapDepths(20000);
pausemen.swapDepths(19999);
startup.swapDepths(10000);
wall.swapDepths(7000);
starttimer = 0;
begin = false;
wxx = bgb._x - wall._x;
wxy = bgb._y - wall._y;
cash = 0;
score = 0;
px = 0;
enx = bgb._x - enemy._x;
enxy = bgb._y - enemy._y;
sweater = 0;
timeout = 50;
mnx = gyro._x - 100;
mxx = gyro._x + 100;
jump = 0;
ht = 0;
motion = 9;
att = 0;
whipper = 0;
whiptimer = 0;
boomper = 0;
difficulty = 1;
bomber = 0;
nobomb = 0;
genny = 0;
bombo = 0;
victorycharge = 0;
victory = false;
onEnterFrame = function () {
if (bgb.wall.hitTest(gyro._x + 40, gyro._y, true)) {
midground._x += geng;
gyro._x -= motion;
}
while (bgb.wall.hitTest(gyro._x + 40, gyro._y, true)) {
gyro._x -= 0.1;
}
if (bgb.wall.hitTest(gyro._x - 40, gyro._y, true)) {
gyro._x += motion;
midground._x -= geng;
}
while (bgb.wall.hitTest(gyro._x - 40, gyro._y, true)) {
gyro._x += 0.1;
}
if (bgb.wall2.hitTest(bomb1._x + 40, bomb1._y, true)) {
blaunch1 = 0;
}
if (bgb.wall2.hitTest(bomb2._x + 40, bomb2._y, true)) {
blaunch2 = 0;
}
if (bgb.wall2.hitTest(bomb3._x + 40, bomb3._y, true)) {
blaunch3 = 0;
}
if (boomper < 300) {
pause = true;
}
if (boomper >= 300 && begin != true) {
pause = false;
begin = true;
}
if (score >= 5000) {
goala6 = true;
}
if (Key.isDown(39) && genny <= 0 && pause != true && victory != true && victorycharge <= 0 && gyro._x <= mxx) {
gyro.legs.play();
goright = true;
goleft = false;
gyro.arms.gotoAndStop('run');
gyro.body.gotoAndStop('run');
geng = 0;
gyro._x += motion;
gyro._xscale = 80;
}
if (Key.isDown(37) && genny <= 0 && pause != true && victory != true && victorycharge <= 0 && gyro._x >= mnx) {
gyro.legs.play();
goleft = true;
goright = false;
gyro.arms.gotoAndStop('run');
gyro.body.gotoAndStop('run');
geng = 0;
gyro._x -= motion;
gyro._xscale = -80;
}
if (Key.isDown(39) && genny <= 0 && pause != true && victory != true && victorycharge <= 0 && gyro._x > mxx) {
gyro.legs.play();
goright = true;
goleft = false;
geng = 0.5;
midground._x -= geng;
gyro.arms.gotoAndStop('run');
gyro.body.gotoAndStop('run');
bgb._x -= motion;
gyro._xscale = 80;
}
if (Key.isDown(37) && genny <= 0 && pause != true && victory != true && victorycharge <= 0 && gyro._x < mnx) {
gyro.legs.play();
goleft = true;
goright = false;
geng = 0.5;
midground._x += geng;
gyro.arms.gotoAndStop('run');
gyro.body.gotoAndStop('run');
bgb._x += motion;
gyro._xscale = -80;
}
if (!Key.isDown(37) && pause != true && victory != true && victorycharge <= 0 && goleft == true) {
gyro.legs.gotoAndPlay(1);
gyro.arms.gotoAndPlay(1);
gyro.body.gotoAndPlay(1);
goleft = false;
}
if (!Key.isDown(39) && pause != true && victory != true && victorycharge <= 0 && goright == true) {
gyro.legs.gotoAndPlay(1);
gyro.arms.gotoAndPlay(1);
gyro.body.gotoAndPlay(1);
goright = false;
}
if (pause != true && victory != true && victorycharge <= 0) {
sweet1._x = bgb._x - swex1;
sweet1._y = bgb._y - swey1;
swey1 += swejump1;
swejump1 -= 0.5;
swex1 += sweburst1 * (sweet1._xscale / 100);
sweet2._x = bgb._x - swex2;
sweet2._y = bgb._y - swey2;
swey2 += swejump2;
swejump2 -= 0.5;
swex2 += sweburst2 * (sweet2._xscale / 100);
sweet3._x = bgb._x - swex3;
sweet3._y = bgb._y - swey3;
swey3 += swejump3;
swejump3 -= 0.5;
swex3 += sweburst3 * (sweet3._xscale / 100);
sweet4._x = bgb._x - swex4;
sweet4._y = bgb._y - swey4;
swey4 += swejump4;
swejump4 -= 0.5;
swex4 += sweburst4 * (sweet4._xscale / 100);
sweet5._x = bgb._x - swex5;
sweet5._y = bgb._y - swey5;
swey5 += swejump5;
swejump5 -= 0.5;
swex5 += sweburst5 * (sweet5._xscale / 100);
sweet6._x = bgb._x - swex6;
sweet6._y = bgb._y - swey6;
swey6 += swejump6;
swejump6 -= 0.5;
swex6 += sweburst6 * (sweet6._xscale / 100);
sweburst1 *= 0.92;
sweburst2 *= 0.92;
sweburst3 *= 0.92;
sweburst4 *= 0.92;
sweburst5 *= 0.92;
sweburst6 *= 0.92;
}
if (sweater > 5 && sweater < 7) {
duplicateMovieClip(sweat, 'sweet1', 301);
swex1 = bgb._x - gyro._x;
swey1 = bgb._y - (gyro._y - Math.random() * 20);
sweburst1 = Math.random() * 4;
swejump1 = 3;
}
if (sweater > 15 && sweater < 17) {
duplicateMovieClip(sweat, 'sweet2', 302);
swex2 = bgb._x - gyro._x;
swey2 = bgb._y - (gyro._y - Math.random() * 20);
sweburst2 = Math.random() * 4;
swejump2 = 3;
sweet2._xscale = -100;
}
if (sweater > 25 && sweater < 27) {
duplicateMovieClip(sweat, 'sweet3', 303);
swex3 = bgb._x - gyro._x;
swey3 = bgb._y - (gyro._y - Math.random() * 20);
sweburst3 = Math.random() * 4;
swejump3 = 3;
}
if (sweater > 35 && sweater < 37) {
duplicateMovieClip(sweat, 'sweet4', 304);
swex4 = bgb._x - gyro._x;
swey4 = bgb._y - (gyro._y - Math.random() * 20);
sweburst4 = Math.random() * 4;
swejump4 = 3;
sweet4._xscale = -100;
}
if (sweater > 45 && sweater < 47) {
duplicateMovieClip(sweat, 'sweet5', 305);
swex5 = bgb._x - gyro._x;
swey5 = bgb._y - (gyro._y - Math.random() * 20);
sweburst5 = Math.random() * 4;
swejump5 = 3;
}
if (sweater > 55) {
duplicateMovieClip(sweat, 'sweet6', 306);
swex6 = bgb._x - gyro._x;
swey6 = bgb._y - (gyro._y - Math.random() * 20);
sweburst6 = Math.random() * 4;
swejump6 = 3;
sweet6._xscale = -100;
sweater = 0;
}
if (px >= difficulty) {
bomber = 0;
bombed = false;
px = 0;
}
if (bomb1.hitTest(bgb.hole) && pause != true && victory != true && victorycharge <= 0) {
score += 100;
nobomb += 1;
sound.play();
px += 1;
removeMovieClip(bomb1);
bombo += 1;
}
if (bomb2.hitTest(bgb.hole) && pause != true && victory != true && victorycharge <= 0) {
score += 100;
nobomb += 1;
sound.gotoAndPlay(2);
bombo += 1;
px += 1;
removeMovieClip(bomb2);
}
if (bomb3.hitTest(bgb.hole) && pause != true && victory != true && victorycharge <= 0) {
score += 100;
nobomb += 1;
sound.gotoAndPlay(2);
bombo += 1;
px += 1;
removeMovieClip(bomb3);
}
if (gyro.arms.hitTest(bomb1._x, bomb1._y + 20, true) && bjump1 < 0) {
bjump1 = 10;
gyro.arms.spring.gotoAndPlay(2);
}
if (gyro.arms.hitTest(bomb2._x, bomb2._y + 20, true) && bjump2 < 0) {
bjump2 = 12;
gyro.arms.spring.gotoAndPlay(2);
}
if (gyro.arms.hitTest(bomb3._x, bomb3._y + 20, true) && bjump3 < 0) {
bjump3 = 14;
gyro.arms.spring.gotoAndPlay(2);
}
if (pause != true && victory != true && victorycharge <= 0 && bombed != true && miss <= 2) {
bomber += 1;
}
if (pause != true && victory != true && victorycharge <= 0) {
bxx1 -= blaunch1;
bjump1 -= 0.2;
bxy1 += bjump1;
bomb1._rotation += 3;
bxx2 -= blaunch2;
bjump2 -= 0.25;
bxy2 += bjump2;
bomb2._rotation -= 4;
bxx3 -= blaunch3;
bjump3 -= 0.29;
bxy3 += bjump3;
bomb3._rotation -= 4;
}
if (bomber > 200 && bombed != true && miss <= 2 && difficulty <= 1) {
duplicateMovieClip(bomb, 'bomb1', 201);
bxx1 = bgb._x - (enemy._x + 40);
bxy1 = bgb._y - (enemy._y + 40);
bjump1 = 7 + Math.random() * 6;
blaunch1 = 3 + Math.random() * 2;
enemy.badger.gotoAndPlay('throw');
bomber = 0;
bombed = true;
}
if (bomber > 200 && bomber < 202 && bombed != true && miss <= 2 && difficulty == 2) {
duplicateMovieClip(bomb, 'bomb1', 201);
bxx1 = bgb._x - (enemy._x + 40);
bxy1 = bgb._y - (enemy._y + 40);
bjump1 = 7 + Math.random() * 4;
enemy.badger.gotoAndPlay('throw');
blaunch1 = 3 + Math.random() * 2;
}
if (bomber > 224 && bombed != true && miss <= 2 && difficulty == 2) {
duplicateMovieClip(bomb, 'bomb2', 202);
bxx2 = bgb._x - (enemy._x + 40);
bxy2 = bgb._y - (enemy._y + 40);
bjump2 = 10 + Math.random() * 4;
blaunch2 = blaunch1;
enemy.badger.gotoAndPlay('throw');
bomber = 0;
bombed = true;
}
if (bjump2 < -6) {
bjump2 = -6;
}
if (bjump3 < -7) {
bjump3 = -7;
}
if (bjump1 < -7) {
bjump1 = -7;
}
if (bomber > 200 && bomber < 202 && bombed != true && miss <= 2 && difficulty >= 3) {
duplicateMovieClip(bomb, 'bomb1', 201);
bxx1 = bgb._x - (enemy._x + 40);
bxy1 = bgb._y - (enemy._y + 40);
bjump1 = 6 + Math.random() * 4;
blaunch1 = 3 + Math.random() * 2;
enemy.badger.gotoAndPlay('throw');
}
if (bomber > 214 && bomber < 216 && bombed != true && miss <= 2 && difficulty >= 3) {
duplicateMovieClip(bomb, 'bomb2', 202);
bxx2 = bgb._x - (enemy._x + 40);
bxy2 = bgb._y - (enemy._y + 40);
bjump2 = 11 + Math.random() * 4;
blaunch2 = blaunch1;
}
if (bomber > 224 && bombed != true && miss <= 2 && difficulty >= 3) {
duplicateMovieClip(bomb, 'bomb3', 203);
bxx3 = bgb._x - (enemy._x + 40);
bxy3 = bgb._y - (enemy._y + 40);
bjump3 = 15 + Math.random() * 4;
blaunch3 = blaunch1;
enemy.badger.gotoAndPlay('throw');
bomber = 0;
bombed = true;
}
if (bomb2._y < 30 && victory != true) {
bombmark2._visible = true;
bombmark2._x = bomb2._x;
}
if (bomb2._y > 30 && victory != true) {
bombmark2._visible = false;
}
if (bomb3._y < 30 && victory != true) {
bombmark3._visible = true;
bombmark3._x = bomb3._x;
}
if (bomb3._y > 30 && victory != true) {
bombmark3._visible = false;
}
if (bomb1._y < 30 && victory != true) {
bombmark1._visible = true;
bombmark1._x = bomb1._x;
}
if (bomb1._y > 30 && victory != true) {
bombmark1._visible = false;
}
if (score == 300 && difficulty <= 1) {
genny = 150;
px = 2;
sound.gotoAndStop(1);
difficulty = 2;
score += 1000;
}
if (score == 2000 && difficulty == 2) {
genny = 150;
px = 3;
sound.gotoAndStop(1);
difficulty = 3;
score += 1000;
}
if (genny > 0) {
gyro._xscale = 80;
gyro.legs.gotoAndStop(1);
genny -= 1;
}
if (genny > 75 && enemy._x < 50) {
enemy.badger.gotoAndStop('grrr');
bgb._x += zenenemy / 11;
gyro._x += zenenemy / 11;
}
if (genny < 55 && genny > 53) {
gyro.body.head.gotoAndPlay('scream');
}
if (genny < 75 && genny > 0 && gyro._x > 300) {
bgb._x -= zengyro / 11;
gyro._x -= zengyro / 11;
}
if (bgb.core.hitTest(bomb1._x, bomb1._y, true)) {
duplicateMovieClip(expload, 'explosion', 2000);
expx = bgb._x - bomb1._x;
expy = bgb._y - bomb1._y;
sound.gotoAndPlay('expload');
removeMovieClip(bomb1);
px += 1;
miss += 1;
}
if (bgb.core.hitTest(bomb2._x, bomb2._y, true)) {
duplicateMovieClip(expload, 'explosion', 2000);
expx = bgb._x - bomb2._x;
expy = bgb._y - bomb2._y;
sound.gotoAndPlay('expload');
removeMovieClip(bomb2);
px += 1;
miss += 1;
}
if (bgb.core.hitTest(bomb3._x, bomb3._y, true)) {
duplicateMovieClip(expload, 'explosion', 2000);
expx = bgb._x - bomb3._x;
expy = bgb._y - bomb3._y;
sound.gotoAndPlay('expload');
removeMovieClip(bomb3);
px += 1;
miss += 1;
}
if (cohert == true && !Key.isDown(67)) {
cohert = false;
}
if (Key.isDown(67) && cohert != true && pause != true && victory != true && victorycharge <= 0 && genny <= 0) {
pause = true;
cohert = true;
gyro.stop();
}
if (Key.isDown(67) && cohert != true && pause == true && genny <= 0) {
pause = false;
cohert = true;
}
if (pause == true && miss < 3 && genny <= 0 && boomper > 300 && victorycharge <= 0) {
gyro.stop();
pausemen._visible = true;
gyro.goop.gotoAndPlay(1);
}
if (pause != true && victory != true && victorycharge <= 0) {
pausemen._visible = false;
}
if (miss >= 3 && zoko != true) {
tran.play();
sound.gotoAndPlay('fail');
zoko = true;
}
if (score >= 5000 && victory != true) {
victorycharge = 500;
victory = true;
}
if (victorycharge > 400 && victorycharge <= 500 && enemy._x < 50) {
bgb._x += zenenemy / 9;
gyro._x += zenenemy / 9;
}
if (victorycharge < 480 && victorycharge > 400) {
removeMovieClip(pausemen);
enemy.play();
}
if (victorycharge > 0 && victorycharge <= 400 && gyro._x > 300) {
bgb._x -= zengyro / 18;
gyro._x -= zengyro / 18;
}
if (victorycharge > 370 && victorycharge < 380) {
gyro.play();
}
if (victorycharge > 0) {
bomb1._visible = false;
bomb2._visible = false;
bomb3._visible = false;
pause = true;
bombmark1._visible = false;
bombmark2._visible = false;
bombmark3._visible = false;
}
bomb1._x = bgb._x - bxx1;
bomb1._y = bgb._y - bxy1;
bomb2._x = bgb._x - bxx2;
bomb2._y = bgb._y - bxy2;
bomb3._x = bgb._x - bxx3;
bomb3._y = bgb._y - bxy3;
explosion._x = bgb._x - expx;
explosion._y = bgb._y - expy;
victorycharge -= 1;
zenenemy = 250 - enemy._x;
zengyro = gyro._x - 250;
wall._x = bgb._x - wxx;
wall._y = bgb._y - wxy;
gauge.misses.gotoAndStop(miss + 1);
boomper += 1;
sweater += 1;
enemy._x = bgb._x - enx;
enemy._y = bgb._y - enxy;
starttimer += 1;
gauge.boc._visible = false;
gauge.puzzle._visible = false;
gauge.gyroletters._visible = false;
gauge.score = score;
gauge.lives = lives;
gauge.cash = cash;
};
}
frame 58 {
for (i in _root) {
_root[i].swapDepths(10102);
removeMovieClip(_root[i]);
}
delete eval(onEnterFrame());
}
frame 59 {
if (_root.score < 1000) {
_root.bonuslives = 0;
}
if (_root.score >= 1000 && _root.score <= 1500) {
_root.bonuslives = 1;
}
if (_root.score >= 1500 && _root.score <= 2500) {
_root.bonuslives = 2;
}
if (_root.score >= 2500 && _root.score <= 3500) {
_root.bonuslives = 3;
}
if (_root.score >= 3500 && _root.score <= 5000) {
_root.bonuslives = 4;
}
if (_root.score >= 5000) {
_root.bonuslives = 5;
}
}
frame 59 {
delete eval(onEnterFrame());
}
frame 60 {
stop();
}
frame 60 {
_quality = 'High';
miss = 0;
}
frame 60 {
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goala6 = _root.goala6;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalb6 = _root.goalb6;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goalc6 = _root.goalc6;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goald6 = _root.goald6;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.goale6 = _root.goale6;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.data.goals1 = _root.goals1;
savefile.data.goals2 = _root.goals2;
savefile.data.goals3 = _root.goals3;
savefile.data.goals4 = _root.goals4;
savefile.data.achieva1 = _root.achieva1;
savefile.data.achieva2 = _root.achieva2;
savefile.data.achieva3 = _root.achieva3;
savefile.data.achieva4 = _root.achieva4;
savefile.data.achieva5 = _root.achieva5;
savefile.data.achieva6 = _root.achieva6;
savefile.data.achievb1 = _root.achievb1;
savefile.data.achievb2 = _root.achievb2;
savefile.data.achievb3 = _root.achievb3;
savefile.data.achievb4 = _root.achievb4;
savefile.data.achievb5 = _root.achievb5;
savefile.data.achievb6 = _root.achievb6;
savefile.data.achievc1 = _root.achievc1;
savefile.data.achievc2 = _root.achievc2;
savefile.data.achievc3 = _root.achievc3;
savefile.data.achievc4 = _root.achievc4;
savefile.data.achievc5 = _root.achievc5;
savefile.data.achievc6 = _root.achievc6;
savefile.flush();
}
instance of movieClip 1521 {
onClipEvent (enterFrame) {
if (_root.goala6 == true) {
this.play();
}
}
}
instance buo of movieClip 434 {
onClipEvent (load) {
ava = 0;
_visible = false;
bonus = false;
_root.lives += _root.bonuslives;
}
onClipEvent (enterFrame) {
if (_root.score < 1000) {
_root.bonuslives = 0;
}
if (_root.score >= 1000 && _root.score <= 1500) {
_root.bonuslives = 1;
}
if (_root.score >= 1500 && _root.score <= 2500) {
_root.bonuslives = 2;
}
if (_root.score >= 2500 && _root.score <= 3500) {
_root.bonuslives = 3;
}
if (_root.score >= 3500 && _root.score <= 5000) {
_root.bonuslives = 4;
}
if (_root.score >= 5000) {
_root.bonuslives = 5;
}
if (ava > 300 && visible != true) {
_visible = true;
}
if (Key.isDown(32)) {
_root.tran.play();
savefile.data.lives = _root.lives;
savefile.data.world = _root.world;
savefile.data.percent1 = _root.percent1;
savefile.data.percent2 = _root.percent2;
savefile.data.percent3 = _root.percent3;
savefile.data.percent4 = _root.percent4;
savefile.data.percent5 = _root.percent5;
savefile.data.goala1 = _root.goala1;
savefile.data.goala2 = _root.goala2;
savefile.data.goala3 = _root.goala3;
savefile.data.goala4 = _root.goala4;
savefile.data.goala5 = _root.goala5;
savefile.data.goalb1 = _root.goalb1;
savefile.data.goalb2 = _root.goalb2;
savefile.data.goalb3 = _root.goalb3;
savefile.data.goalb4 = _root.goalb4;
savefile.data.goalb5 = _root.goalb5;
savefile.data.goalc1 = _root.goalc1;
savefile.data.goalc2 = _root.goalc2;
savefile.data.goalc3 = _root.goalc3;
savefile.data.goalc4 = _root.goalc4;
savefile.data.goalc5 = _root.goalc5;
savefile.data.goald1 = _root.goald1;
savefile.data.goald2 = _root.goald2;
savefile.data.goald3 = _root.goald3;
savefile.data.goald4 = _root.goald4;
savefile.data.goald5 = _root.goald5;
savefile.data.goale1 = _root.goale1;
savefile.data.goale2 = _root.goale2;
savefile.data.goale3 = _root.goale3;
savefile.data.goale4 = _root.goale4;
savefile.data.goale5 = _root.goale5;
savefile.data.blueco1 = _root.blueco1;
savefile.data.blueco2 = _root.blueco2;
savefile.data.blueco3 = _root.blueco3;
savefile.data.blueco4 = _root.blueco4;
savefile.data.blueco5 = _root.blueco5;
savefile.data.puzzleco1 = _root.puzzleco1;
savefile.data.puzzleco2 = _root.puzzleco2;
savefile.data.puzzleco3 = _root.puzzleco3;
savefile.data.puzzleco4 = _root.puzzleco4;
savefile.data.puzzleco5 = _root.puzzleco5;
savefile.data.goals1 = _root.goals1;
savefile.data.goals2 = _root.goals2;
savefile.data.goals3 = _root.goals3;
savefile.data.goals4 = _root.goals4;
savefile.data.achieva1 = _root.achieva1;
savefile.data.achieva2 = _root.achieva2;
savefile.data.achieva3 = _root.achieva3;
savefile.data.achieva4 = _root.achieva4;
savefile.data.achieva5 = _root.achieva5;
savefile.data.achieva6 = _root.achieva6;
savefile.data.achievb1 = _root.achievb1;
savefile.data.achievb2 = _root.achievb2;
savefile.data.achievb3 = _root.achievb3;
savefile.data.achievb4 = _root.achievb4;
savefile.data.achievb5 = _root.achievb5;
savefile.data.achievb6 = _root.achievb6;
savefile.data.achievc1 = _root.achievc1;
savefile.data.achievc2 = _root.achievc2;
savefile.data.achievc3 = _root.achievc3;
savefile.data.achievc4 = _root.achievc4;
savefile.data.achievc5 = _root.achievc5;
savefile.data.achievc6 = _root.achievc6;
savefile.flush();
}
ava += 1;
sc1 = Math.round((_root.gyroletterx / 4) * 30);
sc2 = Math.round((_root.bcash / 20) * 20);
sc3 = Math.round((_root.puzzles / 5) * 50);
_root.percent1 = sc1 + sc2 + sc3;
}
}