Shrinking room/Walls closing trap

I've been scratching my head tryin to figure this out for days now. The long and short of it is. I'm making a horror game and one of the traps I wanted to implement is a shrinking room (or closing room) trap (Like the 1st trap room of witch's house). But I have no idea how to approach it, meaning are the moving walls characters themselves? or is there some scripting going on behind the scenes?
Heres an example of what im trying to achieve:

latest


Also my first time posting in this forum so yeah..Hello everybody! 😀
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!
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!

Im gonna try the both ideas and see if that works out. Thanks!
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.
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.
What program would you recommend for the animation?
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.
Sorry for late reply - I use GIMP to make my graphic stuff in and then export it as a png file back into my project. It would be the same if i made a 5x5 block sized event. I make it using GIMP (opening Tileset files as gimp one to borrow pieces from) and create an event sheet. Then export it back to my project and then set up my event using that custom image. Sorry if I'm being vague here.
What program would you recommend for the animation?

Original thread: https://forums.rpgmakerweb.com/threads/shrinking-room-walls-closing-trap.94379/