need a help with 2d jump platform game ;P

Hi all…

Of course you guys know Mario Bross (2d), when mario jumps below a block, he collides with it…
but there is another platform collision for 2d looking games, a perfect example is the arcade bubble bobble (the little green dragon jumping)… as you can see, this game allows the player jumps from bottom to top without colliding, can someone please give some tips for this?

Thanks…

I believe there was another thread asking basically the same question somewhere, try doing a search for 2d platform collisions or something.

I think it basically alluded to turning the collision boxes into triggers so that the player would pass up through them and yet when he collides with them from above you block his motion somehow.

Also can be done by checking if the colliding object came from top or bottom.
Or you can use a trigger to “push” the player through the platform.

Also, does unity support one sided collisions? I suppose it doesn’t…?

nice idea !. thanks both…

I just read the other thread as well as this one… just use a plane as a collider. Unity does support one way collisions. even the regular plane that you can grab in unity will work. It’s super easy

If you want to get real fancy you can create 2 colliders for the same object but on different layers. one box collider that collides with everything except the player and one one way plane collider that only collides with the player.

I was looking to see if there was a different solution to this, but so far this is the best way I’ve found of doing it…

Just download the projects, the DappJump has this feature