# \[Source File inside\] How can I make an object hover once it hits the ground?

**URL:** https://forum.kirupa.com/t/source-file-inside-how-can-i-make-an-object-hover-once-it-hits-the-ground/327081
**Category:** flash
**Created:** [February 4, 2012, 1:29pm UTC](https://forum.kirupa.com/t/source-file-inside-how-can-i-make-an-object-hover-once-it-hits-the-ground/327081 "2012-02-04T13:29:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Pessimistic](https://avatars.discourse-cdn.com/v4/letter/p/58f4c7/32.png) [@Pessimistic](https://forum.kirupa.com/u/Pessimistic)
#### Post date: [February 4, 2012, 1:29pm UTC](https://forum.kirupa.com/t/source-file-inside-how-can-i-make-an-object-hover-once-it-hits-the-ground/327081/1 "2012-02-04T13:29:51Z")

</div>

Hey all,

I’m trying to make an object (the orange ball) hover, or come to a halt (as in ease in tweening) once it hits the ground (the white rectangle).

When in contact with the ground, it currently bounces:  
yv-=4;

When I make yv=0; it comes to a sudden rather than a smooth stop and also messes up with the movement of the ball.

I would really, really appreciate your help.  
Thanks in advance,  
Pes
