should i use physics process or just process for my game

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Allihyani

hi im making a 2d platfomer and im using physics process for both the logic and the player movement and sometimes when i start the game the player just passes through the ground(and it doesnt show the player passing through the ground and it does happen so fast the game doesnt even render it) so im just asking is it because im using physics process for everything or is it my code btw the more i add to the physics process the more often it happens

:bust_in_silhouette: Reply From: SnapCracklins

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.