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

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

$
0
0
Came up with a way to make the health never go up past 2 without changing the main and max health values:
function onStart()
health.curHealth = 2
end

function onTick()
if health.curHealth >= 3 then
health.curHealth = 2
end
end
this could be useful in two-hit challenges. Also, just setting the main or max health to 2 or anything else seems to mess up how the health is rendered without making changes to the sprites. this is just a lazy way to make it display properly in a situation like this.

Statistics: Posted by AlphaBlue1011 — Tue Feb 18, 2025 7:33 pm



Viewing all articles
Browse latest Browse all 2822

Trending Articles