What does second value in ChangeObjectState refer to?

Sorry for the super basic ASM question: I have an understanding of what the first variable refers to in ChangeObjectState, but sometimes I see "ChangeObjectState #$02, #$02" (e.g. melee), but then also see "ChangeObjectState #$01, #$04" for jump, movement, etc. I am a bit confused about what it means when the second value changes from, say, #$02 to #$04 and in what contexts. Thanks!
 

CutterCross

Active member
The ChangeObjectState macro defines the 2nd argument as the initial animation timer. So basically the speed you want the object's animation to play. Not sure if the animation's own animation speed overwrites that or the other way around, but might as well keep it the same for consistency's sake.

All included macros can be looked at through the Defined Scripts tab in the NESmaker UI if you need to double-check anything.
 
Top Bottom