# Platform game fall to ground function

**URL:** <https://forum.kirupa.com/t/platform-game-fall-to-ground-function/304901>\
**Category:** flash\
**Created:** [February 16, 2010, 9:00am UTC](https://forum.kirupa.com/t/platform-game-fall-to-ground-function/304901 "2010-02-16T09:00:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lesh](https://avatars.discourse-cdn.com/v4/letter/l/6f9a4e/32.png) [@Lesh](https://forum.kirupa.com/u/Lesh)\
**Post date:** [February 16, 2010, 9:00am UTC](https://forum.kirupa.com/t/platform-game-fall-to-ground-function/304901/1 "2010-02-16T09:00:09Z")

</div>

I have gotten to a point with my platform game where I am completely stuck. I have the player movement working fine but the only thing is, it doesn’t fall off the blocks.

I have a Floor class which references the Character class and tells it to stop jumping when it is on a block. I have tried to research how other games have added functions but can’t seem to find one which will work in mine.

Would anybody have any ideas how I could add this function? I have included my game files below if anyone would be kind enough to look at them.

Cheers
