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

Description: Sub-forum dedicated to SMBX2 - a community-made extension mod over SMBX with using of LunaLua.
Moderators: Semi-moderatos, Moderators

Elf of H & L
Topic author, Marquis
Marquis
Avatar
Elf of H & L
Topic author, Marquis
Marquis
Age: 21
Reputation: 55
Posts: 176
Joined: 14 Nov 2014
Location: China
Website

Post #1by Elf of H & L » 20 Apr 2017, 10:15

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

Screenshot
Image

How to use:
1.Place local ModernStyledHud = require("ModernStyledHud") in your luna.lua at the top
2.Set your functions

Code: Select all

ModernStyledHud.usetimelimit = true/false
ModernStyledHud.timecounter = Your time limit.
ModernStyledHud.timeframe = frames per second, the lower number, the faster speed, the higher number, the slower speed.
ModernStyledHud.usereserve = true/false
ModernStyledHud.showhud = true/false


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

For PAL build:
Modern Styled Hud For SMBX V1.0.5.1.7z
(8.56 KiB) Downloaded 11 times


Note: Star Coin counters and other new characters aren'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.
Last edited by Elf of H & L on 27 Jun 2019, 2:33, edited 25 times in total.
(Sorry for my bad English.I'm Chinese)
Image
Image

Formerly known as Love Bodhi
Image

Check out my SMBX Projects - Fairy Tale Projects:
Mario in Wonderland 2
Mario in Wonderland Revolution

Follow on my Discord Server:
Image

Image

PK Esper F
Lord
Lord
Avatar
PK Esper F
Lord
Lord
Age: 13
Reputation: 107
Posts: 520
Joined: 22 Aug 2016
Location: The sky
Website Facebook Google+ Twitter

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

OwO, this looks pretty cool. Great job.
why i hadn't been in this forum for long when i used to be a super active person
avatar is basically baldi from tumblr
Formerly known as RSupertheGreat.
ImageImage
What I support
ImageImageImage
Personality
Yes, I'm a girl. If you guys are thinking I'm a boy.
I hate most people.
I'm a developer (and a beta tester of):
Image
Image
My level/episode playthrough thread: http://wohlsoft.ru/forum/viewtopic.php?f=29&t=2185

Bren23
Passerby
Passerby
Avatar
Bren23
Passerby
Passerby
Age: 25
Reputation: 0
Posts: 2
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?

Elf of H & L
Topic author, Marquis
Marquis
Avatar
Elf of H & L
Topic author, Marquis
Marquis
Age: 21
Reputation: 55
Posts: 176
Joined: 14 Nov 2014
Location: China
Website

Post #4by Elf of H & L » 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
(Sorry for my bad English.I'm Chinese)
Image
Image

Formerly known as Love Bodhi
Image

Check out my SMBX Projects - Fairy Tale Projects:
Mario in Wonderland 2
Mario in Wonderland Revolution

Follow on my Discord Server:
Image

Image


Return to “Super Mario Bros. X2 (SMBX2)”