# Help,V-Cam && Gravity issues!

**URL:** <https://forum.kirupa.com/t/help-v-cam-gravity-issues/273648>\
**Category:** flash\
**Created:** [October 18, 2008, 2:35am UTC](https://forum.kirupa.com/t/help-v-cam-gravity-issues/273648 "2008-10-18T02:35:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DeadRiver](https://avatars.discourse-cdn.com/v4/letter/d/b782af/32.png) [@DeadRiver](https://forum.kirupa.com/u/DeadRiver)\
**Post date:** [October 18, 2008, 2:35am UTC](https://forum.kirupa.com/t/help-v-cam-gravity-issues/273648/1 "2008-10-18T02:35:36Z")

</div>

I’ve recently started working with flash, and have just spent all day re-doing my gravity, because with the way it was, the ground would bug when the vcam followed the players y value.(by that i mean the player would bounce on the ground).

anyways, after re-doing the gravity, I got the vcam to follow the player up,down,left, and right without the player bouncing on the ground…yay!..except, now when the player hits the ground, it sinks in and stop and a random y value(like in the middle, bottom, top, sometimes right thru)

I usually figure things out for myself, but i’m rly irritated now, any help would be appreciated.

im using a hitTest like this:

if(\_root.ground0.hitTest(\_x,\_y,true))

And you can check out my game here(idc, nothing rly to steal)

[http://www.uploading.com/files/T5UL788S/Plat2.fla.html](http://www.uploading.com/files/T5UL788S/Plat2.fla.html)

Edit: I’ve read something like, if the falling object is moving at a speed of 10 or w/e and hits at 3 pixels, it will still do the other 7 and stop. I dont rly understand it, but if so, my gravity could be causing this problem, I’m looking for a better way to hitTest maybe…iuno…i’m stuck =(

Edit2: It could also be that my sprites are different widths and heights; it may even have to do with my registration points…

It doesn’t matter anymore; I’ve found an engine that works…
