Prev: 9EB8 Up: Map Next: 9EEC
9ED2: Script routine: (03) Move entity right one character, and into new room if appropriate
Used by the routines at A82E and CBD3.
Input
IX Address of complex state data for an entity
9ED2 INC (IX+$05) Increase x-coordinates of entity left and right edges by one character.
9ED5 INC (IX+$07)
9ED8 BIT 4,(IX+$09) If entity is Flunky and his carrying-something flag is reset then jump to AdvanceScriptInstruction (advance HL to next script instruction and execute).
9EDC JP Z,AdvanceScriptInstruction
9EDF LD IY,($6DC0) Load IY with address of complex state data for entity held by Flunky and increase its left and right x-coordinates by one character.
9EE3 INC (IY+$05)
9EE6 INC (IY+$07)
9EE9 JP AdvanceScriptInstruction Advance HL to next script instruction and execute.
Prev: 9EB8 Up: Map Next: 9EEC