Combined Code
frame 1 {
}
movieClip 5 {
}
movieClip 9 {
}
movieClip 13 {
}
movieClip 15 {
}
movieClip 25 {
frame 40 {
stop();
}
}
button 29 {
on (press) {
gotoAndStop('end');
_root.play();
}
}
movieClip 41 {
}
button 42 {
on (press) {
tellTarget ('_root') {
nextFrame();
}
tellTarget ('_target') {
}
}
}
button 43 {
on (press) {
gotoAndStop('end');
_root.play();
}
}
movieClip 44 {
instance of movieClip 9 {
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();
}
}
movieClip 45 {
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');
}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
}
}
movieClip 50 {
}
movieClip 58 {
}
movieClip 59 {
}
movieClip 62 {
}
movieClip 67 {
}
button 69 {
on (press) {
stopAllSounds();
_root.gotoAndPlay('storyGame');
}
}
button 71 {
on (press) {
_root.gotoAndStop('instructions');
}
}
button 73 {
on (press) {
getURL('http://www.funfastgame.com/', '');
}
}
button 75 {
on (press) {
getURL('http://www.funfastgame.com/', '');
}
}
button 76 {
on (press) {
getURL('http://www.funfastgame.com/', '');
}
}
movieClip 77 {
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');
}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {};
stop();
}
}
frame 483 {
stop();
}
movieClip 81 {
frame 28 {
stop();
}
frame 45 {
gotoAndStop(28);
}
frame 57 {
stop();
}
}
instance of movieClip 81 {
onClipEvent (rollOver) {
this.gotoAndPlay('over');
}
onClipEvent (press) {
_root.gotoAndPlay('menuMenu');
}
}
frame 485 {
play();
onEnterFrame = function () {
_root.hero.activated = true;
};
}
frame 486 {
_quality = 'HIGH';
stop();
}
movieClip 87 {
}
instance of movieClip 87 {
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
}
movieClip 89 {
}
instance ground of movieClip 89 {
onClipEvent (load) {
_visible = false;
}
}
movieClip 104 {
frame 1 {
gotoAndPlay(random(30));
}
}
movieClip 111 {
}
movieClip 116 {
}
movieClip 119 {
}
movieClip 120 {
frame 15 {
_parent.gotoAndStop(1);
}
frame 32 {
_parent.gotoAndStop(1);
}
frame 68 {
_parent.gotoAndStop(1);
}
frame 82 {
this.gotoAndPlay('hurt5');
}
frame 107 {
_parent.gotoAndStop(1);
}
}
movieClip 128 {
frame 1 {
_visible = false;
}
}
movieClip 133 {
frame 45 {
_parent.gotoAndStop(1);
}
}
movieClip 134 {
frame 1 {
stop();
onEnterFrame = function () {
grav -= 0.5;
this._y -= grav;
if (!dead) {
if (_root.ground.hitTest(_x, _y + 1, true)) {
onGround = true;
} else {
onGround = false;
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = _y - 1;
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 20, _y - _height / 2, true)) {
_x = _x + moveSpeed;
}
while (_root.ground.hitTest(_x + 20, _y - _height / 2, true)) {
_x = _x - moveSpeed;
}
while (_root.ground.hitTest(_x, _y - _height, true)) {
_y = _y + 1;
_y = _y + 1;
grav = -4;
}
}
xdist = _root.hero._x - this._x;
ydist = _root.hero._y - this._y;
if (xdist > 0) {
_xscale = 100;
}
if (xdist < 0) {
_xscale = -100;
}
if (!dead) {
if (!hurt) {
if (this.hitTest(_root.hero) == false) {
if (ydist < eyeSight && -ydist > -eyeSight) {
if (xdist > -eyeSight && _xscale == -100) {
_x = _x - moveSpeed;
if (this._currentframe == 1) {
}
}
if (xdist < eyeSight && _xscale == 100) {
_x = _x + moveSpeed;
if (this._currentframe == 1) {
}
}
}
}
}
}
if (xSpeed > 0) {
_x = _x + xSpeed;
if (onGround) {
xSpeed -= 0.5;
} else {
xSpeed -= 0.05;
}
}
if (xSpeed < 0) {
_x = _x + xSpeed;
if (onGround) {
xSpeed += 0.5;
} else {
xSpeed += 0.05;
}
}
if (!dead) {
if (!hurt) {
if (onGround) {
if (_root.ground.hitTest(_x + 21, _y, true) && _xscale == 100) {
this.grav = jumpHeight;
}
if (_root.ground.hitTest(_x - 21, _y, true) && _xscale == 100) {
this.grav = jumpHeight;
}
}
if (onGround) {
if (_root.ground.hitTest(_x + 20, _y + 100, true) == false && _xscale == 100) {
this.grav = jumpHeight * 2;
xSpeed = 4;
}
if (_root.ground.hitTest(_x - 20, _y + 100, true) == false && _xscale == -100) {
this.grav = jumpHeight * 2;
xSpeed = -4;
}
}
}
}
if (this._currentframe == 2) {
hurt = true;
} else {
hurt = false;
}
if (this.hitTest(_root.hero.attack.hit1)) {
life -= 1;
this.gotoAndStop('hurt');
this.hurt_mc.gotoAndPlay('hurt1');
_root.hero.attack.hitEffect.gotoAndStop(2);
_root.hero.attack.hitEffect.hit1.gotoAndPlay(1);
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 1;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 1;
}
if (!onGround) {
grav -= 2;
_root.hud.score += 3;
} else {
_root.hud.score += 1;
}
}
if (this.hitTest(_root.hero.attack.hit2)) {
life -= 2;
this.gotoAndStop('hurt');
this.hurt_mc.gotoAndPlay('hurt1');
this.grav = 3;
_root.hero.attack.hitEffect.gotoAndStop(3);
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 1.5;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 1.5;
}
if (!onGround) {
_root.hud.score += 4;
} else {
_root.hud.score += 2;
}
}
if (this.hitTest(_root.hero.attack.hit3)) {
_root.hero.attack.hitEffect.gotoAndStop(4);
life -= 3;
this.gotoAndStop('hurt');
this.hurt_mc.gotoAndPlay('hurt3');
this.grav = 4;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 6;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 6;
}
if (!onGround) {
_root.hud.score += 5;
} else {
_root.hud.score += 3;
}
}
if (this.hitTest(_root.hero.attack.hit4)) {
_root.hero.attack.hitEffect.gotoAndStop(5);
life -= 4;
this.grav = 4;
this.gotoAndStop('hurt');
this.hurt_mc.gotoAndPlay('hurt4');
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 15;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 15;
}
if (!onGround) {
_root.hud.score += 6;
} else {
_root.hud.score += 4;
}
}
if (this.hitTest(_root.hero.attack.hit5)) {
_root.hero.attack.hitEffect.gotoAndStop(6);
life -= 1;
this.grav = 20;
this.gotoAndStop('hurt');
this.hurt_mc.gotoAndPlay('hurt5');
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + random(7);
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - random(7);
}
if (!onGround) {
_root.hud.score += 7;
} else {
_root.hud.score += 5;
}
}
if (this.hitTest(_root.hero.attack.hit6)) {
_root.hero.attack.hitEffect.gotoAndStop(5);
if (!onGround) {
this.grav = -20;
life -= 3;
} else {
this.grav = 7;
life -= 1;
}
this.gotoAndStop('hurt');
this.hurt_mc.gotoAndPlay('hurt5');
if (_root.hero._xscale == 100) {
if (!onGround) {
this.xSpeed = _root.hero.xSpeed + 5;
} else {
this.xSpeed = _root.hero.xSpeed + 1;
}
}
if (_root.hero._xscale == -100) {
if (!onGround) {
this.xSpeed = _root.hero.xSpeed - 5;
} else {
this.xSpeed = _root.hero.xSpeed - 1;
}
}
if (!onGround) {
_root.hud.score += 8;
} else {
_root.hud.score += 6;
}
}
if (!dead) {
if (hurt) {
if (_root.ground.hitTest(_x - 23, _y - 20, true)) {
this.xSpeed = (xSpeed + 1) * -1;
this.gotoAndStop('hurt');
this.hurt_mc.gotoAndPlay('hurt1');
}
if (_root.ground.hitTest(_x + 23, _y - 20, true)) {
this.xSpeed = (xSpeed + 1) * -1;
this.hurt_mc.gotoAndPlay('hurt1');
}
if (grav < 0) {
if (_root.ground.hitTest(_x, _y + 3, true)) {
if (this.hurt_mc._currentframe >= 69 && this.hurt_mc._currentframe <= 82) {
this.grav = (grav / 2) * -1;
this.hurt_mc.gotoAndPlay('hurt6');
}
}
}
}
}
if (_root.hero.life > 0) {
if (onGround && this._currentframe == 1) {
if (this.hitTest(_root.hero.bound)) {
this.gotoAndStop('attack');
xSpeed = 0;
}
}
if (this.attack.hit1.hitTest(_root.hero.bound)) {
if (this._xscale == 100) {
_root.hero.xSpeed = 6;
}
if (this._xscale == -100) {
_root.hero.xSpeed = -6;
}
_root.hero.hurt = true;
_root.hero.gotoAndStop('hurt');
_root.hero.life -= 0.5;
}
if (this.attack.hit2.hitTest(_root.hero.bound)) {
if (this._xscale == 100) {
_root.hero.xSpeed = 10;
}
if (this._xscale == -100) {
_root.hero.xSpeed = -10;
}
grav = 4;
_root.hero.grav = 10;
_root.hero.hurt = true;
_root.hero.gotoAndStop('hurt');
_root.hero.hurt_mc.gotoAndPlay('hurt2');
_root.hero.life -= 0.5;
}
}
if (hurt) {
this.gotoAndStop(2);
}
if (!dead) {
if (this._currentframe == 1) {
if (onGround) {
if (this.hitTest(_root.hero)) {
this.walk.gotoAndStop(1);
} else {
this.walk.play();
}
} else {
this.walk.gotoAndStop(10);
}
}
}
if (life <= 0) {
dead = true;
if (this._currentframe == 1) {
this.gotoAndStop('hurt');
this.hurt_mc.gotoAndStop('dead');
}
} else {
if (life > 0) {
dead = false;
}
}
if (dead) {
if (deathBounce == true) {
grav = 7;
deathBounce = false;
}
}
};
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
var attacking = false;
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
movieClip 136 {
frame 1 {
_visible = false;
}
}
movieClip 152 {
}
movieClip 163 {
}
movieClip 176 {
}
movieClip 187 {
frame 18 {
_parent.gotoAndStop(1);
}
}
movieClip 194 {
frame 18 {
_parent.gotoAndStop(1);
}
}
movieClip 207 {
frame 22 {
_parent.gotoAndStop(1);
}
}
movieClip 218 {
frame 22 {
_parent.gotoAndStop(1);
}
}
movieClip 229 {
frame 12 {
_parent.gotoAndStop(1);
}
}
movieClip 230 {
frame 1 {
stop();
}
}
movieClip 343 {
frame 1 {
onEnterFrame = function () {
if (_parent.pressingAttack == false) {
if (Key.isDown(_parent.Punch) && Key.isDown(_parent.Left) == false && Key.isDown(_parent.Right) == false) {
if (this._currentframe > 9 && this._currentframe < 23) {
this.gotoAndPlay('attack4');
if (_parent._xscale == 100 && Key.isDown(_parent.Left)) {
_parent._xscale = -100;
} else {
if (_parent._xscale == -100 && Key.isDown(_parent.Right)) {
_parent._xscale = 100;
}
}
}
if (this._currentframe > 79 && this._currentframe < 88) {
this.gotoAndPlay('attack3');
if (_parent._xscale == 100 && Key.isDown(_parent.Left)) {
_parent._xscale = -100;
} else {
if (_parent._xscale == -100 && Key.isDown(_parent.Right)) {
_parent._xscale = 100;
}
}
}
if (this._currentframe > 85 && this._currentframe < 94) {
this.gotoAndPlay('attack5');
if (_parent._xscale == 100 && Key.isDown(_parent.Left)) {
_parent._xscale = -100;
} else {
if (_parent._xscale == -100 && Key.isDown(_parent.Right)) {
_parent._xscale = 100;
}
}
}
if (this._currentframe > 35 && this._currentframe < 44) {
this.gotoAndPlay('attack5');
if (_parent._xscale == 100 && Key.isDown(_parent.Left)) {
_parent._xscale = -100;
} else {
if (_parent._xscale == -100 && Key.isDown(_parent.Right)) {
_parent._xscale = 100;
}
}
}
if (this._currentframe > 106 && this._currentframe < 132) {
this.gotoAndPlay('attack6');
if (_parent._xscale == 100 && Key.isDown(_parent.Left)) {
_parent._xscale = -100;
} else {
if (_parent._xscale == -100 && Key.isDown(_parent.Right)) {
_parent._xscale = 100;
}
}
}
if (this._currentframe > 185 && this._currentframe < 191) {
this.gotoAndPlay('attack3');
if (_parent._xscale == 100 && Key.isDown(_parent.Left)) {
_parent._xscale = -100;
} else {
if (_parent._xscale == -100 && Key.isDown(_parent.Right)) {
_parent._xscale = 100;
}
}
}
if (this._currentframe > 187 && this._currentframe < 203) {
this.gotoAndPlay('attack5');
if (_parent._xscale == 100 && Key.isDown(_parent.Left)) {
_parent._xscale = -100;
} else {
if (_parent._xscale == -100 && Key.isDown(_parent.Right)) {
_parent._xscale = 100;
}
}
}
if (this._currentframe > 240 && this._currentframe < 247) {
this.gotoAndPlay('attack4');
if (_parent._xscale == 100 && Key.isDown(_parent.Left)) {
_parent._xscale = -100;
} else {
if (_parent._xscale == -100 && Key.isDown(_parent.Right)) {
_parent._xscale = 100;
}
}
}
if (this._currentframe > 209 && this._currentframe < 219) {
this.gotoAndPlay('attack4');
if (_parent._xscale == 100 && Key.isDown(_parent.Left)) {
_parent._xscale = -100;
} else {
if (_parent._xscale == -100 && Key.isDown(_parent.Right)) {
_parent._xscale = 100;
}
}
}
}
if (Key.isDown(_parent.Punch) && (Key.isDown(_parent.Left) || Key.isDown(_parent.Right))) {
if (this._currentframe > 185 && this._currentframe < 191) {
this.gotoAndPlay('attack8');
if (_parent._xscale == 100 && Key.isDown(_parent.Left)) {
_parent._xscale = -100;
} else {
if (_parent._xscale == -100 && Key.isDown(_parent.Right)) {
_parent._xscale = 100;
}
}
}
if (this._currentframe > 187 && this._currentframe < 203) {
this.gotoAndPlay('attack9');
if (_parent._xscale == 100 && Key.isDown(_parent.Left)) {
_parent._xscale = -100;
} else {
if (_parent._xscale == -100 && Key.isDown(_parent.Right)) {
_parent._xscale = 100;
}
}
}
if (this._currentframe > 77 && this._currentframe < 87) {
this.gotoAndPlay('attack10');
if (_parent._xscale == 100 && Key.isDown(_parent.Left)) {
_parent._xscale = -100;
} else {
if (_parent._xscale == -100 && Key.isDown(_parent.Right)) {
_parent._xscale = 100;
}
}
}
if (this._currentframe > 209 && this._currentframe < 219) {
this.gotoAndPlay('attack105');
if (_parent._xscale == 100 && Key.isDown(_parent.Left)) {
_parent._xscale = -100;
} else {
if (_parent._xscale == -100 && Key.isDown(_parent.Right)) {
_parent._xscale = 100;
}
}
}
}
if (Key.isDown(_parent.Punch)) {
if (this._currentframe > 234 && this._currentframe < 244) {
this.gotoAndPlay('attack6');
if (_parent._xscale == 100 && Key.isDown(_parent.Left)) {
_parent._xscale = -100;
} else {
if (_parent._xscale == -100 && Key.isDown(_parent.Right)) {
_parent._xscale = 100;
}
}
}
if (this._currentframe > 249 && this._currentframe < 259) {
this.gotoAndPlay('attack102');
}
if (this._currentframe > 264 && this._currentframe < 274) {
this.gotoAndPlay('attack103');
}
if (this._currentframe > 279 && this._currentframe < 288) {
this.gotoAndPlay('attack104');
}
if (this._currentframe > 294 && this._currentframe < 304) {
this.gotoAndPlay('attack105');
}
if (this._currentframe > 7 && this._currentframe < 12) {
this.gotoAndPlay('attack2');
if (_parent._xscale == 100 && Key.isDown(_parent.Left)) {
_parent._xscale = -100;
} else {
if (_parent._xscale == -100 && Key.isDown(_parent.Right)) {
_parent._xscale = 100;
}
}
}
if (this._currentframe > 30 && this._currentframe < 38) {
this.gotoAndPlay('attack3');
if (_parent._xscale == 100 && Key.isDown(_parent.Left)) {
_parent._xscale = -100;
} else {
if (_parent._xscale == -100 && Key.isDown(_parent.Right)) {
_parent._xscale = 100;
}
}
}
}
}
};
}
frame 4 {
if (_parent._xscale == 100) {
_parent.xSpeed += 5;
}
if (_parent._xscale == -100) {
_parent.xSpeed -= 5;
}
}
frame 26 {
_parent.gotoAndStop(1);
}
frame 27 {
if (_parent._xscale == 100 && Key.isDown(_parent.Left)) {
_parent._xscale = -100;
} else {
if (_parent._xscale == -100 && Key.isDown(_parent.Right)) {
_parent._xscale = 100;
}
}
}
frame 30 {
if (_parent._xscale == 100) {
_parent.xSpeed += 5;
}
if (_parent._xscale == -100) {
_parent.xSpeed -= 5;
}
}
frame 48 {
_parent.gotoAndStop(1);
}
frame 53 {
if (_parent._xscale == 100) {
_parent.xSpeed += 7;
}
if (_parent._xscale == -100) {
_parent.xSpeed -= 7;
}
}
frame 75 {
_parent.gotoAndStop(1);
}
frame 78 {
if (_parent._xscale == 100) {
_parent.xSpeed += 5;
}
if (_parent._xscale == -100) {
_parent.xSpeed -= 5;
}
}
frame 99 {
_parent.gotoAndStop(1);
}
frame 102 {
if (_parent._xscale == 100) {
_parent.xSpeed += 5;
}
if (_parent._xscale == -100) {
_parent.xSpeed -= 5;
}
}
frame 111 {
if (_parent._xscale == 100) {
_parent.xSpeed += 5;
}
if (_parent._xscale == -100) {
_parent.xSpeed -= 5;
}
}
frame 132 {
_parent.gotoAndStop(1);
}
frame 134 {
if (_parent._xscale == 100) {
_parent.xSpeed -= 5;
}
if (_parent._xscale == -100) {
_parent.xSpeed += 5;
}
}
frame 146 {
if (_parent._xscale == 100) {
_parent.xSpeed += 10;
}
if (_parent._xscale == -100) {
_parent.xSpeed -= 10;
}
}
frame 177 {
_parent.gotoAndStop(1);
}
frame 182 {
if (_parent._xscale == 100) {
_parent.xSpeed += 10;
}
if (_parent._xscale == -100) {
_parent.xSpeed -= 10;
}
}
frame 205 {
_parent.gotoAndStop(1);
}
frame 208 {
if (_parent._xscale == 100) {
_parent.xSpeed += 5;
}
if (_parent._xscale == -100) {
_parent.xSpeed -= 5;
}
}
frame 219 {
_parent.gotoAndStop(1);
}
frame 223 {
if (_parent._xscale == 100) {
_parent.xSpeed += 10;
}
if (_parent._xscale == -100) {
_parent.xSpeed -= 10;
}
}
frame 247 {
_parent.gotoAndStop(1);
}
frame 248 {
if (_parent._xscale == 100) {
_parent.xSpeed += 7;
}
if (_parent._xscale == -100) {
_parent.xSpeed -= 7;
}
}
frame 262 {
_parent.gotoAndStop(1);
}
frame 263 {
if (_parent._xscale == 100) {
_parent.xSpeed = 7;
}
if (_parent._xscale == -100) {
_parent.xSpeed = -7;
}
}
frame 277 {
_parent.gotoAndStop(1);
}
frame 278 {
if (_parent._xscale == 100) {
_parent.xSpeed = 7;
}
if (_parent._xscale == -100) {
_parent.xSpeed = -7;
}
}
frame 292 {
_parent.gotoAndStop(1);
}
frame 293 {
if (_parent._xscale == 100) {
_parent.xSpeed = 7;
}
if (_parent._xscale == -100) {
_parent.xSpeed = -7;
}
}
frame 307 {
_parent.gotoAndStop(1);
}
frame 315 {
if (_parent._xscale == 100) {
_parent.xSpeed += 7;
}
if (_parent._xscale == -100) {
_parent.xSpeed -= 7;
}
}
frame 339 {
_parent.gotoAndStop(1);
}
frame 340 {
if (_parent.xSpeed < 0) {
_parent.xSpeed -= 7;
}
if (xSpeed > 0) {
_parent.xSpeed += 7;
}
}
frame 374 {
_parent.gotoAndStop(1);
}
frame 410 {
_parent.gotoAndStop('jump');
}
}
movieClip 352 {
frame 12 {
_parent.gotoAndStop(1);
}
frame 38 {
_parent.gotoAndStop(1);
}
frame 40 {
_root.gotoAndPlay('501');
}
}
movieClip 353 {
frame 1 {
this.onEnterFrame = function () {
this.grav -= 0.5;
_y = _y - grav;
if (_root.ground.hitTest(_x, _y + 2, true)) {
onGround = true;
} else {
onGround = false;
}
if (_root.ground.hitTest(_x - 22, _y - 20, true)) {
onLeftWall = true;
} else {
onLeftWall = false;
}
if (_root.ground.hitTest(_x + 22, _y - 20, true)) {
onRightWall = true;
} else {
onRightWall = false;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
grav = 0;
_y = _y - 1;
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 20, true)) {
_x = _x + 1;
_x = _x + 1;
if (onGround) {
xSpeed = 0;
continue;
}
if (fighting) {
xSpeed = 0;
}
}
while (_root.ground.hitTest(_x + 20, _y - 20, true)) {
_x = _x - 1;
_x = _x - 1;
if (onGround) {
xSpeed = 0;
continue;
}
if (fighting) {
xSpeed = 0;
}
}
while (_root.ground.hitTest(_x, _y - 80, true)) {
grav = -2;
_y = _y + 1;
_y = _y + 1;
}
if (activated && life > 0) {
if (!walling && !fighting && !hurt) {
if (Key.isDown(Left)) {
if (onGround) {
if (xSpeed > -maxMoveSpeed) {
xSpeed -= 2;
_xscale = -100;
if (!skiding) {
if (xSpeed <= -maxMoveSpeed) {
this.gotoAndPlay('run');
} else {
this.gotoAndPlay('walk');
}
}
}
} else {
if (xSpeed > -maxAirMoveSpeed) {
xSpeed -= 0.5;
}
}
}
if (Key.isDown(Right)) {
if (onGround) {
if (xSpeed < maxMoveSpeed) {
xSpeed += 2;
_xscale = 100;
if (!skiding) {
if (xSpeed >= maxMoveSpeed) {
this.gotoAndPlay('run');
} else {
this.gotoAndPlay('walk');
}
}
}
} else {
if (xSpeed < maxAirMoveSpeed) {
xSpeed += 0.5;
}
}
}
}
}
if (xSpeed > 0) {
if (onGround) {
xSpeed -= 1;
} else {
xSpeed -= 0.25;
}
_x = _x + xSpeed;
}
if (xSpeed < 0) {
if (onGround) {
xSpeed += 1;
} else {
xSpeed += 0.25;
}
_x = _x + xSpeed;
}
while (this._x - 22 < _root.lScroll._x) {
++this._x;
xSpeed = 0;
}
while (this._x + 22 > _root.rScroll._x) {
--this._x;
xSpeed = 0;
}
if (this._currentframe == 1) {
if (xSpeed != 0) {
if (stopSliding > 0) {
--stopSliding;
} else {
if (stopSliding == 0) {
this.xSpeed = 0;
}
}
}
} else {
stopSliding = 10;
}
if (activated) {
if (Key.isDown(Jump) && onGround && !hurt) {
grav = jump;
jumpAnimThres = 5;
if (this._currentframe == 18 && this.attack._currentframe >= 340) {
this.gotoAndStop('jump');
}
shortHop = 5;
}
if (shortHop > 0) {
--shortHop;
}
if (shortHop > 0 && shortHop < 5 && !onGround && Key.isDown(Jump) == false && !hurt) {
grav = 7;
}
if (jumpAnimThres > 0) {
--jumpAnimThres;
}
if (onGround && this._currentframe == 9) {
if (jumpAnimThres == 0) {
this.gotoAndStop('idle');
}
}
if (!onGround && !hurt && !fighting) {
if (!walling) {
this.gotoAndStop('jump');
}
}
}
if (!onGround && !hurt) {
if (onLeftWall) {
_x = _x - 5;
}
if (onRightWall) {
_x = _x + 5;
}
if (xSpeed < -3 && onLeftWall) {
xSpeed = 0;
grav = 2;
walling = true;
this.gotoAndStop('wall');
_xscale = 100;
}
if (xSpeed > 3 && onRightWall) {
xSpeed = 0;
grav = 2;
walling = true;
this.gotoAndStop('wall');
_xscale = -100;
}
if (walling) {
if (!onLeftWall && !onRightWall) {
gotoAndStop('jump');
walling = false;
}
if (onLeftWall) {
grav += 0.25;
_x = _x - 1;
_x = _x - 1;
}
if (onRightWall) {
grav += 0.25;
_x = _x + 1;
_x = _x + 1;
}
if (Key.isDown(Jump)) {
grav = 10;
if (_xscale == 100) {
xSpeed = 10;
}
if (_xscale == -100) {
xSpeed = -10;
}
}
}
}
if (onGround && walling) {
gotoAndStop('idle');
}
if (this._currentframe != 17) {
walling = false;
}
if (onGround && !fighting && !hurt && life > 0) {
if (xSpeed > 3 && Key.isDown(Left)) {
skiding = true;
this.gotoAndStop('skid');
}
if (xSpeed < -3 && Key.isDown(Right)) {
skiding = true;
this.gotoAndStop('skid');
}
if (xSpeed == 0) {
if (skiding) {
skiding = false;
this.gotoAndStop(1);
}
}
if (xSpeed > 0 && Key.isDown(Right)) {
if (skiding) {
skiding = false;
this.gotoAndPlay('walk');
}
}
if (xSpeed < 0 && Key.isDown(Left)) {
if (skiding) {
skiding = false;
this.gotoAndPlay('walk');
}
}
}
if (activated) {
if (this._currentframe == 18) {
fighting = true;
} else {
fighting = false;
}
if (onGround && !pressingAttack) {
if (!hurt) {
if (Key.isDown(Punch) && Key.isDown(Left) == false && Key.isDown(Right) == false) {
if (this._currentframe == 1) {
this.gotoAndStop('attack');
}
}
if (!fighting) {
if (Key.isDown(Punch) && (Key.isDown(Right) || Key.isDown(Left))) {
this.gotoAndStop('attack');
this.attack.gotoAndPlay('attack7');
}
}
if (Key.isDown(Punch) && Key.isDown(Down)) {
this.gotoAndStop('attack');
if (this.attack._currentframe < 340) {
this.attack.gotoAndPlay('attack11');
}
}
}
}
if (!onGround && !pressingAttack && this._currentframe == 9) {
if (Key.isDown(Punch)) {
fighting = true;
this.gotoAndStop('attack');
this.attack.gotoAndPlay('attack12');
}
}
if (onGround && this._currentframe == 18) {
if (this.attack._currentframe > 374 && this.attack._currentframe < 410) {
this.gotoAndStop(1);
}
}
if (this.attack._currentframe > 374 && this.attack._currentframe < 410) {
if (this._xscale == 100 && Key.isDown(Right)) {
if (xSpeed < maxMoveSpeed) {
xSpeed += 0.5;
}
}
if (this._xscale == -100 && Key.isDown(Left)) {
if (xSpeed > -maxMoveSpeed) {
xSpeed -= 0.5;
}
}
}
if (Key.isDown(Punch)) {
pressingAttack = true;
} else {
pressingAttack = false;
}
}
if (!onGround && fighting) {
if (onLeftWall || onRightWall) {
gotoAndStop('jump');
xSpeed = 0;
}
if (_root.ground.hitTest(_x + 30, _y - 20, true) || _root.ground.hitTest(_x - 30, _y - 20, true)) {
gotoAndStop('jump');
xSpeed = 0;
}
}
if (this._currentframe == 19) {
hurt = true;
} else {
hurt = false;
}
if (this._y > _root.deadZone._y) {
this._x = _root.spawnPoint._x;
this._y = _root.spawnPoint._y;
grav = 2;
}
if (life <= 0) {
activated = false;
this.gotoAndStop('hurt');
if (onGround) {
this.hurt_mc.gotoAndStop('die2');
} else {
this.hurt_mc.gotoAndStop('die1');
}
}
};
}
frame 2 {
play();
}
frame 7 {
gotoAndStop(1);
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
play();
}
frame 16 {
gotoAndStop(1);
}
frame 17 {
stop();
}
frame 18 {
fighting = true;
stop();
}
frame 19 {
stop();
}
}
instance hero of movieClip 353 {
onClipEvent (load) {
var xSpeed = 0;
var maxMoveSpeed = 10;
var maxAirMoveSpeed = 10;
var grav = 0;
var jump = 14;
var jumpAnimThres = 0;
var stopSliding = 10;
var shortHop = 0;
var pressingAttack = false;
var life = 10;
var activated = false;
Left = 37;
Right = 39;
Jump = 38;
Down = 40;
Punch = 65;
var onGround = false;
var onLeftWall = false;
var onRightWall = false;
var skiding = false;
var hurt = false;
var walling = false;
var fighting = false;
}
}
movieClip 355 {
}
movieClip 357 {
instance of movieClip 355 {
onClipEvent (load) {
_visible = false;
}
}
}
instance of movieClip 357 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && _root.hero.onGround && _root.hero.hurt == false) {
_visible = true;
if (Key.isDown(32)) {
_root.hero.activated = false;
_root.hud.fader.gotoAndPlay('nextLvl');
}
} else {
_visible = false;
}
}
}
movieClip 359 {
frame 1 {
function camControl() {
rp.x = _x;
rp.y = _y;
var v4 = camH * (_yscale * 0.01);
var v3 = camW * (_xscale * 0.01);
var v6 = sH / v4;
var v5 = sW / v3;
_x2 = (v3 / 2) * v5;
_y2 = (v4 / 2) * v6;
_xscale2 = v5 * 100;
_yscale2 = v6 * 100;
_rotation2 = -_rotation;
_parent.filters = this.filters;
_parent.transform.colorTransform = this.transform.colorTransform;
}
function reset() {
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
_parent._rotation = 0;
_parent._visible = true;
}
function set_x2(value) {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._x += value - v2.x;
}
function get_x2() {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
return v2.x;
}
function set_y2(value) {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._y += value - v2.y;
}
function get_y2() {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
return v2.y;
}
function get_xscale2() {
return _parent._xscale;
}
function set_xscale2(value) {
setProperty2('_xscale', value);
}
function get_yscale2() {
return _parent._yscale;
}
function set_yscale2(value) {
setProperty2('_yscale', value);
}
function get_rotation2() {
return parent.rotation;
}
function set_rotation2(value) {
setProperty2('_rotation', value);
}
function setProperty2(prop, n) {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent[prop] = n;
var v3 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v3);
_parent._x -= v3.x - v2.x;
_parent._y -= v3.y - v2.y;
}
_visible = false;
addProperty('_x2', get_x2, set_x2);
addProperty('_y2', get_y2, set_y2);
addProperty('_xscale2', get_xscale2, set_xscale2);
addProperty('_yscale2', get_yscale2, set_yscale2);
addProperty('_rotation2', get_rotation2, set_rotation2);
var oldScaleMode = stage.scaleMode;
stage.scaleMode = 'exactFit';
var sW = Stage.width;
var sH = Stage.height;
stage.scaleMode = oldScaleMode;
var bounds_obj = this.getBounds(this);
var camH = Math.abs(bounds_obj.yMax - bounds_obj.yMin);
var camW = Math.abs(bounds_obj.xMax - bounds_obj.xMin);
var rp = {'x': this._x, 'y': this._y};
onEnterFrame = function () {
camControl();
};
this.onUnload = reset;
}
}
instance vcam of movieClip 359 {
onClipEvent (load) {
_xscale = 100;
var moveSpeed = 0;
var onHero = true;
}
onClipEvent (enterFrame) {
while (this._x - _width / 2 < _root.lScroll._x) {
_x = _x + 1;
_x = _x + 1;
}
while (this._x + _width / 2 > _root.rScroll._x) {
_x = _x - 1;
_x = _x - 1;
}
if (onHero == true) {
this._x += (_root.hero._x - _x) / 4;
moveSpeed = this._x;
}
this._y += (_root.hero._y - _y) / 4 - 20;
if (_root.hero.onGround == false) {
if (_root.hero.grav > 0) {
if (_xscale < 150) {
_xscale = _xscale + 2;
_yscale = _yscale + 2;
}
}
if (_root.hero.grav < 0) {
if (_xscale > 100) {
_xscale = _xscale - 1;
_xscale = _xscale - 1;
_yscale = _yscale - 1;
_yscale = _yscale - 1;
}
}
} else {
if (_xscale > 100) {
_xscale = _xscale - 1;
_xscale = _xscale - 1;
_yscale = _yscale - 1;
_yscale = _yscale - 1;
}
}
_root.BG._x = this._x;
_root.BG._y = this._y;
_root.BG._xscale = this._xscale;
_root.BG._yscale = this._yscale;
_root.hud._x = this._x;
_root.hud._y = this._y;
_root.hud._xscale = this._xscale;
_root.hud._yscale = this._yscale;
}
}
movieClip 361 {
}
movieClip 365 {
instance mask_mc of movieClip 361 {
onClipEvent (enterFrame) {
this._xscale = (_root.hero.life / 10) * 100;
}
}
}
movieClip 366 {
frame 2 {
stop();
}
frame 42 {
_root.nextFrame();
}
frame 96 {
_root.hero.activated = true;
gotoAndStop(2);
}
frame 170 {
_root.music.track1.gotoAndPlay(1);
_parent.score = 0;
_root.prevFrame();
gotoAndPlay(50);
}
}
movieClip 369 {
}
button 371 {
on (release) {
var st;
var st1;
var st2;
st = 'getURL';
st1 = 'http://www.funfastgame.com';
st2 = '_blank';
this[st](st1, st2);
}
}
movieClip 372 {
frame 1 {
score = 0;
}
}
instance hud of movieClip 372 {
onClipEvent (load) {
this.fader.gotoAndPlay(50);
}
}
movieClip 374 {
}
instance lScroll of movieClip 374 {
onClipEvent (load) {
_visible = false;
}
}
instance rScroll of movieClip 374 {
onClipEvent (load) {
_visible = false;
}
}
movieClip 376 {
}
instance spawnPoint of movieClip 376 {
onClipEvent (load) {
_visible = false;
_root.hero._x = this._x;
_root.hero._y = this._y;
}
}
instance deadZone of movieClip 374 {
onClipEvent (load) {
_visible = false;
}
}
movieClip 379 {
frame 196 {
stop();
}
}
movieClip 380 {
frame 1 {
stop();
_visible = false;
}
}
frame 487 {
play();
}
frame 488 {
stop();
}
movieClip 385 {
}
movieClip 386 {
}
movieClip 389 {
frame 1 {
stop();
}
frame 31 {
stop();
}
}
instance door of movieClip 389 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
if (this._currentframe == 1) {
this.play();
}
}
}
}
movieClip 391 {
}
instance ground of movieClip 391 {
onClipEvent (load) {
_visible = false;
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance of movieClip 357 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && _root.hero.onGround && _root.hero.hurt == false) {
_visible = true;
if (Key.isDown(32)) {
_root.hero.activated = false;
_root.hud.fader.gotoAndPlay('nextLvl');
}
} else {
_visible = false;
}
}
}
instance hero of movieClip 353 {
onClipEvent (load) {
var xSpeed = 0;
var maxMoveSpeed = 10;
var maxAirMoveSpeed = 10;
var grav = 0;
var jump = 14;
var jumpAnimThres = 0;
var stopSliding = 10;
var shortHop = 0;
var pressingAttack = false;
var life = 10;
var activated = false;
Left = 37;
Right = 39;
Jump = 38;
Down = 40;
Punch = 65;
var onGround = false;
var onLeftWall = false;
var onRightWall = false;
var skiding = false;
var hurt = false;
var walling = false;
var fighting = false;
}
}
instance lScroll of movieClip 374 {
onClipEvent (load) {
_visible = false;
}
}
instance rScroll of movieClip 374 {
onClipEvent (load) {
_visible = false;
}
}
instance spawnPoint of movieClip 376 {
onClipEvent (load) {
_visible = false;
_root.hero._x = this._x;
_root.hero._y = this._y;
}
}
instance deadZone of movieClip 374 {
onClipEvent (load) {
_visible = false;
}
}
frame 489 {
play();
}
frame 490 {
stop();
}
movieClip 397 {
}
instance ground of movieClip 397 {
onClipEvent (load) {
_visible = false;
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance of movieClip 357 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && _root.hero.onGround && _root.hero.hurt == false) {
_visible = true;
if (Key.isDown(32)) {
_root.hero.activated = false;
_root.hud.fader.gotoAndPlay('nextLvl');
}
} else {
_visible = false;
}
}
}
instance hero of movieClip 353 {
onClipEvent (load) {
var xSpeed = 0;
var maxMoveSpeed = 10;
var maxAirMoveSpeed = 10;
var grav = 0;
var jump = 14;
var jumpAnimThres = 0;
var stopSliding = 10;
var shortHop = 0;
var pressingAttack = false;
var life = 10;
var activated = false;
Left = 37;
Right = 39;
Jump = 38;
Down = 40;
Punch = 65;
var onGround = false;
var onLeftWall = false;
var onRightWall = false;
var skiding = false;
var hurt = false;
var walling = false;
var fighting = false;
}
}
instance lScroll of movieClip 374 {
onClipEvent (load) {
_visible = false;
}
}
instance rScroll of movieClip 374 {
onClipEvent (load) {
_visible = false;
}
}
instance spawnPoint of movieClip 376 {
onClipEvent (load) {
_visible = false;
_root.hero._x = this._x;
_root.hero._y = this._y;
}
}
instance deadZone of movieClip 374 {
onClipEvent (load) {
_visible = false;
}
}
frame 491 {
play();
}
frame 492 {
stop();
}
movieClip 400 {
}
instance BG of movieClip 400 {
onClipEvent (load) {
stop();
}
}
movieClip 406 {
}
movieClip 409 {
frame 1 {
stop();
}
frame 315 {
stop();
var timer = 150;
onEnterFrame = function () {
if (timer > 0) {
--timer;
}
if (timer == 1) {
this.nextFrame();
}
};
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance of movieClip 357 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_visible = true;
if (Key.isDown(32)) {
_root.ground.play();
_root.BG.play();
_root.lScroll._x = 1541.25;
_root.rScroll._x = 2273.5;
this._x += 1000;
}
} else {
_visible = false;
}
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
onClipEvent (enterFrame) {
if (this._y > -110) {
_root.hud.fader.play();
}
}
}
instance of movieClip 134 {
onClipEvent (load) {
_xscale = -100;
var life = 10;
var xSpeed = 0;
var moveSpeed = 1.5;
var grav = 0;
var eyeSight = 500;
var xdist = 0;
var ydist = 0;
var jumpHeight = 8;
var deathBounce = true;
var onGround = false;
var hurt = false;
var dead = false;
}
}
instance hero of movieClip 353 {
onClipEvent (load) {
var xSpeed = 0;
var maxMoveSpeed = 10;
var maxAirMoveSpeed = 10;
var grav = 0;
var jump = 14;
var jumpAnimThres = 0;
var stopSliding = 10;
var shortHop = 0;
var pressingAttack = false;
var life = 10;
var activated = false;
var dieAnimFix = 0;
Left = 37;
Right = 39;
Jump = 38;
Down = 40;
Punch = 65;
var onGround = false;
var onLeftWall = false;
var onRightWall = false;
var skiding = false;
var hurt = false;
var walling = false;
var fighting = false;
}
}
instance lScroll of movieClip 374 {
onClipEvent (load) {
_visible = false;
}
}
instance rScroll of movieClip 374 {
onClipEvent (load) {
_visible = false;
}
}
instance spawnPoint of movieClip 376 {
onClipEvent (load) {
_visible = false;
_root.hero._x = this._x;
_root.hero._y = this._y;
}
}
instance deadZone of movieClip 374 {
onClipEvent (load) {
_visible = false;
}
}
frame 493 {
play();
stopAllSounds();
}
frame 494 {
play();
}
frame 495 {
play();
}
frame 496 {
stop();
}
movieClip 415 {
}
movieClip 417 {
}
instance ground of movieClip 417 {
onClipEvent (load) {
_visible = false;
}
}
movieClip 425 {
}
movieClip 428 {
}
movieClip 429 {
}
movieClip 435 {
}
movieClip 439 {
frame 16 {
_parent.gotoAndStop(1);
}
}
movieClip 445 {
frame 2 {
_parent.grav = _parent.jumpPower;
_parent.grav *= 2;
}
frame 11 {
_parent.grav /= 2;
}
frame 24 {
_parent.grav -= 20;
}
frame 35 {
stop();
var groundhit;
onEnterFrame = function () {
if (_root.ground.hitTest(_parent._x, _parent._y + 5, true)) {
if (this._currentframe == 35) {
groundhit = _root.groundHitOrig.duplicateMovieClip('groundHit' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
groundhit._x = _root.bowser._x;
groundhit._y = _root.bowser._y;
--_parent.jump;
}
this.gotoAndPlay(1);
}
};
}
}
movieClip 449 {
}
movieClip 450 {
}
movieClip 451 {
frame 9 {
_parent._x = 320;
_parent._y = 250;
}
frame 18 {
_parent.gotoAndStop(1);
}
}
movieClip 452 {
frame 1 {
stop();
onEnterFrame = function () {
this.grav -= 0.5;
_y = _y - grav;
if (_root.ground.hitTest(_x, _y + 2, true)) {
onGround = true;
} else {
onGround = false;
}
if (!dead) {
if (_root.ground.hitTest(_x, _y + 1, true)) {
onGround = true;
} else {
onGround = false;
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = _y - 1;
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 20, true)) {
_x = _x + moveSpeed;
xSpeed = 0;
}
while (_root.ground.hitTest(_x + 20, _y - 20, true)) {
_x = _x - moveSpeed;
}
while (_root.ground.hitTest(_x, _y - _height, true)) {
_y = _y + 1;
_y = _y + 1;
}
}
if (this._currentframe < 22) {
if (xSpeed != 0) {
if (stopSliding > 0) {
--stopSliding;
} else {
if (stopSliding == 0) {
this.xSpeed = 0;
}
}
}
} else {
stopSliding = 10;
}
if (this._currentframe == 22) {
hurt = true;
} else {
hurt = false;
}
if (this.hitTest(_root.hero.attack.hit1)) {
life -= 1;
this.gotoAndStop('hurt');
this.hurt_mc.gotoAndPlay('hurt1');
_root.hero.attack.hitEffect.gotoAndStop(2);
_root.hero.attack.hitEffect.hit1.gotoAndPlay(1);
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 1;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 1;
}
if (!onGround) {
grav -= 2;
_root.hud.score += 2;
} else {
_root.hud.score += 1;
}
}
if (this.hitTest(_root.hero.attack.hit2)) {
life -= 2;
this.gotoAndStop('hurt');
this.hurt_mc.gotoAndPlay('hurt1');
this.grav = 3;
_root.hero.attack.hitEffect.gotoAndStop(3);
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 1.5;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 1.5;
}
if (!onGround) {
grav -= 2;
_root.hud.score += 3;
} else {
_root.hud.score += 2;
}
}
if (this.hitTest(_root.hero.attack.hit3)) {
_root.hero.attack.hitEffect.gotoAndStop(4);
life -= 3;
this.gotoAndStop('hurt');
this.hurt_mc.gotoAndPlay('hurt3');
this.grav = 4;
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 2.5;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 2.5;
}
if (!onGround) {
grav -= 2;
_root.hud.score += 4;
} else {
_root.hud.score += 3;
}
}
if (this.hitTest(_root.hero.attack.hit4)) {
_root.hero.attack.hitEffect.gotoAndStop(5);
life -= 4;
this.grav = 4;
this.gotoAndStop('hurt');
this.hurt_mc.gotoAndPlay('hurt4');
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + 4.5;
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - 4.5;
}
if (!onGround) {
grav -= 2;
_root.hud.score += 5;
} else {
_root.hud.score += 4;
}
}
if (this.hitTest(_root.hero.attack.hit5)) {
_root.hero.attack.hitEffect.gotoAndStop(6);
life -= 1;
this.grav = 7;
this.gotoAndStop('hurt');
this.hurt_mc.gotoAndPlay('hurt5');
if (_root.hero._xscale == 100) {
this.xSpeed = _root.hero.xSpeed + random(7);
}
if (_root.hero._xscale == -100) {
this.xSpeed = _root.hero.xSpeed - random(7);
}
if (!onGround) {
grav -= 2;
_root.hud.score += 6;
} else {
_root.hud.score += 5;
}
}
if (this.hitTest(_root.hero.attack.hit6)) {
_root.hero.attack.hitEffect.gotoAndStop(5);
if (!onGround) {
this.grav = -20;
life -= 3;
} else {
this.grav = 7;
life -= 1;
}
this.gotoAndStop('hurt');
this.hurt_mc.gotoAndPlay('hurt5');
if (_root.hero._xscale == 100) {
if (!onGround) {
this.xSpeed = _root.hero.xSpeed + 5;
} else {
this.xSpeed = _root.hero.xSpeed + 1;
}
}
if (_root.hero._xscale == -100) {
if (!onGround) {
this.xSpeed = _root.hero.xSpeed - 5;
} else {
this.xSpeed = _root.hero.xSpeed - 1;
}
}
if (!onGround) {
grav -= 2;
_root.hud.score += 7;
} else {
_root.hud.score += 6;
}
}
if (!dead) {
if (hurt) {
if (_root.ground.hitTest(_x - 23, _y - 20, true)) {
this.xSpeed = (xSpeed + 1) * -1;
this.gotoAndStop('hurt');
this.hurt_mc.gotoAndPlay('hurt1');
}
if (_root.ground.hitTest(_x + 23, _y - 20, true)) {
this.xSpeed = (xSpeed + 1) * -1;
this.hurt_mc.gotoAndPlay('hurt1');
}
if (grav < 0) {
if (_root.ground.hitTest(_x, _y + 3, true)) {
if (this.hurt_mc._currentframe >= 69 && this.hurt_mc._currentframe <= 82) {
this.grav = (grav / 2) * -1;
this.hurt_mc.gotoAndPlay('hurt6');
}
}
}
}
}
if (xSpeed > 0) {
if (onGround) {
xSpeed -= 1;
} else {
xSpeed -= 0.25;
}
_x = _x + xSpeed;
}
if (xSpeed < 0) {
if (onGround) {
xSpeed += 1;
} else {
xSpeed += 0.25;
}
_x = _x + xSpeed;
}
if (attack1 > 0) {
if (!hurt && this._currentframe < 22) {
if (attackSpeed > 0) {
--attackSpeed;
}
if (attackSpeed == 0) {
attackSpeed = attackSpeedDefult;
}
if (attackSpeed < attackSpeedDefult / 2) {
this.gotoAndStop('breath');
}
if (attackSpeed > attackSpeedDefult / 2) {
this.gotoAndPlay('fire');
}
}
if (life > 70) {
attackSpeedDefult = 100;
} else {
if (life > 50) {
attackSpeedDefult = 50;
} else {
if (life > 20) {
attackSpeedDefult = 20;
} else {
if (life > 0) {
attackSpeedDefult = 10;
}
}
}
}
--attack1;
}
if (attack1 == 0) {
if (this._currentframe <= 22) {
this.gotoAndStop('jump');
}
if (this._currentframe == 23 && jump > 0) {
if (this._xscale == 100) {
this.xSpeed = jumpSpeed;
} else {
this.xSpeed = -jumpSpeed;
}
}
if (jump == 0 && this._currentframe < 25) {
this.gotoAndStop('pant');
}
}
if (this._currentframe == 24) {
if (pant > 0) {
--pant;
}
if (pant == 0) {
jump = jumpOrig;
++jumpOrig;
pant = pantOrig;
attack1 = attack1Orig;
this.gotoAndStop(1);
}
}
if (!dead) {
if (this._y > 440) {
_y = 445;
this.gotoAndStop(25);
}
if (life <= 0) {
dead = true;
}
}
if (this._y > 855 && fadelol == true) {
_root.hud.fader.gotoAndPlay('nextLvl');
fadelol = false;
}
if (this._x > _root.hero._x) {
_xscale = -100;
}
if (this._x < _root.hero._x) {
_xscale = 100;
}
};
}
instance of movieClip 429 {
onClipEvent (enterFrame) {
if (_parent.life >= 0) {
this.bar._xscale = (_parent.life / 100) * 100;
} else {
_visible = false;
}
if (_parent._xscale == 100) {
this._xscale = 100;
} else {
this._xscale = -100;
}
}
}
frame 21 {
gotoAndStop(1);
}
}
instance bowser of movieClip 452 {
onClipEvent (load) {
var attackSpeed = 100;
var attackSpeedDefult = 100;
_xscale = 100;
var grav = 0;
var xSpeed = 0;
var onGround = true;
var dead = false;
var life = 100;
var moveSpeed = 3;
var stopSliding = 10;
var attack1 = 500;
var attack1Orig = attack1;
var jump = 5;
var jumpOrig = jump;
var jumpPower = 10;
var jumpSpeed = 6;
var pant = 300;
var pantOrig = pant;
var fadelol = true;
}
}
movieClip 473 {
}
movieClip 475 {
instance bound of movieClip 355 {
onClipEvent (load) {
_visible = false;
}
}
}
instance flame of movieClip 475 {
onClipEvent (load) {
var life = 300;
var fire;
var xSpeed = 0;
var ySpeed = 0;
_rotation = 270;
var Angle = _rotation - 90;
var twist = random(150);
var turnSpeed = 1;
if (_root.bowser._xscale == -100) {
var goLeft = true;
} else {
if (_root.bowser._xscale == 100) {
var goRight = true;
}
}
}
onClipEvent (enterFrame) {
if (this._name == 'flame') {
_visible = false;
if (_root.bowser.attackSpeed == 1) {
fire = this.duplicateMovieClip('flame' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
fire._x = _root.bowser._x;
fire._y = _root.bowser._y - 70;
}
} else {
xSpeed = Math.cos(Angle * 3.141593 / 180) * 5;
ySpeed = Math.sin(Angle * 3.141593 / 180) * 5;
if (goLeft) {
_xscale = -100;
_x = _x + xSpeed;
_y = _y + ySpeed;
}
if (goRight) {
_xscale = 100;
_x = _x - xSpeed;
_y = _y - ySpeed;
}
++twist;
_rotation = Angle;
if (twist < 50) {
Angle += turnSpeed;
} else {
if (twist < 150) {
Angle -= turnSpeed;
}
}
if (twist >= 150) {
twist = -50;
}
if (life > 0) {
--life;
}
if (life <= 0) {
this.removeMovieClip();
}
if (this.bound.hitTest(_root.hero.bound) && _root.hero.life > 0) {
_root.hero.grav = 5;
if (_root.hero._xscale == 100) {
_root.hero.xSpeed -= 5;
} else {
_root.hero.xSpeed += 5;
}
_root.hero.life -= 0.25;
_root.hero.hurt = true;
_root.hero.gotoAndStop('hurt');
this.removeMovieClip();
}
}
}
}
movieClip 478 {
frame 21 {
stop();
}
}
instance groundHitOrig of movieClip 478 {
onClipEvent (load) {
var effect = true;
}
onClipEvent (enterFrame) {
if (_name == 'groundHitOrig') {
_visible = false;
gotoAndStop(664);
} else {
_alpha = _alpha - 5;
if (_alpha <= 0) {
this.removeMovieClip();
}
if (effect == true) {
if (this.hitTest(_root.hero._x, _root.hero._y, true)) {
_root.hero.gotoAndStop('hurt');
if (_root.hero._x < _root.bowser) {
_root.hero.xSpeed = -10;
} else {
_root.hero.xSpeed = 10;
}
_root.hero.life -= _alpha / 90;
effect = false;
}
}
}
}
}
instance hero of movieClip 353 {
onClipEvent (load) {
var xSpeed = 0;
var maxMoveSpeed = 10;
var maxAirMoveSpeed = 10;
var grav = 0;
var jump = 14;
var jumpAnimThres = 0;
var stopSliding = 10;
var shortHop = 0;
var pressingAttack = false;
var life = 10;
var activated = false;
var dieAnimFix = 0;
Left = 37;
Right = 39;
Jump = 38;
Down = 40;
Punch = 65;
var onGround = false;
var onLeftWall = false;
var onRightWall = false;
var skiding = false;
var hurt = false;
var walling = false;
var fighting = false;
}
}
instance vcam of movieClip 359 {
onClipEvent (load) {
_xscale = 100;
var moveSpeed = 0;
var onHero = true;
}
onClipEvent (enterFrame) {
while (this._x - _width / 2 < _root.lScroll._x) {
_x = _x + 1;
_x = _x + 1;
}
while (this._x + _width / 2 > _root.rScroll._x) {
_x = _x - 1;
_x = _x - 1;
}
if (onHero == true) {
this._x += (_root.hero._x - _x) / 4;
moveSpeed = this._x;
}
this._y += (_root.hero._y - _y) / 4 - 20;
if (_root.hero.onGround == false) {
if (_root.hero.grav > 0) {
if (_xscale < 300) {
_xscale = _xscale + 2;
_yscale = _yscale + 2;
}
}
if (_root.hero.grav < 0) {
if (_xscale > 200) {
_xscale = _xscale - 1;
_xscale = _xscale - 1;
_yscale = _yscale - 1;
_yscale = _yscale - 1;
}
}
} else {
if (_xscale > 200) {
_xscale = _xscale - 1;
_xscale = _xscale - 1;
_yscale = _yscale - 1;
_yscale = _yscale - 1;
}
}
_root.BG._x = this._x;
_root.BG._y = this._y;
_root.BG._xscale = this._xscale;
_root.BG._yscale = this._yscale;
_root.hud._x = this._x;
_root.hud._y = this._y;
_root.hud._xscale = this._xscale;
_root.hud._yscale = this._yscale;
}
}
instance deadZone of movieClip 374 {
onClipEvent (load) {
_visible = false;
}
}
instance lScroll of movieClip 374 {
onClipEvent (load) {
_visible = false;
}
}
instance rScroll of movieClip 374 {
onClipEvent (load) {
_visible = false;
}
}
instance spawnPoint of movieClip 376 {
onClipEvent (load) {
_visible = false;
_root.hero._x = this._x;
_root.hero._y = this._y;
}
}
frame 497 {
nextFrame();
score = _root.hud.score;
}
frame 498 {
stopAllSounds();
stop();
score = _root.hud.score;
}
button 483 {
on (press) {
stopAllSounds();
_root.gotoAndPlay('storyGame');
}
}
button 485 {
on (press) {
getURL('http://www.funfastgame.com/', '');
}
}
frame 499 {
stop();
}
frame 501 {
stop();
}
button 489 {
on (press) {
getURL('http://www.funfastgame.com/', '');
}
}