Sprite collision in classic platformers like Rondo of blood, Super Castlevania IV

Im doing one now. But while playing Rondo of blood for inspiration I noticed how when you are below a platform and you jump up you don’t collide with the platform over you, only when the platform is bellow, how do they do that?

Here is a picture:

1613472--98203--$platforms.jpg

Also I would like to know how to make a moving platform, I know how to make it move and all but when the player gets on it he doesn’t move along with the platform.

Thanks for your wisdom!

Rayco Santana

I can’t offer easy solutions for now, but Unity 5 looks like it will have built in support for both of your questions.

Hello,

Have a look here:

https://github.com/prime31/CharacterController2D

Note:- Make sure all of the one way platforms are set to the oneWayPlatform layer

thanks for the answers, I will definitely check that out @gruddlebug!

I also come up with my one solution but havent tested it yet, basically involves setting a trigger (slightly smaller than the platform) in the platform and using Phisics.ignorecollision when the player leaves the trigger.

1613788--98231--$trigger.jpg

Just an idea I had.