I’m trying to make a Zelda style HUD with hearts as the health (I’ve added a screenshot of the sprite atlas for the hearts for reference), How do I create a HUD with this on it?
You should be able to create the hearts as gui box nodes and set the image from the atlas or tilesource using gui.play_flipbook(node, animation)
.
If you need several hearts I’d create all of them upfront and enable and disable them as needed using gui.set_enabled(node, enabled)
2 Likes
right, okay, I’ll have a look at how to do that thank you
When I go to the texture field in the GUI, it doesn’t come up with anything, how do I set the hearts as the texture?
You need to add the atlas to the gui:
I’ve figured it out, thank you