How to Expand a Player's Heart Capacity?

This is the place for discussion and support for LunaLua and related modifications and libraries.
Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on topic/appropriate?
-Are you posting in the right forum/following the forum rules?
Mosaic
Birdo
Birdo
Posts: 2887
Joined: Fri Feb 27, 2015 8:07 pm
Flair: All has a reason behind it, even if it's tough.
Pronouns: He/Him
Contact:

How to Expand a Player's Heart Capacity?

Postby Mosaic » Mon Apr 03, 2017 8:49 pm

How do you increase how many hearts the player can have at time? Is there a way to?

PixelPest
Raccoon Mario
Raccoon Mario
Posts: 7111
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Re: How to Expand a Player's Heart Capacity?

Postby PixelPest » Mon Apr 03, 2017 9:20 pm

You'd have to write a script to check when a player is powering down (I think it's 0x122 == 2) and have a counter that forces a power-up state (also based on 0x122) when it is equal to a certain number and have it decrease when the mem value is 0x122 and killing the player when it equals 0. For the graphic itself, you'd have to undraw the HUD, redraw the HUD, and draw your heart system

Hoeloe
Foo
Foo
Posts: 1442
Joined: Sat Oct 03, 2015 6:18 pm
Flair: The Codehaus Girl
Pronouns: she/her

Re: How to Expand a Player's Heart Capacity?

Postby Hoeloe » Tue Apr 04, 2017 5:12 am

There's an API on the LunaLua wiki called HUDofTime, which expands the heart capabilities of Link. I'd suggest looking at how that does it.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 2 guests