Best way to add HUD

Godot Version

4.2.2

Question

I want to add some HUD to my game (Basic stuff, health bar, death/game over screen, such and such)

The game is a top-down bullet hell-style one:

As you can see, I’m using a CanvasLayer currently; is this the best method for such a game, or are there other, better methods?

Yeah CanvasLayer makes the most sense.

1 Like

Whatever are the Control nodes for, then? Only menus?

The control nodes can be children of a canvas layer.

CanvasLayer, definitely.

Control nodes constrain elements to a specific area on the screen.
A CanvasLayer decides if its node children will be put infront or behind other nodes.
Because UI elements are typically shown infront of everything else, it makes sense to have a CanvasLayer and all the menus and extensive displays as its children.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.