- Home /
Question by
Max77878 · May 01, 2016 at 05:23 PM ·
collision2d game2d-platformerplatformerbox collider
[2D Platformer] How do i make a platform that is only active when the player is standing on it?
Hi,
Im trying to make a platform that won't interact with anything unless a player or object is touching the top of it. i have added a box collider to the platform but it gets quite annoying when i jump under the platform and my player bumps into it. i would like a solution in which my player can jump through the platform without interatcting with it untill it touches the top of it.
Thanks
:D
Comment
Best Answer
Answer by Andrii · May 02, 2016 at 02:38 AM
You don't need to deactivate the platform. Add a component named "platform effector". It's made specifically for this purpose. It modifies the collider to only work one way.