Im on the early stages of creating a platform game, and Im testing the set up for cameras and layers.
currrent Scene hierarchy:
– UI layer
– game layer
– (pending) background layers
Reading all the posts in the forum I can see most suggest to use this:
note: cameraTarget is a Node* using physics, child of the same layer
It works fine as long the target is not too fast, once that happens, the scene flickers, like this:
I guess the physics update at diferent time than the layer position.
Im using follow because most of the people suggest, but I guess the correct is to move the camera ( but this bring me the problem that the if camera moves, also my UI moves) so I dont know whats the correct solution.
How can I get rid of this noise?
Should I reaaally use follow or what should I do?
note: update method is empty, im not doing anythig on the update method,