Author Topic: Adding HUD elements / Multiple HUDs  (Read 954 times)


  • Full Member
  • ***
  • Posts: 223
    • View Profile
    • Solarus Resource & Tutorial Site
Adding HUD elements / Multiple HUDs
« 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.
My tilesets page can be found here:


  • Administrator
  • Hero Member
  • *****
  • Posts: 1177
    • View Profile
Re: Adding HUD elements / Multiple HUDs
« Reply #1 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.