Frame 1
stop();
Instance of Symbol 2 MovieClip "movieHolder" in Frame 1
onClipEvent (load) {
this._lockroot = true;
}
Instance of Symbol 22 MovieClip in Frame 1
onClipEvent (load) {
maxLoad = 7538400 /* 0x7306E0 */;
startY = _y;
endY = 107.3;
difference = startY - endY;
loadingGame = false;
}
onClipEvent (enterFrame) {
if (!loadingGame) {
_root.movieHolder.loadMovie("http://www.timesoda.com/Game.swf");
loadingGame = true;
}
currentLoad = _root.movieHolder.getBytesLoaded();
if ((currentLoad / maxLoad) > 0.9) {
_root.loadWhat.text = "Etc...";
} else if ((currentLoad / maxLoad) > 0.27) {
_root.loadWhat.text = "Sound...";
}
myText.text = Math.ceil((currentLoad / maxLoad) * 100);
myText.text = myText.text + "%";
_y = startY;
_y = (_y - ((currentLoad / maxLoad) * difference));
if (Math.ceil((currentLoad / maxLoad) * 100) >= 100) {
_root.gotoAndStop(2);
}
}
Instance of Symbol 175 MovieClip "Spike" in Frame 1
onClipEvent (load) {
function Jump() {
YSpeed = YSpeed + 2;
if (YSpeed >= 0) {
Jumping = false;
Falling = true;
}
}
function Fall() {
YSpeed = YSpeed + 2;
if (YSpeed > maxSpeed) {
YSpeed = maxSpeed;
}
if (_y > Ground) {
_y = Ground;
Falling = false;
TouchingGround = true;
}
}
keysDown = false;
Jumping = false;
Falling = false;
Running = false;
TouchingGround = true;
AnimationPlaying = false;
Animation = "Idle";
Facing = "LEFT";
maxSpeed = 30;
XSpeed = 0;
YSpeed = 0;
JumpWait = -1;
PlayedJump = false;
Ground = _y;
stop();
}
onClipEvent (enterFrame) {
keysDown = false;
if ((Key.isDown(37) and (!Jumping)) and (!Falling)) {
if ((((!AnimationPlaying) or (Animation != "Run")) and (!Jumping)) and (!Falling)) {
gotoAndPlay ("Run");
}
if (Facing == "RIGHT") {
_xscale = (_xscale * -1);
Facing = "LEFT";
}
XSpeed = XSpeed - 2;
if (XSpeed < (-maxSpeed)) {
XSpeed = -maxSpeed;
}
keysDown = true;
}
if ((Key.isDown(39) and (!Jumping)) and (!Falling)) {
if ((((!AnimationPlaying) or (Animation != "Run")) and (!Jumping)) and (!Falling)) {
gotoAndPlay ("Run");
}
if (Facing == "LEFT") {
_xscale = (_xscale * -1);
Facing = "RIGHT";
}
XSpeed = XSpeed + 2;
if (XSpeed > maxSpeed) {
XSpeed = maxSpeed;
}
keysDown = true;
}
if ((Key.isDown(38) and (!Falling)) and (!Jumping)) {
JumpWait = 2;
Jumped = false;
}
if ((JumpWait > 0) and (!Jumped)) {
JumpWait = JumpWait - 1;
if (JumpWait == 0) {
gotoAndPlay ("Jumping");
Jumped = true;
JumpWait = -1;
Jumping = true;
TouchingGround = false;
YSpeed = -20;
}
}
_x = (_x + XSpeed);
_y = (_y + YSpeed);
if (Jumping) {
Jump();
}
if (Falling) {
Fall();
}
if (_y >= Ground) {
TouchingGround = true;
Falling = false;
_y = Ground;
}
if (((!keysDown) and (!Jumping)) and (!Falling)) {
XSpeed = XSpeed * 0.75;
if (Math.abs(XSpeed) <= 1) {
XSpeed = 0;
}
if ((!AnimationPlaying) or (Animation != "Idle")) {
gotoAndPlay ("Idle");
AnimationPlaying = true;
}
}
if (_x >= 800) {
_x = 800;
XSpeed = 0;
}
if (_x <= 200) {
_x = 200;
XSpeed = 0;
}
}
Instance of Symbol 178 MovieClip in Frame 1
onClipEvent (load) {
function Fall() {
YSpeed = YSpeed + 1;
}
stop();
YSpeed = 0;
XSpeed = 0;
Falling = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.Spike) and (_root.Spike.Jumping or _root.Spike.Falling)) {
XSpeed = _root.Spike.XSpeed;
Falling = true;
}
if (Falling) {
Fall();
}
_y = (_y + YSpeed);
_x = (_x + XSpeed);
if (_y >= _root.Spike.Ground) {
Falling = false;
_y = _root.Spike.Ground;
gotoAndStop (2);
XSpeed = XSpeed * 0.75;
if (Math.abs(XSpeed) < 1) {
XSpeed = 0;
}
}
if (_x > 750) {
_x = 750;
}
if (_x < 250) {
_x = 250;
}
}
Instance of Symbol 178 MovieClip in Frame 1
onClipEvent (load) {
function Fall() {
YSpeed = YSpeed + 1;
}
stop();
YSpeed = 0;
XSpeed = 0;
Falling = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.Spike) and (_root.Spike.Jumping or _root.Spike.Falling)) {
XSpeed = _root.Spike.XSpeed;
Falling = true;
}
if (Falling) {
Fall();
}
_y = (_y + YSpeed);
_x = (_x + XSpeed);
if (_y >= _root.Spike.Ground) {
Falling = false;
_y = _root.Spike.Ground;
gotoAndStop (2);
XSpeed = XSpeed * 0.75;
if (Math.abs(XSpeed) < 1) {
XSpeed = 0;
}
}
if (_x > 750) {
_x = 750;
}
if (_x < 250) {
_x = 250;
}
}
Instance of Symbol 178 MovieClip in Frame 1
onClipEvent (load) {
function Fall() {
YSpeed = YSpeed + 1;
}
stop();
YSpeed = 0;
XSpeed = 0;
Falling = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.Spike) and (_root.Spike.Jumping or _root.Spike.Falling)) {
XSpeed = _root.Spike.XSpeed;
Falling = true;
}
if (Falling) {
Fall();
}
_y = (_y + YSpeed);
_x = (_x + XSpeed);
if (_y >= _root.Spike.Ground) {
Falling = false;
_y = _root.Spike.Ground;
gotoAndStop (2);
XSpeed = XSpeed * 0.75;
if (Math.abs(XSpeed) < 1) {
XSpeed = 0;
}
}
if (_x > 750) {
_x = 750;
}
if (_x < 250) {
_x = 250;
}
}
Instance of Symbol 178 MovieClip in Frame 1
onClipEvent (load) {
function Fall() {
YSpeed = YSpeed + 1;
}
stop();
YSpeed = 0;
XSpeed = 0;
Falling = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.Spike) and (_root.Spike.Jumping or _root.Spike.Falling)) {
XSpeed = _root.Spike.XSpeed;
Falling = true;
}
if (Falling) {
Fall();
}
_y = (_y + YSpeed);
_x = (_x + XSpeed);
if (_y >= _root.Spike.Ground) {
Falling = false;
_y = _root.Spike.Ground;
gotoAndStop (2);
XSpeed = XSpeed * 0.75;
if (Math.abs(XSpeed) < 1) {
XSpeed = 0;
}
}
if (_x > 750) {
_x = 750;
}
if (_x < 250) {
_x = 250;
}
}
Instance of Symbol 178 MovieClip in Frame 1
onClipEvent (load) {
function Fall() {
YSpeed = YSpeed + 1;
}
stop();
YSpeed = 0;
XSpeed = 0;
Falling = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.Spike) and (_root.Spike.Jumping or _root.Spike.Falling)) {
XSpeed = _root.Spike.XSpeed;
Falling = true;
}
if (Falling) {
Fall();
}
_y = (_y + YSpeed);
_x = (_x + XSpeed);
if (_y >= _root.Spike.Ground) {
Falling = false;
_y = _root.Spike.Ground;
gotoAndStop (2);
XSpeed = XSpeed * 0.75;
if (Math.abs(XSpeed) < 1) {
XSpeed = 0;
}
}
if (_x > 750) {
_x = 750;
}
if (_x < 250) {
_x = 250;
}
}
Instance of Symbol 178 MovieClip in Frame 1
onClipEvent (load) {
function Fall() {
YSpeed = YSpeed + 1;
}
stop();
YSpeed = 0;
XSpeed = 0;
Falling = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.Spike) and (_root.Spike.Jumping or _root.Spike.Falling)) {
XSpeed = _root.Spike.XSpeed;
Falling = true;
}
if (Falling) {
Fall();
}
_y = (_y + YSpeed);
_x = (_x + XSpeed);
if (_y >= _root.Spike.Ground) {
Falling = false;
_y = _root.Spike.Ground;
gotoAndStop (2);
XSpeed = XSpeed * 0.75;
if (Math.abs(XSpeed) < 1) {
XSpeed = 0;
}
}
if (_x > 750) {
_x = 750;
}
if (_x < 250) {
_x = 250;
}
}
Instance of Symbol 178 MovieClip in Frame 1
onClipEvent (load) {
function Fall() {
YSpeed = YSpeed + 1;
}
stop();
YSpeed = 0;
XSpeed = 0;
Falling = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.Spike) and (_root.Spike.Jumping or _root.Spike.Falling)) {
XSpeed = _root.Spike.XSpeed;
Falling = true;
}
if (Falling) {
Fall();
}
_y = (_y + YSpeed);
_x = (_x + XSpeed);
if (_y >= _root.Spike.Ground) {
Falling = false;
_y = _root.Spike.Ground;
gotoAndStop (2);
XSpeed = XSpeed * 0.75;
if (Math.abs(XSpeed) < 1) {
XSpeed = 0;
}
}
if (_x > 750) {
_x = 750;
}
if (_x < 250) {
_x = 250;
}
}
Frame 2
_root.movieHolder.gotoAndPlay("Warning");
stop();
Symbol 175 MovieClip Frame 1
AnimationPlaying = true;
Animation = "Idle";
Symbol 175 MovieClip Frame 45
AnimationPlaying = false;
Symbol 175 MovieClip Frame 46
AnimationPlaying = true;
Animation = "Run";
Symbol 175 MovieClip Frame 53
AnimationPlaying = false;
Symbol 175 MovieClip Frame 54
AnimationPlaying = true;
Animation = "Walk";
Symbol 175 MovieClip Frame 69
AnimationPlaying = false;
Symbol 175 MovieClip Frame 70
AnimationPlaying = true;
Animation = "Jumping";
Symbol 175 MovieClip Frame 89
AnimationPlaying = false;
Jumped = false;
Symbol 175 MovieClip Frame 90
AnimationPlaying = true;
Animation = "Falling";
Symbol 175 MovieClip Frame 101
AnimationPlaying = false;
Symbol 175 MovieClip Frame 102
AnimationPlaying = true;
Animation = "Landing";
Symbol 175 MovieClip Frame 107
AnimationPlaying = false;
Symbol 175 MovieClip Frame 108
AnimationPlaying = true;
Animation = "Kick";
Symbol 175 MovieClip Frame 116
AnimationPlaying = false;
Symbol 175 MovieClip Frame 117
AnimationPlaying = true;
Animation = "Landing";
Symbol 175 MovieClip Frame 131
AnimationPlaying = false;