Prev: 46784 Up: Map Next: 46804
46798: Play Footsteps Sound
Used by the routine at HandleWalking.
Plays the footsteps of the player walking, but only on every other frame of the walking animation, which is when the sprite number of the object is even.
Input
IX The address of the object
Return unless this is an even sprite.
PlayFootstepsSound 46798 LD A,(IX+0) Fetch the sprite number.
46801 AND %00000001 Keep only bit 0.
46803 RET NZ Return if the sprite number is odd.
View the equivalent code in;
Prev: 46784 Up: Map Next: 46804