Sitting in a chair or laying in a bed

Hello, I was wondering if someone could help me with a project I am trying to do. I'm using some different graphics so that it will actually show the character sitting in a chair or I can use a graphic for laying in bed.

What I am wondering is if anyone has actually been able to make it so that if they either move on the bed or chair that their animation changes to them sitting or laying down... To be honest I can do this but my problem is, if I move them off the bed or chair, their animation is still sitting or laying down.

So what I am wondering is if anyone has come up with a good way to make it so when I sit down and then move off the chair my character will resume his walking animation.

Any ideas on how to do this?
@Bricrue RMXV Tutorials are for sharing tutorials you've made, not for asking for help. Since you posted in the VX section and don't have a Primarily Uses set I'll move this to the VX help, but if you're using a different maker please put that in your Primarily Uses.

I've moved this thread to VX Support. Thank you.

@Bricrue RMXV Tutorials are for sharing tutorials you've made, not for asking for help. Since you posted in the VX section and don't have a Primarily Uses set I'll move this to the VX help, but if you're using a different maker please put that in your Primarily Uses.
Moved to: VX Support

I'm using RPG maker MV. I am sorry if I am not sure where to post as I am new and still learning.
You can have a touch event on the bed which then implements the Change Actor Graphic command to change the player graphic to the sitting/lying one.. Then around the bed, make touch events too which uses Change Actor Graphic to revert to original sprite.
Ok... So there is no way to lock a player in place so they can't move? I was trying to get it so that it asks if you want to sit or lay in bed. But the problem is, even if I change the player graphic like you said, they can still move. I wanted to be able to have them locked in place until they use their action button to stand in which case then they would change back to their walking animation. They way you described I've done it that way, I was hoping there was another way to do it.

Original thread: https://forums.rpgmakerweb.com/threads/sitting-in-a-chair-or-laying-in-a-bed.108960/