NPC_position when map re-enter

I have an NPC move to a specific tile then change the image (to a dead body), but when i re-enter the map after exiting it, the (dead) NPC is back in its original position. Is there any way to fix that?


Thanks
Yanfly made a plugin for this that should help you out. It saves event locations and such while transitioning between maps. Here's the link: http://yanfly.moe/2015/10/21/yep-19-save-event-locations/
I've also written a plugin called Save Event Position (or something like that)


However, you can do it without plugins by just having two events.  Use switches to condition them in such a way that only one is visible at a time.  The first one will have the 'live' sprite on page 1 with no conditions, and no sprite on page 2 with a switch as a condition.  The second one will only have a single page, with the dead sprite, and the same switch as the condition.  Place them where you want the 'live' and 'dead' versions to be.  Then instead of using a command to change the event's graphic, turn on the switch.
Yeah, thats what i came up with after i first posted, but I figured id try the Yanfly plugin which worked perfectly, and has other functionality that I liked. Thanks so much.

Original thread: https://forums.rpgmakerweb.com/threads/npc_position-when-map-re-enter.59868/