Frame 1
stop();
Frame 2
maxPlatforms = 0;
for (i in this) {
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 5)) == "platf")) {
maxPlatforms++;
}
}
stop();
Instance of Symbol 16 MovieClip "platform1" in Frame 2
onClipEvent (load) {
velocity = 6;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 400) || (x < 55)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 23 MovieClip "hero" in Frame 2
onClipEvent (load) {
lock = true;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
this.gotoAndStop("left");
} else if (Key.isDown(39)) {
this.gotoAndStop("right");
}
}
onClipEvent (enterFrame) {
render();
}
onClipEvent (enterFrame) {
for (i in _root) {
if (i.substring(0, 4) == "tise") {
if (this.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 1;
}
}
}
}
onClipEvent (enterFrame) {
if (this._y > 270) {
_root.gotoAndStop(3);
}
if (this._x <= 35) {
this._x = 35;
}
if (this._x >= 445) {
this._x = 445;
}
}
Instance of Symbol 24 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.gotoAndStop(3);
}
}
Instance of Symbol 27 MovieClip "porte" in Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.gotoAndStop(4);
}
}
Frame 3
stop();
Frame 4
stop();
maxPlatforms = 0;
for (i in this) {
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 5)) == "platf")) {
maxPlatforms++;
}
}
stop();
Instance of Symbol 16 MovieClip "platform1" in Frame 4
onClipEvent (load) {
velocity = 6;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 400) || (x < 55)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 16 MovieClip "platform3" in Frame 4
onClipEvent (load) {
velocity = 4;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 445) || (x < 240)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 27 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.gotoAndStop(6);
}
}
Instance of Symbol 23 MovieClip "hero" in Frame 4
onClipEvent (load) {
lock = true;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
this.gotoAndStop("left");
} else if (Key.isDown(39)) {
this.gotoAndStop("right");
}
}
onClipEvent (enterFrame) {
render();
}
onClipEvent (enterFrame) {
for (i in _root) {
if (i.substring(0, 4) == "tise") {
if (this.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 1;
}
}
}
}
onClipEvent (enterFrame) {
if (this._y > 270) {
_root.gotoAndStop(3);
}
if (this._x <= 35) {
this._x = 35;
}
if (this._x >= 455) {
this._x = 455;
}
}
Frame 6
maxPlatforms = 0;
for (i in this) {
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 5)) == "platf")) {
maxPlatforms++;
}
}
stop();
Instance of Symbol 24 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.gotoAndStop(3);
}
}
Instance of Symbol 16 MovieClip "platform2" in Frame 6
onClipEvent (load) {
velocity = 4;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 320) || (x < 60)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 27 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.gotoAndStop(8);
}
}
Instance of Symbol 23 MovieClip "hero" in Frame 6
onClipEvent (load) {
lock = true;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
this.gotoAndStop("left");
} else if (Key.isDown(39)) {
this.gotoAndStop("right");
}
}
onClipEvent (enterFrame) {
render();
}
onClipEvent (enterFrame) {
for (i in _root) {
if (i.substring(0, 4) == "tise") {
if (this.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 1;
}
}
}
}
onClipEvent (enterFrame) {
if (this._y > 300) {
_root.gotoAndStop(3);
}
if (this._x <= 35) {
this._x = 35;
}
if (this._x >= 445) {
this._x = 445;
}
}
Frame 8
maxPlatforms = 0;
for (i in this) {
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 5)) == "platf")) {
maxPlatforms++;
}
}
stop();
stop();
Instance of Symbol 23 MovieClip "hero" in Frame 8
onClipEvent (load) {
lock = true;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
this.gotoAndStop("left");
} else if (Key.isDown(39)) {
this.gotoAndStop("right");
}
}
onClipEvent (enterFrame) {
render();
}
onClipEvent (enterFrame) {
for (i in _root) {
if (i.substring(0, 4) == "tise") {
if (this.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 1;
}
}
}
}
onClipEvent (enterFrame) {
if (this._y > 270) {
_root.gotoAndStop(3);
}
if (this._x <= 35) {
this._x = 35;
}
if (this._x >= 455) {
this._x = 455;
}
}
Instance of Symbol 24 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.gotoAndStop(3);
}
}
Instance of Symbol 27 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.gotoAndStop(10);
}
}
Frame 10
maxPlatforms = 0;
for (i in this) {
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 5)) == "platf")) {
maxPlatforms++;
}
}
stop();
Instance of Symbol 16 MovieClip "platform3" in Frame 10
onClipEvent (load) {
velocity = 6;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 330) || (x < 60)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 27 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.gotoAndStop(12);
}
}
Instance of Symbol 23 MovieClip "hero" in Frame 10
onClipEvent (load) {
lock = true;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
this.gotoAndStop("left");
} else if (Key.isDown(39)) {
this.gotoAndStop("right");
}
}
onClipEvent (enterFrame) {
render();
}
onClipEvent (enterFrame) {
for (i in _root) {
if (i.substring(0, 4) == "tise") {
if (this.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 1;
}
}
}
}
onClipEvent (enterFrame) {
if (this._y > 270) {
_root.gotoAndStop(3);
}
if (this._x <= 35) {
this._x = 35;
}
if (this._x >= 445) {
this._x = 445;
}
}
Frame 12
maxPlatforms = 0;
for (i in this) {
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 5)) == "platf")) {
maxPlatforms++;
}
}
stop();
Instance of Symbol 16 MovieClip "platform3" in Frame 12
onClipEvent (load) {
velocity = 6;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 305) || (x < 112)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 23 MovieClip "hero" in Frame 12
onClipEvent (load) {
lock = true;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
this.gotoAndStop("left");
} else if (Key.isDown(39)) {
this.gotoAndStop("right");
}
}
onClipEvent (enterFrame) {
render();
}
onClipEvent (enterFrame) {
for (i in _root) {
if (i.substring(0, 4) == "tise") {
if (this.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 1;
}
}
}
}
onClipEvent (enterFrame) {
if (this._y > 270) {
_root.gotoAndStop(3);
}
if (this._x <= 35) {
this._x = 35;
}
if (this._x >= 445) {
this._x = 445;
}
}
Instance of Symbol 50 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.gotoAndStop(3);
}
}
Instance of Symbol 27 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.gotoAndStop(14);
}
}
Frame 14
maxPlatforms = 0;
for (i in this) {
if ((typeof(eval (i)) == "movieclip") && ((substring(i, 1, 5)) == "platf")) {
maxPlatforms++;
}
}
stop();
Instance of Symbol 16 MovieClip "platform2" in Frame 14
onClipEvent (load) {
velocity = 6;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 305) || (x < 112)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 16 MovieClip "platform4" in Frame 14
onClipEvent (load) {
velocity = 6;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 305) || (x < 112)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 23 MovieClip "hero" in Frame 14
onClipEvent (load) {
lock = true;
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
this.gotoAndStop("left");
} else if (Key.isDown(39)) {
this.gotoAndStop("right");
}
}
onClipEvent (enterFrame) {
render();
}
onClipEvent (enterFrame) {
for (i in _root) {
if (i.substring(0, 4) == "tise") {
if (this.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 1;
}
}
}
}
onClipEvent (enterFrame) {
if (this._y > 300) {
_root.gotoAndStop(3);
}
if (this._x <= 35) {
this._x = 35;
}
if (this._x >= 445) {
this._x = 445;
}
}
Instance of Symbol 27 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.gotoAndStop(16);
}
}
Instance of Symbol 50 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.gotoAndStop(3);
}
}
Instance of Symbol 50 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.gotoAndStop(3);
}
}
Instance of Symbol 50 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.gotoAndStop(3);
}
}
Frame 16
stop();
Symbol 11 Button
on (release) {
_root.gotoAndStop(2);
_root.score = 0;
}
Symbol 23 MovieClip Frame 1
function hitPlatforms() {
var i;
var y;
var x;
i = 0;
while (i < _root.maxPlatforms) {
platform = eval ("_root.platform" + i);
y = _y + vertical;
x = _x + horizontal;
if (((_y < platform._y) && (y >= platform._y)) && (platform.hitTest(x, platform._y) == true)) {
_y = platform._y;
falling = false;
vertical = 0;
return(undefined);
}
i++;
}
platform = null;
return(undefined);
}
function render() {
var x;
var y;
x = (y = 0);
if (Key.isDown(39) == true) {
x = hforce;
}
if (Key.isDown(37) == true) {
x = hforce * -1;
}
if (Math.abs(horizontal) < Math.abs(x)) {
horizontal = x;
} else {
horizontal = horizontal * friction;
if (Math.abs(horizontal) < 1) {
horizontal = 0;
}
}
if ((vertical == 0) && (Key.isDown(38) == true)) {
vertical = vforce * -1;
horizontal = horizontal + platform.velocity;
platform = null;
rising = true;
}
if (rising == true) {
vertical = vertical * gravity;
if (Math.abs(vertical) < 1) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
}
}
if (falling == true) {
vertical = vertical * accel;
hitPlatforms();
}
lastX = _x;
lastY = _y;
_y = (_y + vertical);
_x = ((_x + horizontal) + platform.velocity);
if ((platform != null) && (platform.hitTest(_x, platform._y, true) == false)) {
vertical = 2;
falling = true;
}
}
vforce = 70;
hforce = 7;
horizontal = 0;
vertical = 5;
friction = 0.7;
gravity = 0.5;
accel = 1.7;
rising = false;
falling = true;
lastX = _x;
lastY = _y;
platform = null;
stop();
Symbol 25 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 2
stop();
Symbol 39 Button
on (release) {
_root.gotoAndStop(1);
}
Symbol 58 Button
on (release) {
getURL ("http://www.nekotwo.fr.st");
}