# Last problem! (I think)

**URL:** https://forum.kirupa.com/t/last-problem-i-think/122871
**Category:** Uncategorized
**Created:** [September 17, 2004, 8:23pm UTC](https://forum.kirupa.com/t/last-problem-i-think/122871 "2004-09-17T20:23:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![JoMan](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@JoMan](https://forum.kirupa.com/u/JoMan)
#### Post date: [September 17, 2004, 8:23pm UTC](https://forum.kirupa.com/t/last-problem-i-think/122871/1 "2004-09-17T20:23:48Z")

</div>

Ok, so far I have learned almost everything I need to know about making a platform game :D. The last thing that I need for this platform game, is how to make the hero not sink too far into or above the ground. I have checked through the other threads on this problem, but they didn’t help me, so if any one could help me eliminate this problem, I would be most thankful. Thanks in advance!

peace

P.S. Here is the code I use for the ground:

```php

if (_root.ground.hitTest(this._x, this._y+15, true)) {
	if (vel_y<=1) {
		fall = 0;
		vel_y = 0;
		jumping = false;
		move = false;
	 }
}

```
