I want to make breakable blocks in my game, which I’m doing by using area2D’s around the breakable edges of the block, with a function that destroys the blocks when the body_entered signal triggers. The signal only triggers about half a second after the player enters the area2D though, which makes it so the block is still there for a while before disappearing. How can I fix this?
I’ve tried to find a way to make the entire node remove itself, but I couldn’t find out how lmfao. I’ve tried PROCESS_MODE_DISABLE but I couldn’t figure out how that works, and i tried get_tree().quit() but that also didn’t work. I thought this was a nice workaround.
(Also oops i deleted my last post instead of editing, im still new to this site haha)
I’ve already tried that too, but that’s not a good option. Even if I make them this big, the collision of the block will hit my player character before it disappears and cause it to lose all momentum. Which sucks, because momentum is a big mechanic in my game.
I partially found it out. Using queue_free() helped, but my character still gets slowed a bit by the impact of the blocks even if i make the collision very small.