# Mario Game Help

**URL:** <https://forum.kirupa.com/t/mario-game-help/120013>\
**Category:** Uncategorized\
**Created:** [August 19, 2004, 9:25pm UTC](https://forum.kirupa.com/t/mario-game-help/120013 "2004-08-19T21:25:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![scarce](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@scarce](https://forum.kirupa.com/u/scarce)\
**Post date:** [August 19, 2004, 9:25pm UTC](https://forum.kirupa.com/t/mario-game-help/120013/1 "2004-08-19T21:25:16Z")

</div>

I’m making a Mario game. Ok now that thats outta the way. I don’t know how to make him jump. I had gotten it to where when I pushed the button, the frame changed and he went up like he was jumping, but i can’t get the frame to change to where he’s falling back down and well, I can’t make him fall back down…also I’m haveing issues with the crouching and jumping buttons…I can’t get it to work while i’m not walking and have it crouch or jump in the direction he’s facing… here’s the coding I have.

this is all in a movieclip called “remote”

onClipEvent (enterFrame) {  
mario = new Object();  
Key.addListener(mario);  
with (\_root.mario) {  
if (Key.isDown(Key.RIGHT)) {  
\_x += 7;  
}  
if (Key.isDown(Key.LEFT) && Key.isDown(Key.DOWN)) {  
\_x +=7;  
}  
if (Key.isDown(Key.LEFT)) {  
\_x -= 7;  
}  
if (Key.isDown(Key.RIGHT) && Key.isDown(Key.DOWN)) {  
\_x -= 7;  
}  
mario.onKeyDown = function() {  
pose = “0”;  
pose2 = “0”;  
pose3 = “0”;  
if (Key.isDown(Key.RIGHT)) {  
pose = “1”;  
pose2 = “8”;  
pose3 = “6”;  
gotoAndStop(3);  
}  
if (Key.isDown(Key.LEFT)) {  
pose = “2”;  
pose2 = “9”;  
pose3 = “7”;  
gotoAndStop(4);  
}  
if (Key.isDown(Key.DOWN)) {  
gotoAndStop(pose2);  
} else if (Key.isDown(Key.SHIFT)) {  
gotoAndStop(pose3);  
}  
};  
mario.onKeyUp = function() {  
gotoAndStop(pose);  
if (Key.isDown(Key.DOWN)) {  
gotoAndStop(pose2);  
} else if (Key.isDown(Key.SHIFT)) {  
gotoAndStop(pose3);  
}  
};  
}  
}

any help would be appreciated. thanks

---

<div class="post-metadata">

**Author:** ![scarce](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@scarce](https://forum.kirupa.com/u/scarce)\
**Post date:** [August 20, 2004, 1:43am UTC](https://forum.kirupa.com/t/mario-game-help/120013/2 "2004-08-20T01:43:23Z")

</div>

Here’s the fla

[http://scarce.250free.com/mario.zip](http://scarce.250free.com/mario.zip)

---

<div class="post-metadata">

**Author:** ![scarce](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@scarce](https://forum.kirupa.com/u/scarce)\
**Post date:** [August 24, 2004, 2:25am UTC](https://forum.kirupa.com/t/mario-game-help/120013/3 "2004-08-24T02:25:27Z")

</div>

k, well if no one will help me on this…can someone at LEAST link me to a tutorial on 2d side scroller games?
