Help with HUD creation

This is the place for discussion and support for LunaLua and related modifications and libraries.

Moderator: Userbase Moderators

Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on topic/appropriate?
-Are you posting in the right forum/following the forum rules?
Chaotic Gaming
Buster Beetle
Buster Beetle
Posts: 99
Joined: Mon Jan 23, 2017 7:11 pm
Contact:

Help with HUD creation

Postby Chaotic Gaming » Fri Mar 31, 2017 2:12 pm

Ok first off I did search around and could not find a decent answer to this issue. Anyway I am wanting to know how to build a custom HUD that overlays the default smbx one and how to disable the item box. Basically I am trying to build a Mario Maker HUD (that counts Dragon Coins) but I have no idea where to begin. I know I need LunaLua to pull it off but I can't quite figure it how to code with it. Can anyone help? I've seen something called a SMBX HUD Creator Live on youtube, is that something I can download??

TDK
Phanto
Phanto
Posts: 1440
Joined: Wed Nov 11, 2015 12:26 pm
Flair: Retired

Re: Help with HUD creation

Postby TDK » Fri Mar 31, 2017 2:25 pm

You mean this?


The creator of that is inactive, unfortunately.
Last edited by TDK on Fri Mar 31, 2017 5:07 pm, edited 1 time in total.

Chaotic Gaming
Buster Beetle
Buster Beetle
Posts: 99
Joined: Mon Jan 23, 2017 7:11 pm
Contact:

Re: Help with HUD creation

Postby Chaotic Gaming » Fri Mar 31, 2017 4:41 pm

Yes, that would help in creating my own provided I could save where things were positioned at or if someone could possibly give me a small idea where to begin to just do the following:
> Disable the current HUD
> Draw the coins in a specific area (icon and numbers)
> Draw the lives in a specific area (lives and numbers)
> Draw the score ''' '' '' '' ''.
> Disable the HUD Item Box.
ala Mario Maker style...
Update: I realize I missed something... also the smb3 power down system. ex. Fire Mario > Super Mario > Small

Yes, I am trying to turn SMBX Mario Challenge into Mario Maker's challange mode (minus the map thing) in case anyone is curious but this is only for personal enjoyment if I'm successful I may release it to whomever has produced the challenge mode for possible inclusion in SMBX 2.0 Beta x (x being the Beta version when I get this done)

PixelPest
Link
Link
Posts: 7111
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Re: Help with HUD creation

Postby PixelPest » Fri Mar 31, 2017 9:36 pm

altpsystem.lua which I wrote for SMBX 2.0 is in the most recent beta; it'll do the power down thing.

The rest basically involves calling Graphics.activateHud(false); and then redrawing valued from here: http://wohlsoft.ru/pgewiki/SMBX_Global_Memory at a priority of 5, as well as the icons. If you're using the same icons, you should be able to get the most image from Graphics.sprites since I'm pretty sure the hardcoded graphics are by default in .png format. Disabling the item box completely is just calling player.reservePowerup = 0; every tick


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 3 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari