#Keep HUD on screen at all times

14 messages · Page 1 of 1 (latest)

trail flicker
#

My hud node is parented to the camera, which is parented to my player. When my player moves, my hud does too. This is a problem because I have position smoothing and horizontal drag on in the camera. Is there a way to keep my hud node (all of it) visible in the camera's viewport?

#

(as you can see, the hud bar is cut off)

frank widget
#

put the hud as a child of a canvaslayer

trail flicker
#

now it just gets stuck in a specific place on the screen

frank widget
#

did you change any properties of the canvaslayer?

trail flicker
#

i set follow viewport

frank widget
#

turn that off

#

that makes it so that it works like it's in the same layer as the camera

trail flicker
#

turning it off makes the health bar disappear

frank widget
#

it needs to be positioned on the screen where you want it to be in the game

#

so there's a rectangle on the screen that indicates the default viewport

#

since the canvaslayer isn't affected by the camera you need to place it inside there