# Platform game

**URL:** <https://forum.kirupa.com/t/platform-game/194667>\
**Category:** Uncategorized\
**Created:** [July 25, 2006, 1:11pm UTC](https://forum.kirupa.com/t/platform-game/194667 "2006-07-25T13:11:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mario\_hater](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@mario\_hater](https://forum.kirupa.com/u/mario_hater)\
**Post date:** [July 25, 2006, 1:11pm UTC](https://forum.kirupa.com/t/platform-game/194667/1 "2006-07-25T13:11:10Z")

</div>

ive been trying to do this for ages. im just trying to make a platform game style movement but this code doesnt work :

```auto
onClipEvent (enterFrame) {
 if (_root.falling=true) {
  this._y += 10;
 }
 if (!this.hitTest(_root.floor_mc)) {
  _root.falling = true;
 } else {
  _root.falling = false;
 }
}

```

it is supposed to stop on the movieclip called floor\_mc.  
does anyone know why it just falls though the floor
