Modern Style Hud (Like NSMBWii,SMM,Etc.)

Moderators: Moderators, Semi-moderatos, SMBX2

Yingchun Soul M
Topic author, Viscount
Viscount
Avatar
Yingchun Soul M
Topic author, Viscount
Viscount
Age: 26
Reputation: 103
Posts: 391
Joined: 14 Nov 2014
English Pronouns: he / him
Location: China
Website

Post #1by Yingchun Soul » 20 Apr 2017, 10:15

NOTE: This library is unmaintained, so it only supports until SMBX2B4, without using new characters.

Just a Simple Lib.
This replaces original SMW Style Hud with a Modern Style Hud.

Screenshot
2021-11-22_20_35_08.png

How to use:
Place local ModernStyledHud = require("ModernStyledHud") in your luna.lua at the top, and you're done!

Optional Reserve Box Function:

Code: Select all

ModernStyledHud.usereserve = true/false


Download:
For Beta 3 (Old):
Modern Styled Hud For SMBX V1.0.4.7z
(9.18 KiB) Downloaded 523 times

For Beta 4+ (New):
Modern Styled Hud For SMBX V1.0.7.7z
(8.95 KiB) Downloaded 527 times


Note: New characters avatar isn't implemented.

Changelog
Update 1:
Added modernhud.usereserve funtcion.

Update 1.5:
Adjusted score place a bit.

Update 2:
Added Heart System.

Update 2.1:
Fixed a minor error.

Update 2.2:
Changed Reserve Powerup drawing function.

Update 3:
Added modernhud.showhud which is for toggling HUD display.
Added custom style to modernhud.style.
Optimized timer display.

Update 3a:
Added constants.
The HUD GFX is now fully customizable when the style is modernhud.STYLE_CUSTOM.

Update 4:
Reworked the timer system.
Added modernhud.timespeed for the countdown speed.

Update 5:
Now works with SMBX2MX3, and optimized code a bit.

Update 5.1:
Added Green Berry support.

Update 6:
Timer was synchronized with SMBX2 Beta 4.0.2 p2 Hotfix

Update 6.1:
Now uses Override HUD function.

Update 7:
Added star coin counter.
Replaced HUD Type condition with Character condition.
Last edited by Yingchun Soul on 28 Mar 2024, 6:08, edited 34 times in total.
迎春心情 (迎春心语 Alt.) in Chinese
Alt. nickname: "Elf of Happy and Love / 快乐爱的小精灵"

Check out my 2D Platform / TheXTech Assets:
Fairy Tale World
Nostalgic Paradise
Third Returns (Unmaintained)

迎春花的精灵啊,请您赋予我无尽的爱和指引,让每一座城在光明中重生,将大自然的力量和爱的力量集于一身吧!魔法凝结!

MACKACHE
Lord
Lord
Avatar
MACKACHE
Lord
Lord
Age: 19
Reputation: 108
Posts: 522
Joined: 22 Aug 2016
Website Twitter

Post #2by MACKACHE » 20 Apr 2017, 13:04

OwO, this looks pretty cool. Great job.
ImageImage

Bren23
Passerby
Passerby
Avatar
Bren23
Passerby
Passerby
Age: 31
Reputation: 0
Posts: 3
Joined: 16 Feb 2017
Website

Post #3by Bren23 » 18 Jun 2019, 20:17

Very good, great job.
Do you know the function to appear the star coins in your hud?

Yingchun Soul M
Topic author, Viscount
Viscount
Avatar
Yingchun Soul M
Topic author, Viscount
Viscount
Age: 26
Reputation: 103
Posts: 391
Joined: 14 Nov 2014
English Pronouns: he / him
Location: China
Website

Post #4by Yingchun Soul » 19 Jun 2019, 1:18

Bren23 wrote:Very good, great job.
Do you know the function to appear the star coins in your hud?
IDK
迎春心情 (迎春心语 Alt.) in Chinese
Alt. nickname: "Elf of Happy and Love / 快乐爱的小精灵"

Check out my 2D Platform / TheXTech Assets:
Fairy Tale World
Nostalgic Paradise
Third Returns (Unmaintained)

迎春花的精灵啊,请您赋予我无尽的爱和指引,让每一座城在光明中重生,将大自然的力量和爱的力量集于一身吧!魔法凝结!

Falafel_83 M
Citizen
Citizen
Avatar
Falafel_83 M
Citizen
Citizen
Reputation: 1
Posts: 9
Joined: 1 Jul 2024
English Pronouns: he/him
Location: Spain

Post #5by Falafel_83 » 16 Apr 2025, 5:23

It's fantastic! I'm using it in my episode if you don't mind it (of course you're credited)
Try out New Super Mario Bros. Lambda (up to the 6th Demo) here!


Return to “LunaLua scripting”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest