This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

Hello,

I am still quite new to Godot, so I am sorry if this is a dumb question.

I made a Player node as a RigidBody2D and successfully made it fall to the ground, which is a StaticBody2D node.

However, when I added a Camera2D to the player and set it as the current camera, the gravity started to lag very much and the player was often able to walk around in air without falling down. It works normally, if I untick "current" in the camera.

Do you know what I did wrong? Thank you :-)

in Engine by (24 points)

1 Answer

+1 vote
Best answer

You probably added the second camera as child of the RigidBody2D, and thus the camera is moving following RigidBody2D physics (creating some kind of jag)

current is just a property that describe the default camera (in case u have many)

by (895 points)
selected by

Thanks a lot! That seemed to be the issue :-)

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.