Well I think the GIF there shows a character sprite that's as wide as the room moving forward. Then, as the Skelly (I'm going to call him that) touches the player character the event is set to trigger. Skelly is probably moving due to a parallel event, it's quite simple once you have the assets and it occurs to you (it wouldn't have occurred to me tho 😅) and a really smart way to handle it.
Now, for the shrinking walls... that one i have no idea. You could teleport the player from room to room, each been smaller than the previous one, without using any kind of visual cue for the player. By that I mean not clicking the fadeout to black when teleporting (that should do the trick). Maybe that could work? No idea😅 but I hope the explanation of the GIF is of some help to you. Good luck with your project!
What about creating an animation (Such as spell animations) in MV, but using an image of the wall moving down. I did something similar in a game to give the effect of an elevator going down to the next level. It takes a lot of work and an outside program like GIMP to put your wall together in and create an animation tile strip, but that might work? Another thought to keep in mind it that events don't have to be 48x48, they can be 5 blocks x 5 blocks - the only problem is that only the 48x48 section where the event actually is can be made solid. The other areas are an over-projection of the image, but that can be overcome with other invisible events to act as touch triggers.
If it were me I would make a character out of the wall. Using some parallel processes track the players x and y coordinates and the walls coordinates as well. Then you can do a if walls y = player y then screen flash / game over you're flattened stuff. Or if walls y = whatever the bottom of your room is then game over yada yada yada.