How to drop through platforms

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By David_sun

Hello.

Does anyone know how I can make the" player" fall from one platform to another through it, as in the Mario Bross games. I know the “one way collision” function, but this does not allow you to do it in the opposite direction.
Any ideas?

Thank you.

:bust_in_silhouette: Reply From: Eric Ellingson

You can try setting

$CollisionShape2D.disabled = true

temporarily until the player is clear of the platform in question

Thank you. I’ll try. Anyway, you would mind being a little more precise. I’m quite new to Godot …

Thanks again.

David_sun | 2019-10-03 23:29

The platform the player is standing on has a collision shape child node right? It’s hard to be more specific when I can’t see your code / node tree structure.

Eric Ellingson | 2019-10-03 23:49