Frame 3
stop();
Instance of Symbol 84 MovieClip in Frame 3
onClipEvent (enterFrame) {
_y = (_y + ((_root.char._y - _y) / 4));
_x = (_x + ((_root.char._x - _x) / 4));
}
Instance of Symbol 86 MovieClip "restartbox" in Frame 3
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.char._x = 80.3;
_root.char._y = 33.4;
}
}
Instance of Symbol 103 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.char._x = 80.3;
_root.char._y = 33.4;
}
}
Instance of Symbol 103 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.char._x = 80.3;
_root.char._y = 33.4;
}
}
Instance of Symbol 103 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.char._x = 80.3;
_root.char._y = 33.4;
}
}
Instance of Symbol 113 MovieClip "char" in Frame 3
onClipEvent (load) {
gravity = 0;
runspeed = 10;
jumpHeight = 15;
waterr = 0.1;
waterrspd = runspeed / 6;
setrunspeed = runspeed;
scale = this._xscale;
hitTestVariable = -2;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
gravity++;
this._y = this._y + gravity;
while (_root.ground.hitTest(this._x, this._y, true)) {
this._y--;
gravity = 0;
}
if (_root.water.hitTest(this._x, this._y, true)) {
if (gravity > 0) {
gravity = gravity * waterr;
}
runspeed = waterrspd;
} else {
runspeed = setrunspeed;
}
if (Key.isDown(39)) {
this._x = this._x + runspeed;
this._xscale = scale;
if (_root.ground.hitTest(this._x, this._y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if (Key.isDown(37)) {
this._x = this._x - runspeed;
this._xscale = -scale;
if (_root.ground.hitTest(this._x, this._y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if ((_root.ground.hitTest(this._x, this._y + 3, true) && (!Key.isDown(79))) && (!Key.isDown(73))) {
this.gotoAndStop(3);
}
if ((((Key.isDown(79) && (!Key.isDown(32))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(73))) {
this.gotoAndStop(5);
}
if ((((Key.isDown(73) && (!Key.isDown(32))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(79))) {
this.gotoAndStop(4);
}
if (Key.isDown(32) && (_root.ground.hitTest(this._x, this._y + 3, true))) {
gravity = -jumpHeight;
this._y = this._y - 4;
this.gotoAndStop(2);
}
if ((_root.ground.hitTest((this._x + (_width / 2)) + hitTestVariable, this._y - (_height / 2), true) || (_root.ground.hitTest((this._x + (_width / 2)) + hitTestVariable, this._y - (_height / 6), true))) || (_root.ground.hitTest((this._x + (_width / 2)) + hitTestVariable, this._y - _height, true))) {
this._x = this._x - runspeed;
}
if ((_root.ground.hitTest((this._x - (_width / 2)) - (hitTestVariable * 2), this._y - (_height / 2), true) || (_root.ground.hitTest((this._x - (_width / 2)) - (hitTestVariable * 2), this._y - (_height / 6), true))) || (_root.ground.hitTest((this._x - (_width / 2)) - (hitTestVariable * 2), this._y - _height, true))) {
this._x = this._x + runspeed;
}
if (_root.ground.hitTest(this._x, this._y - _height, true)) {
gravity = 1;
}
if (_root.gravity_lift.hitTest(this._x, this._y, true)) {
gravity = gravity - 2;
}
}
Frame 6
gotoAndPlay (8);
Frame 7
gotoAndPlay (9);
Frame 8
stop();
Instance of Symbol 84 MovieClip in Frame 8
onClipEvent (enterFrame) {
_y = (_y + ((_root.char._y - _y) / 4));
_x = (_x + ((_root.char._x - _x) / 4));
}
Instance of Symbol 124 MovieClip "char" in Frame 8
onClipEvent (load) {
gravity = 0;
runspeed = 50;
jumpHeight = 15;
waterr = 0.1;
waterrspd = runspeed / 6;
setrunspeed = runspeed;
scale = this._xscale;
hitTestVariable = -2;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
gravity++;
this._y = this._y + gravity;
while (_root.ground.hitTest(this._x, this._y, true)) {
this._y--;
gravity = 0;
}
if (_root.water.hitTest(this._x, this._y, true)) {
if (gravity > 0) {
gravity = gravity * waterr;
}
runspeed = waterrspd;
} else {
runspeed = setrunspeed;
}
if (Key.isDown(39)) {
this._x = this._x + runspeed;
this._xscale = scale;
if (_root.ground.hitTest(this._x, this._y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if (Key.isDown(37)) {
this._x = this._x - runspeed;
this._xscale = -scale;
if (_root.ground.hitTest(this._x, this._y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if ((_root.ground.hitTest(this._x, this._y + 3, true) && (!Key.isDown(79))) && (!Key.isDown(73))) {
this.gotoAndStop(3);
}
if ((((Key.isDown(79) && (!Key.isDown(32))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(73))) {
this.gotoAndStop(5);
}
if ((((Key.isDown(73) && (!Key.isDown(32))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(79))) {
this.gotoAndStop(4);
}
if (Key.isDown(32) && (_root.ground.hitTest(this._x, this._y + 3, true))) {
gravity = -jumpHeight;
this._y = this._y - 4;
this.gotoAndStop(2);
}
if ((_root.ground.hitTest((this._x + (_width / 2)) + hitTestVariable, this._y - (_height / 2), true) || (_root.ground.hitTest((this._x + (_width / 2)) + hitTestVariable, this._y - (_height / 6), true))) || (_root.ground.hitTest((this._x + (_width / 2)) + hitTestVariable, this._y - _height, true))) {
this._x = this._x - runspeed;
}
if ((_root.ground.hitTest((this._x - (_width / 2)) - (hitTestVariable * 2), this._y - (_height / 2), true) || (_root.ground.hitTest((this._x - (_width / 2)) - (hitTestVariable * 2), this._y - (_height / 6), true))) || (_root.ground.hitTest((this._x - (_width / 2)) - (hitTestVariable * 2), this._y - _height, true))) {
this._x = this._x + runspeed;
}
if (_root.ground.hitTest(this._x, this._y - _height, true)) {
gravity = 1;
}
if (_root.gravity_lift.hitTest(this._x, this._y, true)) {
gravity = gravity - 2;
}
}
Frame 9
stop();
Instance of Symbol 84 MovieClip in Frame 9
onClipEvent (enterFrame) {
_y = (_y + ((_root.char._y - _y) / 4));
_x = (_x + ((_root.char._x - _x) / 4));
}
Instance of Symbol 142 MovieClip "char" in Frame 9
onClipEvent (load) {
gravity = 0;
runspeed = 20;
jumpHeight = 20;
waterr = 0.1;
waterrspd = runspeed / 6;
setrunspeed = runspeed;
scale = this._xscale;
hitTestVariable = -2;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
gravity++;
this._y = this._y + gravity;
while (_root.ground.hitTest(this._x, this._y, true)) {
this._y--;
gravity = 0;
}
if (_root.water.hitTest(this._x, this._y, true)) {
if (gravity > 0) {
gravity = gravity * waterr;
}
runspeed = waterrspd;
} else {
runspeed = setrunspeed;
}
if (Key.isDown(39)) {
this._x = this._x + runspeed;
this._xscale = scale;
if (_root.ground.hitTest(this._x, this._y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if (Key.isDown(37)) {
this._x = this._x - runspeed;
this._xscale = -scale;
if (_root.ground.hitTest(this._x, this._y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if ((_root.ground.hitTest(this._x, this._y + 3, true) && (!Key.isDown(79))) && (!Key.isDown(73))) {
this.gotoAndStop(3);
}
if ((((Key.isDown(79) && (!Key.isDown(32))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(73))) {
this.gotoAndStop(5);
}
if ((((Key.isDown(73) && (!Key.isDown(32))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(79))) {
this.gotoAndStop(4);
}
if (Key.isDown(32) && (_root.ground.hitTest(this._x, this._y + 3, true))) {
gravity = -jumpHeight;
this._y = this._y - 4;
this.gotoAndStop(2);
}
if ((_root.ground.hitTest((this._x + (_width / 2)) + hitTestVariable, this._y - (_height / 2), true) || (_root.ground.hitTest((this._x + (_width / 2)) + hitTestVariable, this._y - (_height / 6), true))) || (_root.ground.hitTest((this._x + (_width / 2)) + hitTestVariable, this._y - _height, true))) {
this._x = this._x - runspeed;
}
if ((_root.ground.hitTest((this._x - (_width / 2)) - (hitTestVariable * 2), this._y - (_height / 2), true) || (_root.ground.hitTest((this._x - (_width / 2)) - (hitTestVariable * 2), this._y - (_height / 6), true))) || (_root.ground.hitTest((this._x - (_width / 2)) - (hitTestVariable * 2), this._y - _height, true))) {
this._x = this._x + runspeed;
}
if (_root.ground.hitTest(this._x, this._y - _height, true)) {
gravity = 1;
}
if (_root.gravity_lift.hitTest(this._x, this._y, true)) {
gravity = gravity - 2;
}
}
Frame 10
stop();
Instance of Symbol 84 MovieClip in Frame 10
onClipEvent (enterFrame) {
_y = (_y + ((_root.char._y - _y) / 4));
_x = (_x + ((_root.char._x - _x) / 4));
}
Instance of Symbol 191 MovieClip "char" in Frame 10
onClipEvent (load) {
gravity = 0;
runspeed = 40;
jumpHeight = 15;
waterr = 0.1;
waterrspd = runspeed / 6;
setrunspeed = runspeed;
scale = this._xscale;
hitTestVariable = -2;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
gravity++;
this._y = this._y + gravity;
while (_root.ground.hitTest(this._x, this._y, true)) {
this._y--;
gravity = 0;
}
if (_root.water.hitTest(this._x, this._y, true)) {
if (gravity > 0) {
gravity = gravity * waterr;
}
runspeed = waterrspd;
} else {
runspeed = setrunspeed;
}
if (Key.isDown(39)) {
this._x = this._x + runspeed;
this._xscale = scale;
if (_root.ground.hitTest(this._x, this._y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if (Key.isDown(37)) {
this._x = this._x - runspeed;
this._xscale = -scale;
if (_root.ground.hitTest(this._x, this._y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if ((_root.ground.hitTest(this._x, this._y + 3, true) && (!Key.isDown(79))) && (!Key.isDown(73))) {
this.gotoAndStop(3);
}
if ((((Key.isDown(79) && (!Key.isDown(32))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(73))) {
this.gotoAndStop(5);
}
if ((((Key.isDown(73) && (!Key.isDown(32))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(79))) {
this.gotoAndStop(4);
}
if (Key.isDown(32) && (_root.ground.hitTest(this._x, this._y + 3, true))) {
gravity = -jumpHeight;
this._y = this._y - 4;
this.gotoAndStop(2);
}
if ((_root.ground.hitTest((this._x + (_width / 2)) + hitTestVariable, this._y - (_height / 2), true) || (_root.ground.hitTest((this._x + (_width / 2)) + hitTestVariable, this._y - (_height / 6), true))) || (_root.ground.hitTest((this._x + (_width / 2)) + hitTestVariable, this._y - _height, true))) {
this._x = this._x - runspeed;
}
if ((_root.ground.hitTest((this._x - (_width / 2)) - (hitTestVariable * 2), this._y - (_height / 2), true) || (_root.ground.hitTest((this._x - (_width / 2)) - (hitTestVariable * 2), this._y - (_height / 6), true))) || (_root.ground.hitTest((this._x - (_width / 2)) - (hitTestVariable * 2), this._y - _height, true))) {
this._x = this._x + runspeed;
}
if (_root.ground.hitTest(this._x, this._y - _height, true)) {
gravity = 1;
}
if (_root.gravity_lift.hitTest(this._x, this._y, true)) {
gravity = gravity - 2;
}
}
Instance of Symbol 86 MovieClip "restartbox" in Frame 10
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
_root.char._x = 80.3;
_root.char._y = 33.4;
}
}
Frame 12
stop();
Symbol 46 Button
on (release) {
getURL ("www.4chan.org/s4s", "_blank");
}
Symbol 48 MovieClip Frame 40
stop();
Symbol 75 Button
on (release) {
startMovie();
}
Symbol 76 MovieClip Frame 1
function timerHandler() {
if (!loadingComplete) {
var _local4 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * _local4;
if (_local4 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop ("loaded");
}
return(undefined);
}
}
dt = getTimer() - time;
time = time + dt;
frameAccum = frameAccum + dt;
var _local3 = 0;
while ((frameAccum >= FRAME_TIME) && (_local3 < MAX_FRAME_SKIP)) {
advanceFrame(tankLogo, true, true);
advanceFrame(loadingText, false, true);
advanceFrame(barGfx, false, true);
if (loadingComplete) {
advanceFrame(this, false, false);
}
(frameAccum = frameAccum - FRAME_TIME);
_local3++;
}
updateAfterEvent();
}
function advanceFrame(clip, recurse, loop) {
if (!clip) {
return(undefined);
}
clip.stop();
if (clip._currentframe == clip._totalframes) {
if (loop) {
clip.gotoAndStop(1);
}
} else {
clip.nextFrame();
}
if (recurse) {
for (childName in clip) {
if (typeof(clip[childName]) == "movieclip") {
advanceFrame(clip[childName], recurse, loop);
}
}
}
}
function startMovie() {
clearInterval(intervalId);
_root.play();
}
_root.stop();
stop();
var FRAME_TIME = 33.3333333333333;
var AUTO_PLAY = false;
var MAX_FRAME_SKIP = 5;
var loadingComplete;
var intervalId;
var time;
var frameAccum;
loadingComplete = false;
intervalId = setInterval(this, "timerHandler", FRAME_TIME / 2);
frameAccum = 0;
time = getTimer();
timerHandler();
Symbol 84 MovieClip Frame 1
function camControl() {
rp.x = _x;
rp.y = _y;
var _local5 = camH * (_yscale * 0.01);
var _local6 = camW * (_xscale * 0.01);
var _local3 = sH / _local5;
var _local4 = sW / _local6;
_x2 = (_local6 / 2) * _local4;
_y2 = (_local5 / 2) * _local3;
_xscale2 = _local4 * 100;
_yscale2 = _local3 * 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 _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._x = _parent._x + (value - _local2.x);
}
function get_x2() {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
return(_local2.x);
}
function set_y2(value) {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._y = _parent._y + (value - _local2.y);
}
function get_y2() {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
return(_local2.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 _local3 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local3);
_parent[prop] = n;
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._x = _parent._x - (_local2.x - _local3.x);
_parent._y = _parent._y - (_local2.y - _local3.y);
}
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;
Symbol 106 Button
on (release) {
gotoAndPlay (5);
}
Symbol 109 Button
on (release) {
gotoAndPlay (9);
}
Symbol 120 Button
on (release) {
gotoAndPlay (10);
}
Symbol 145 Button
on (release) {
gotoAndPlay (12);
}
Symbol 167 MovieClip Frame 185
stop();
Symbol 173 Button
on (release) {
gotoAndPlay (11);
}