Mario-Like Semisolid / One Way platform #991
|
I'm making a platformer game, and want to have a one way platform that allows you to jump up through it, but not fall back down. |
Replies: 1 comment
|
I think your best bet would be to override canCollideWith on your player or your platform, and simply add your y velocity check condition to determine whether the collision is valid or not. |
I think your best bet would be to override canCollideWith on your player or your platform, and simply add your y velocity check condition to determine whether the collision is valid or not.
I don't think it makes a huge difference whether that code would be in the player or the platform class.