Need ideas for a "clipping" mechanic

Hey folks,

I want to add a feature to my game where the player can intentionally "clip" through walls in certain places, possibly by holding the arrow keys against the wall for a while to walk through them, or something like that.

I was hoping to get your ideas on a good way to implement this. As far as I know, there is no way to tell how long a player holds down a specific key while on a certain tile or anything like that. I do have the VisuStella movementCore so I can use regions to trigger events by being in them them etc., but I am not sure how to best add that extra layer of "mess with this spot for a sec and find a secret", if you know what I mean.

I want something where a player can find a hint elsewhere so they know which wall they can "clip" through (ie. be transferred somewhere else) like a kind of secret, but I don't want to just to the boring "click on the right spot to reveal the secret" like Doom or Dark Souls etc.

My best idea so far is to run a parallel event while the player is in a specific region which sets a timer, and when the timer expires it checks to see if the player is still in the region and their direction is correct, and if so, transports them. This main issue with this is the lack of interaction - they just stand there facing the right direction and then something happens, which doesn't feel quite like moving through the wall and could be triggered by accident.

Willing to add any plugins which might help with this.

Thanks for your input!
As far as I know, there is no way to tell how long a player holds down a specific key while on a certain tile or anything like that.
Have a parallel event that checks for a button to be pressed and if yes increments a variable. If no, resets it. When the variable reaches your goal number, do the thing.

You can find existing threads that give exact examples of the event commands if you need it.
Have a parallel event that checks for a button to be pressed and if yes increments a variable. If no, resets it. When the variable reaches your goal number, do the thing.

You can find existing threads that give exact examples of the event commands if you need it.

Ah, that's a pretty good idea. I like that more than my other plan.

It might be a bit clumsy in terms of describing it to the player ("walk against the wall in X location" sounds more immersive than "Click X against this wall Y times" or something), but this might be the closest I can get to my vision vs some time based method.
"walk against the wall in X location" sounds more immersive
You know you could just do that, right?

You can make tiles on that map's tileset have star passability so the player can walk under them. Or you can make events that have the same graphics as your tiles and have a priority of Above Player.
You know you could just do that, right?

You can make tiles on that map's tileset have star passability so the player can walk under them. Or you can make events that have the same graphics as your tiles and have a priority of Above Player.

The main issue with that is that I don't want players doing it by accident at all. I want it to be a tip given to them by an npc elsewhere, and once they know the trick, they can then go to the location and walk against the wall for a short while to clip through it.

My worry is if it's just a false wall you can walk through, it would be fairly easy for players to find it by chance. I am going for more of an "if you really already know it's there, you can access this early, but you'd never think to do this otherwise" sort of thing.
So your wall event has two pages. The first one is priority same as player. The second one is the same image but priority above player. The second page is activated by a switch that's turned on when you talk to the NPC event.

Seems straightforward.

Or if you really want them to just run into the wall for X seconds or whatever, use the event method I described above.
So your wall event has two pages. The first one is priority same as player. The second one is the same image but priority above player. The second page is activated by a switch that's turned on when you talk to the NPC event.

Seems straightforward.

The issue with that is that I don't want the mechanic to be locked behind the NPC dialogue, but the knowledge of the "trick" itself. The fact that it should feel like clipping, or some sort of exploit, is part of the game's feel.

I want players to be able to do this early if they looked it up online or have played the game before. It also allows me to do some fun stuff like changing certain things if the player does do this prior to speaking to the NPC that explains how to do it.
Or if you really want them to just run into the wall for X seconds or whatever, use the event method I described above.

Original thread: https://forums.rpgmakerweb.com/threads/need-ideas-for-a-clipping-mechanic.162223/