# Problem With Creating a Platform Game Tut

**URL:** <https://forum.kirupa.com/t/problem-with-creating-a-platform-game-tut/180908>\
**Category:** Uncategorized\
**Created:** [March 4, 2006, 3:09pm UTC](https://forum.kirupa.com/t/problem-with-creating-a-platform-game-tut/180908 "2006-03-04T15:09:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lessur](https://avatars.discourse-cdn.com/v4/letter/l/7993a0/32.png) [@lessur](https://forum.kirupa.com/u/lessur)\
**Post date:** [March 4, 2006, 3:09pm UTC](https://forum.kirupa.com/t/problem-with-creating-a-platform-game-tut/180908/1 "2006-03-04T15:09:36Z")

</div>

I am using flash 8 and im having a porblem with the **Creating** a Platform Game tut.

I got to the part where the char code is:

```auto
  onClipEvent (load) { jumping = true; speed = 0; maxmove = 15; jump = 0;} onClipEvent (enterFrame) { if (_root.dead) { this.gotoAndStop("dead");} else { speed *= .85; if (dir == "right") { if (speed>0) { dir = "right";} else if (speed<0) { dir = "left";} if (dir == "right"){ this._x += speed; _root._x -= speed;} if (dir == "left") { this._x += speed; _root._x -= speed;} if (Key.isDown(Key.LEFT)) { if (speed>-maxmove) { speed--;} this.gotoAndStop("run"); this._xscale = -100;} else if (Key.isDown(Key.RIGHT)) { if (speed<maxmove) { speed++;} this._xscale = 100; this.gotoAndStop("run");} else if (speed<1 && speed>-1) { speed = 0; this.gotoAndStop("idle");} if (Key.isDown(Key.UP) && !jumping) { jumping = true;} if (jumping) { this.gotoAndStop("jump"); this._y -= jump; jump -= .5; if (jump<0) { falling = true;} if (jump<-15) { jump = -15;}} if (_root.ground.hitTest(this._x, this._y, true) && falling) { jump = 12; jumping = false; falling = false;}}}  

```

And that makes it so none of the controls work.

What is the problem here? \<img\>
