Camera2D doesn't work

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

His English was as bad as his coding skills

I created a Camera2D node as a child of KinematicBody2D (Hero) and set Current to “true”,
but the camera isn’t following character when it moves. I broke my mind…

Main scene node tree:

KinematicBody2D(Hero) node tree:

Camera node: (tried different options on/off)

Showcase: (That’s what happens)



:bust_in_silhouette: Reply From: jobax

Have you set the drag margins? Eg if you set each to 0, camera will move whenever character moves.

Yes, i did. I also tried to turn it off and some other things. :stuck_out_tongue:
I was having a nice time for about an hour, seeking for solutions, but didn’t find anything.

FoodForRent | 2018-03-31 21:37

I also created a new project, and… everything is working fine! Like there was no absolutely unlogical and mindbreaking mystery Camera problem…

Thank you for reply by the way

FoodForRent | 2018-03-31 21:41

No worries. I’ve done that a few times. If there’s something really simple that should be working, I just make a new project and see if I can get it working there… Glad to hear it’s working now.

jobax | 2018-03-31 21:46

Did you maybe activate “editable children” at some time before? I think I had an issue once were I used “editable children” to change a property of a child node and then deactivated it again, and then found that the changed property was stuck (as in not updated when it changed in the reference scene).

Warlaan | 2018-04-04 08:39

Should also make sure that it is the current camera enabled and not just the default viewport view.

usurun | 2019-05-16 23:18