Page 1 of 1

Help with HUD creation

Posted: Fri Mar 31, 2017 2:12 pm
by Chaotic Gaming
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??

Re: Help with HUD creation

Posted: Fri Mar 31, 2017 2:25 pm
by TDK
You mean this?


The creator of that is inactive, unfortunately.

Re: Help with HUD creation

Posted: Fri Mar 31, 2017 4:41 pm
by Chaotic Gaming
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)

Re: Help with HUD creation

Posted: Fri Mar 31, 2017 9:36 pm
by PixelPest
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