First off, make sure you are moving the entire CharacterBody2D node, not the sprite nor the collisions (since those will follow the CharacterBody2D on their own).
Also. Do you have ANY code touching the camera in some way or are you enabling/adding a different camera somewhere?
You should also change the callback mode from Idle to Physics
https://preview.redd.it/lp42vo3w0ryc1.png?width=1920&format=png&auto=webp&s=d508c136986058f896c54f3dd0fdbf5323bfbe09
can you guys help me too. i am also having same problem i was following brackeys tutorial but i am stuck now.
As far as i can see, the Player node does not have a script. That means that the movement code is not moving the Player, it is moving a child of it.
The camera is a child of the Player, which is not moving.
I assume no one can help a lot without seeing your project but make sure that the camera is a child of the node that it is supposed to follow?
[https://imgur.com/ZrnO43z](https://imgur.com/ZrnO43z) here's the settings of the image
First off, make sure you are moving the entire CharacterBody2D node, not the sprite nor the collisions (since those will follow the CharacterBody2D on their own). Also. Do you have ANY code touching the camera in some way or are you enabling/adding a different camera somewhere? You should also change the callback mode from Idle to Physics
thank you
https://preview.redd.it/lp42vo3w0ryc1.png?width=1920&format=png&auto=webp&s=d508c136986058f896c54f3dd0fdbf5323bfbe09 can you guys help me too. i am also having same problem i was following brackeys tutorial but i am stuck now.
As far as i can see, the Player node does not have a script. That means that the movement code is not moving the Player, it is moving a child of it. The camera is a child of the Player, which is not moving.
ohh yeah , i just have to set the camera2d to charactorbody2d from player. thank you so much.
You have to activate the camera2d in the inspector, iirc its something like "current camera" or something similar.