# Need Help resolving game bugs!

**URL:** <https://forum.kirupa.com/t/need-help-resolving-game-bugs/101317>\
**Category:** Uncategorized\
**Created:** [February 8, 2004, 7:34pm UTC](https://forum.kirupa.com/t/need-help-resolving-game-bugs/101317 "2004-02-08T19:34:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fargate](https://avatars.discourse-cdn.com/v4/letter/f/dbc845/32.png) [@Fargate](https://forum.kirupa.com/u/Fargate)\
**Post date:** [February 8, 2004, 7:34pm UTC](https://forum.kirupa.com/t/need-help-resolving-game-bugs/101317/1 "2004-02-08T19:34:36Z")

</div>

I’ve created a platformer game. The problem is that sometimes my character rides to high on the platforms as well as too low. He even ends up falling through sometimes. The platforms are all in one mc. Below is the jumping and platform script.

[AS]  
onClipEvent (enterFrame) {  
if (Key.isDown(Key.UP) && !jumping) {  
vel\_y = 36;  
jumping = true;  
}  
if (jumping == true) {  
vel\_y -= 2;  
if (vel\_y\<=-15) {  
vel\_y = -15;  
}  
this.\_y -= vel\_y;  
}  
if (\_root.ground.hitTest(this.\_x, this.\_y+35, true)) {  
vel\_y = 0;  
jumping = false;  
}  
}  
onClipEvent (enterFrame) {  
this.\_y += 16;  
if (\_root.ground.hitTest(this.\_x, this.\_y+1, true)) {  
this.\_y -= 16;  
}  
}  
[/AS]

Any ideas on how fix either of this aspects would be a great help! Thanks in advance :).
