I need some help with a Long Jump game ( if that is how its spelled ) .
But my script doesnt work
// x =88 - Z = 90 //
onClipEvent(enterFrame){
xSpeed -= 4 ;
_x += xSpeed;
if(Key.isDown(90)){
this.gotoAndPlay("run");
trace ("Z")
if(left == false){
xSpeed += 10;
}
left == true;
right == false;
}
if(Key.isDown(88)){
trace ("X")
if(left == false){
xSpeed += 10;
}
right == true;
left == false;
}
}
I tought this would work , but it doesnt …
there is no errors in the script but my object doesnt start to run
i want it to run but you have to tap the ‘Z - X’ buttons quickly after echoter(?)
Does anyone know the problem ?
-Joppe