I tried to attach a sprite to my camera.

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

So i prepared an overlay just to test out a visual design for the HUD and figured it be as simple as attaching a sprite to the camera. And it like almost works except it follows the Kinematicbody2d instead which is the parent of the camera.

I didn’t use any coding for this cause i figured this could be done in the UI, i’m not even sure if i’m going in the right direction doing it like this and should be using a viewport in a different scene?

I decided to set the drag margins to zero, now the camera is centered upon my character, wich is actually fine for the style i’m going for. The overlay works fine like this. But i guess i still want to know.

KND2501 | 2018-03-04 04:44

Have you looked at using canvas layer instead? You are implementing a HUD?

Canvas layer

2D||!2D | 2018-03-04 23:25