How to temporarily disable collision when falling on a tile?

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

Hi! I just started studying godot and as part of my training I decided to make an analogue of a retro game.
How to temporarily disable collision when falling on a tile?
An example when the collision should work (green bridge) - https://www.youtube.com/watch?v=XMgywSXe5yc&list=PLG7RIKbZdMmDDI-UxeL-AbrEC1T8uL6Qr&t=53s
An example when the collision needs to be disabled (green bridge) - https://www.youtube.com/watch?v=XMgywSXe5yc&list=PLG7RIKbZdMmDDI-UxeL-AbrEC1T8uL6Qr&t=49s
My current code - GitHub - beliys/klad: KLAD is a retro game similar to Rise Out which was created for old Soviet computers KORVET