Originally posted by BZM
I think it would be
This code loads what's currently in $0077 and compares it to 03 (mario on ground).
If you want a block to react different ways if the value in $0077 is or isn't 03, then use BEQ If equal, branch to ____ ) or BNE (If not equal, branch to ___ )
Schwa's ASM tutorial and the RAM Map should help you with the rest of what you want to do, whatever it is
This is basically what I did, but it doesn't work. The value never changes no matter what I do.
Originally posted by Learn
That really doesn't work too well. Use $72 intead. It would be #$00 if on the ground.
$7E:0072 1 byte Misc. Mario flying flag
Isn't that the "flying with a cape" flag?
What I want is a "mario is touching the ground and can jump" kind of flag.
EDIT: Just tested this. It works - seems to be 00 when touching the ground, 11 when going up in a jump and 36 while falling down. Not exactly sure why it does that, but hey, it works.