Some code would help. Can you post some code? That will get you more help.
But if it's anything involving physics, you should keep it in the
_physics_process(delta) function. Have you checked to see what layers your collision boxes are on? This is an easy answer to overlook.