Page 1 of 1

Changing hardcoded HUD graphics depending on the player in a seperate episode?

Posted: Fri Nov 04, 2022 9:19 am
by Giggs-Chan
Is there a way to change the player icon depending on what your player is? M if Mario L if Luigi instead of showing 1UP or 2UP? It's possible with Wario but how do I do this for the rest of the characters? I know it's possible for SMBX 38A but is it possible in SMBX2?

Re: Changing hardcoded HUD graphics depending on the player in a seperate episode?

Posted: Fri Nov 04, 2022 9:28 am
by deice
this can be done using Graphics.registerCharacterHUD.

Re: Changing hardcoded HUD graphics depending on the player in a seperate episode?

Posted: Fri Nov 04, 2022 9:32 am
by Giggs-Chan
Okay, how do you do it on THIS HUD? (I also can't code at all. :()
viewtopic.php?t=27542
THIS is the HUD I'm using.

Re: Changing hardcoded HUD graphics depending on the player in a seperate episode?

Posted: Fri Nov 04, 2022 9:43 am
by deice
Giggs-Chan wrote:
Fri Nov 04, 2022 9:32 am
Okay, how do you do it on THIS HUD? (I also can't code at all. :()
viewtopic.php?t=27542
THIS is the HUD I'm using.
the script you linked loads all the images exactly once when it itself is loaded, so such overriding wouldn't be possible without heavy modifications made to it. i suggest you post in that thread to inquire about extra features (most people in here or lunalua help won't assume you're using external libraries unless you specify that you are).

Re: Changing hardcoded HUD graphics depending on the player in a seperate episode?

Posted: Fri Nov 04, 2022 9:22 pm
by Marioman2007
Giggs-Chan wrote:
Fri Nov 04, 2022 9:19 am
Is there a way to change the player icon depending on what your player is? M if Mario L if Luigi instead of showing 1UP or 2UP? It's possible with Wario but how do I do this for the rest of the characters? I know it's possible for SMBX 38A but is it possible in SMBX2?

viewtopic.php?t=25570