okay i need a little help....
this is what i have for my side scrolling platform game:
onClipEvent (keyUp){
_root.walk.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)&& this._x>50) {
_root.walk.play();
_root.walk._x -= 15;
_root.walk._xscale=-100
}
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)&& this._x<495) {
_root.walk.play();
_root.walk._x += 15;
_root.walk._xscale = 100;
}
}onClipEvent (enterFrame) {
if (Key.isDown(Key.SPACE) && !jumping) {
_root.walk.gotoAndPlay(6)
vel_y = 36;
jumping = true;
}
if (jumping == true) {
vel_y -= 2;
if (vel_y<=-15) {
vel_y = -15;
}
this._y -= vel_y;
}
if (_root.ground.hitTest(this._x+30, this._y+30, true)) {
vel_y = 0;
jumping = false;
}
}
onClipEvent (enterFrame) {
this._y += 12;
if (_root.ground.hitTest(this._x, this._y+30, true)) {
this._y -= 12;
}
}
but i cant figure out how to get my character to go to the next scene when he exits off the right or left side of the screen, can anyone help? i would really appreciate it