A small thing to know... there is a "bug" in NESmaker with myHealh hud and the starting screen.
When you start the game, on the starting screen, your health is not displayed correclty (it's not the myHealth value) in the HUD... instead, it's displayed full, at max.
To fix that issue:
1) modify the "HandleUpdateObjects.asm" script (in the "Basic\System\" folder), around line 193, locate those lines:
Code:
LDA #HUD_LOAD
AND #%01000000
BEQ +
STA hudElementTilesToLoad
And modify like this (adding a line of code):
Code:
LDA #HUD_LOAD
AND #%01000000
BEQ +
LDA myHealth ;;HERE <-------- fix to start with the correct hud health
STA hudElementTilesToLoad
1) modify the script assgined to the "Hud Element 0" element in your "Project Settings > Script Settings" (it should be the HUD_Element_Var_Image.asm script), , around line 12, locate those lines:
Code:
DoScreenOffHudUpdate:
LDX player1_object
LDA Object_health,x
STA myHealth
And modify like this :
Code:
DoScreenOffHudUpdate:
; LDX player1_object ;; commented out !
; LDA Object_health,x ;; commented out !
; STA myHealth ;; commented out !
LDA myHealth ;;dale_coop: fix to start with the correct hud health
Now it should display the right health value in the HUD.