Solarus-Games English Forum

Solarus => Development => Topic started by: ffomega on November 26, 2016, 08:58:33 PM

Title: Adding HUD elements / Multiple HUDs
Post by: ffomega on November 26, 2016, 08:58:33 PM
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.
Title: Re: Adding HUD elements / Multiple HUDs
Post by: Christopho on November 27, 2016, 08:22:24 AM
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.