![]() |
Routines |
| Prev: 47756 | Up: Map | Next: 47908 |
|
Used by the routines at HandlerFlame, HandlerHippoWarthog, HandlerSleepingHippoWarthog, HandlerGuardian, HandlerAppearingNastie, HandlerChooseNastie, HandlerDyingNastie, HandlerChasingNastie, HandlerWanderingNastie, HandlerYellowOrchid_StandUp, HandlerOrchid, HandlerWulf, HandlerWulfPouncing, HandlerWulfLanding, HandlerFlyingSabreman, HandlerSittingSabreman, HandlerTribesman, HandlerRhino, PlayerMovement, GamePlay_Start and EnterRoomBelow.
Saves the position, the sprite ID and the room of an actor, so that the sprite can be erased from its old position later (see DisplayEntity and RemoveEntity). The values are saved in Previous_X_Position (X), Previous_Y_Position (Y), Previous_Sprite_Id (sprite ID) and Previous_Room (room).
|
||||||||
| StoreEntity | 47883 | LD A,(IX+3) | Copy the X position of the actor to Previous_X_Position. | |||||
| 47886 | LD (38560),A | |||||||
| 47889 | LD A,(IX+4) | Copy the Y position of the actor to Previous_Y_Position. | ||||||
| 47892 | LD (38561),A | |||||||
| 47895 | LD A,(IX+0) | Copy the sprite ID of the actor to Previous_Sprite_Id. | ||||||
| 47898 | LD (38559),A | |||||||
| 47901 | LD A,(IX+1) | Copy the room of the actor to Previous_Room. | ||||||
| 47904 | LD (38562),A | |||||||
| 47907 | RET | Return. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: 47756 | Up: Map | Next: 47908 |