Prev: 40632 Up: Map Next: 40684
40658: Script routine: (3) Move entity right one character, and into new room if appropriate
Used by the routines at 43054 and 52179.
Input
IX Address of complex state data for an entity
40658 INC (IX+5) Increase x-coordinates of entity left and right edges by one character.
40661 INC (IX+7)
40664 BIT 4,(IX+9) If entity is Flunky and his carrying-something flag is reset then jump to AdvanceScriptInstruction (advance HL to next script instruction and execute).
40668 JP Z,AdvanceScriptInstruction
40671 LD IY,(28096) Load IY with address of complex state data for entity held by Flunky and increase its left and right x-coordinates by one character.
40675 INC (IY+5)
40678 INC (IY+7)
40681 JP AdvanceScriptInstruction Advance HL to next script instruction and execute.
Prev: 40632 Up: Map Next: 40684