One-Way Collision on Spikes?
I currently have a GitHub Issue with Semisolid Spike Collision, but Godot Forums Discussions were for me always more reliable in attracting fixes to my problems.
Unlike in this YouTube video, I need the Player Character to be able to jump up without injury when ze is in front of the Spike.
I made sure to enable One-Way Collision on the
Collision Shape (Rectangle) 2D,
yet the spike Still counts collisions from BOTH sides as
,,ha ha, you die!".
This is the Spike Code:
extends Area2D func _physics_process(_delta): var bodies = get_overlapping_bodies() for body in bodies: if body.name == "Player1" or body.name == "Player2": body.die()