Adding HUD elements / Multiple HUDs

Started by ffomega, November 26, 2016, 08:58:33 PM

Previous topic - Next topic
I have a couple questions Chris:

1. Can you have more than 2 item slots? I once had a game in development from another engine that had 4 item slots, a sword icon, and an action icon.

2. Can I create a separate functioning HUD for a specific map from the rest of the game?  In the same game project I worked on, the game started out similarly to Castlevania: Symphony of the Night, where you took control of Richter and fought Dracula from Castlevania Rondo of Blood before the main game began, and then used a different HUD from that point onward.

If I can somehow create different HUD elements as images that would be fine, just disabling the main HUD, but I don't know if that can be done.
My tilesets page can be found here:
http://absolute-hyrule-tutorials.solarus-games.org/

1. Yes but you have to code them in Lua. The engine only provides 2 built-in slots.

2. Yes. You can disable the main HUD with game:set_hud_enabled() and then you can show something else (other menus) on a specific map.