Super Mario

Hey Im making a super mario game and I need some help with some of the stuff…

Currently I made a hittest and my guy goes rite through it… I dun know wat to do.
http://www.geocities.com/flash_webbie/mario5.fla

i used a hit test and i wanna make a wall to the very left so mario cant go in the other direction but when i do he just walks through it… plus he can go through most of the platforms.

i used hittest rite… as mario aint falling through the ground!!

i fiured it out nvm

SPoke too soon

problems have arose my friends… yet again…
anywayz… im sure many of u people reading this have played super mario on SNES b4… anywayz… im sure u know that mario can like jump on platforms and stuff and then walk through em… err look at the picture

as well as mario being able to jump on both platforms… when mario is under one of them he can jump to the next platform as though there was no roof.

Now im not exactly sure how to do that… any ideas… heres some of my ideas which have failed

onClipEvent (enterFrame) {
if (mario.hitTest(_root.platform1)) {
_root.bg._y += 3;
}
}

I thought it would work as i equipped this to the top frame…

ya right…

anyone… its been a couple days?

i guess you could do a variable if he hittests th under ground upjump or whatever is on so he can go through it but if its off he can’t go through it

Instead of making the entire movieclip a hittest, add another long thin rectangle at the top of it. That makes running underneath it easy. Then to make the character land on the platform if you jumo from underneath, simply check to see if the lowest point on your character is lower or higher than the landing platform. That way, if you jump, you can pass through it, and once you get higher than it, the hittest will stop the character from falling.