Redherring32
Member
So with a bunch of help from Cargo, I have a nearly flawless "Easter Egg" Script,
however the Hud only updates after moving to the next screen.
Before:
When i add Hud update code i get this:
Here is the script.
Thanks in advance for any help.
however the Hud only updates after moving to the next screen.
Before:
When i add Hud update code i get this:
Here is the script.
Code:
LDA Object_vulnerability,x
AND #%00100000 ; Action Step Flag #5 turned on?
BEQ usr_skipCounterAdd ; if FALSE then skip counting
LDA Object_vulnerability, x
AND #%01000000
BNE usr_skipCounterAdd
; Increment cat counter by 1
CLC ; Clear carry flag
LDA #$01 ; Load decimal value 1 into the accumulator
ADC myMoney ; Add accumulator with the value contained in myMoney
STA myMoney ; Store the result of the arithmetic in myMoney
LDA Object_vulnerability, x
ORA #%01000000
STA Object_vulnerability, x
LDA_DrawHudBytes
ora #HUD_myMoney
STA DrawHudBytes
usr_skipCounterAdd:
Thanks in advance for any help.