Bars.lua [v1] - Draw fancy health bars!

Share and discuss custom LunaLua code and content packs for SMBX2.

Moderator: Userbase Moderators

Marioman2007
2025 Egg Hunter
2025 Egg Hunter
Posts: 529
Joined: Tue Aug 25, 2020 3:19 am
Flair: Dr. Bones
Pronouns: He/Him

Bars.lua [v1] - Draw fancy health bars!

Postby Marioman2007 » Thu Oct 26, 2023 4:57 am

This is not a health system, but a script that draws bars with a given value.
Example includes a health bar for customHealth.lua and health bars for all vanilla boss NPCs.

GIF:
Spoiler: show
Image

Credits:
Me
Emral

Download:
https://drive.google.com/file/d/1ros9Md ... drive_link

Documentation is given with download, give credits if used.

MrCool422
Fighter Fly
Fighter Fly
Posts: 35
Joined: Sun Jan 24, 2021 12:26 am
Flair: Autistic
Pronouns: He/Him
Contact:

Re: Bars.lua [v1] - Draw fancy health bars!

Postby MrCool422 » Thu Oct 26, 2023 11:47 am

Ooo! That would be useful for my delayed episode!

mariobrigade2018
Rocky Wrench
Rocky Wrench
Posts: 613
Joined: Wed May 24, 2023 7:00 pm
Flair: OK in coding who dreams of making a Mario game
Pronouns: he/him

Re: Bars.lua [v1] - Draw fancy health bars!

Postby mariobrigade2018 » Thu Oct 26, 2023 11:53 am

Nice! I was wondering if you could change the look of the health bar, and how you would add this for custom NPCs.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 4 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari