# Athletics game

**URL:** <https://forum.kirupa.com/t/athletics-game/101693>\
**Category:** Uncategorized\
**Created:** [February 12, 2004, 9:27pm UTC](https://forum.kirupa.com/t/athletics-game/101693 "2004-02-12T21:27:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lenf](https://avatars.discourse-cdn.com/v4/letter/l/2acd7d/32.png) [@lenf](https://forum.kirupa.com/u/lenf)\
**Post date:** [February 12, 2004, 9:27pm UTC](https://forum.kirupa.com/t/athletics-game/101693/1 "2004-02-12T21:27:59Z")

</div>

hi,  
I need some help with an athletics game I’m making. I’ve got the basic script to make the guy run:

```
     onClipEvent (load) {
SpaceKeyIsUp = true;
speed = 1;

```

}  
onClipEvent (enterFrame) {  
speed -= .2;  
if (speed\<=0) {  
speed = 0;  
}  
if (Key.isDown(Key.SPACE)) {  
if (spaceKeyIsUp == true) {  
gotoAndStop(1);  
speed += 1;  
}  
spaceKeyIsUp = false;  
} else {  
spaceKeyIsUp = true;  
}  
\_x -= speed;  
}

but i want to make other events like long jump, javelin etc and i dont know how to make it so speed and angle adds upto a good throw/jump.

can anyone help me out? thanks.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 17, 2004, 10:39pm UTC](https://forum.kirupa.com/t/athletics-game/101693/2 "2004-02-17T22:39:18Z")

</div>

not really… make an animation or something as an example

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 18, 2004, 11:39am UTC](https://forum.kirupa.com/t/athletics-game/101693/3 "2004-02-18T11:39:21Z")

</div>

you run upto a line and throw a stick as far as you can. if you go over the line its a foul.  
have you played the spear toss game on makai media?
