# Long Jump

**URL:** <https://forum.kirupa.com/t/long-jump/149030>\
**Category:** programming\
**Created:** [May 25, 2005, 1:34pm UTC](https://forum.kirupa.com/t/long-jump/149030 "2005-05-25T13:34:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joppe](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@Joppe](https://forum.kirupa.com/u/Joppe)\
**Post date:** [May 25, 2005, 1:34pm UTC](https://forum.kirupa.com/t/long-jump/149030/1 "2005-05-25T13:34:10Z")

</div>

I need some help with a Long Jump game ( if that is how its spelled ) .  
But my script doesnt work

```auto

// 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
