How to use overlaps_body ( Node body )?
I want to detect if my character touch the bottom of a block with the top of his head when he is jumping, and change his y velocity if it is the case. I tried to use signal with Area2Dbut that only worked in some occasions, and I think the overlaps_body func is the key of my problem. I tried to use it like this :
func _physics_process(delta): if $Area2D.overlaps_body("TileMap"): #doesn't work anymore with simply (TileMap) velocity.y = 0
But that didn't worked very well
So, how to use it?