Quantcast
Channel: Super Mario Bros. X Forums
Viewing all articles
Browse latest Browse all 2862

LunaLua • Re: customHealth.lua [v1.1] - New CHS with less features

$
0
0
Is it at all possible to set a custom main and max health outside the default 3 main, 6 max?

Like if someone wanted to change it to be 5 for main, and 10 for max?

you can use this code to do that:

Code:

local health = require("customHealth")health.settings.mainHealth = 5health.settings.maxHealth = 10health.curHealth = health.settings.mainHealth
Note that you will need to change the health bar sprites too.
Here's the layout to do that.

Code:

Frame 1  - 0 healthFrame 2  - 1 healthFrame 3  - 2 healthFrame 4  - 3 healthFrame 5  - 4 healthFrame 6  - 5 healthFrame 7  - No health (used in the counting up animation)Frame 8  - 6 healthFrame 9  - 7 healthFrame 10 - 8 healthFrame 11 - 9 healthFrame 12 - 10 healthFrame 13 - Daredevil health

Statistics: Posted by Marioman2007 — Mon Feb 19, 2024 6:22 am



Viewing all articles
Browse latest Browse all 2862

Trending Articles