0 votes

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

Godot version 3.4.4
in Engine by (12 points)

1 Answer

0 votes

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.

by (534 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.