So I have two KinematicBody2D. The player and a box that the player should be able to push. First, I coded the collision handler in the player node, and sended a value to a function on the box node, This way it worked.
But now I want to code the collision handler in the box node, so anything that push the box can move it.
When I make the collision code in the box node, only returns collisions on the Y axis, and not of the X axis (wich is what I need) When the player node collides with something, the motion of it sets to zero.. I think it has to do with that, but can't fix it.
I check the collisions, printing the collider if there is a collision with another KinematicBody2D
Any ideas? Thanks in advance!