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: 25
Reputation: 98
Posts: 370
Joined: 14 Nov 2014
English Pronouns: he / him
Location: China
Website

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

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 410 times

For Beta 4+ (New):
Modern Styled Hud For SMBX V1.0.7.7z
(8.95 KiB) Downloaded 303 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 22 Nov 2021, 15:43, edited 33 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 (Hiatus)

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

MACKACHE
Lord
Lord
Avatar
MACKACHE
Lord
Lord
Age: 17
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: 30
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: 25
Reputation: 98
Posts: 370
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 (Hiatus)

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


Return to “LunaLua scripting”

Who is online (over the past 5 minutes)

Users browsing this forum: 2 guests