Direction Lock On A1 Red Carpet

I want to make a section where the player only moves in one direction down a hall, and cannot move backwards. I've locked their direction, and prevented up and down motion by preventing motion on the tile used for the floor above and below the path the player should move. I was going to use four-directional motion on the tileset for the line the player should walk, but there's a problem- I'm using the red carpet, and you can't change four-directional motion on A1 and A2 tiles. (This makes sense, since they distort their shapes and whatnot, but it's inconvenient for me right now.)
How do I make it so the player can't move to the left, and can only move to the right, when standing on this carpet? I don't want to have to change the carpet, because I'd have to redo the whole scene to match, and that would require re-placing a bunch of set dressings, but I can if there's no way to do this. The tileset is unique to the scene, so I can do whatever convoluted nonsense is required. I'd rather not have to get into editing the tileset images themselves if I can avoid it, but I can if it's necessary.

I've already tried adding a spare Inside_B to the tileset as the E-tile, changing the four-directional motion on the blank sprite in the upper left corner, and layering that over the carpet, but selecting the left arrow does nothing and selecting the right arrow prevents all motion. I've already tried having an invisible event follow the player, blocking their way, but they keep bouncing back and forth when the player is not moving, and they can take advantage of that window and move backwards a bit at a time.

Very sorry if this is a dupe thread- I looked very hard for a thread like this and couldn't find one. If there is one, please direct me to it ^^
I'm not sure exactly how your map looks but you could cover the floor in blank events with the priority set to "same as character", this makes them unwalkable. Trigger can stay "action button", because it will do nothing.

Then the path you want the character to walk, fill with events that have 2 pages.
Page one priority is set to "below characters", trigger is "player touch" and the only contents is "flip self switch A".

Page two is blank. Priority: "same as characters", trigger: "action button" condition is "self switch A on".

This makes the previously walkable event unwalkable, blocking the player from going back.

edit: fixed a spelling error
I would just copy the desired tiles into a non-autotiling position, then changing the directional errors.
Self-switch is going to be tricky, I think it will only block positions two behind you, but you can use a series of switches, one for each row forward.
I personally would favor editing the tiles. I'm no artist, but if you have a steady hand and some patience, you should be able to clone the tiles you need over something you don't.
I'm not sure exactly how your map looks but you could cover the floor in blank events with the priority set to "same as character", this makes them unwalkable. Trigger can stay "action button", because it will do nothing.

Then the path you want the character to walk, fill with events that have 2 pages.
Page one priority is set to "below characters", trigger is "player touch" and the only contents is "flip self switch A".

Page two is blank. Priority: "same as characters", trigger: "action button" condition is "self switch A on".

This makes the previously walkable event unwalkable, blocking the player from going back.

edit: fixed a spelling error

I hadn't tried that because I thought the event would trigger as soon as you moved onto that tile, and you'd get stuck when the event swapped layers. There's also the problem that there's already going to be events you step on that do different things. Activating them is optional, it's possible to miss them, so I can't just have it happen after you activate it and see the dialogue- I'm unconfident enough in the way events layer to try and take that one on- and literally the one rule here is that I can't go left, so I want to avoid putting a 'you can go left if you try hard enough, but please don't' message somewhere T_T I'll give it a shot tho, thanks for the suggestion 😀


I would just copy the desired tiles into a non-autotiling position, then changing the directional errors.
Self-switch is going to be tricky, I think it will only block positions two behind you, but you can use a series of switches, one for each row forward.
I personally would favor editing the tiles. I'm no artist, but if you have a steady hand and some patience, you should be able to clone the tiles you need over something you don't.

Already thought of moving the tiles around. The problem with changing it into a non-autotiling position is that I picked it because I like the way it looks when it autotiles, lol. If I copied the A1 sheet to the D or E positions, I would only have the dot piece or the weird cornery bits to work with, neither of which I can construct a 1xLike55OrSomething rectangle with. I'm determined to find a walkaround now out of spite, but if I give up, I will just fiddle around w stuff in GIMP and make an end-middle-end type custom tile for it. TY 😀
Okay, I have a different idea now. Create a parallax map that looks like your actual map, at least that part of it, with the red carpet laid out. Then on your actual map tiles, use a blank tile, and for that tileset, set the blank tile to be passable only in one direction.

Original thread: https://forums.rpgmakerweb.com/threads/direction-lock-on-a1-red-carpet.130711/