# Jump and falling

**URL:** <https://forum.kirupa.com/t/jump-and-falling/270033>\
**Category:** Uncategorized\
**Created:** [September 4, 2008, 2:28pm UTC](https://forum.kirupa.com/t/jump-and-falling/270033 "2008-09-04T14:28:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gencoglu](https://avatars.discourse-cdn.com/v4/letter/g/898d66/32.png) [@gencoglu](https://forum.kirupa.com/u/gencoglu)\
**Post date:** [September 4, 2008, 2:28pm UTC](https://forum.kirupa.com/t/jump-and-falling/270033/1 "2008-09-04T14:28:18Z")

</div>

hi,

I draw a ball and a ground ,gave them instance name “ball” and “ground”  
Now I want to make the ball jump up and fall down using (Key UP)as in the most platform games…

I gave the following code to the ball mc  
but I know there are some declarations missing…coujld you please fix so that I can jump objects  
thanks

onClipEvent(enterFrame)  
{  
if (Key.isDown(Key.UP))  
{  
this.\_y+=5;  
}  
}
