Help! Event Touch & Through conflict

I'd appreciate some advice, if anyone can help, please.

Here's what I'm trying to achieve;

- protagonist flips a switch which reveals a bridge; an enemy which was stationary then starts a move route back and forth across the bridge
- it you touch the enemy you're moved back to the start tile
- if you flip the switch again the bridge disappears and the enemy returns to the first tile they were on, and the area where the bridge was becomes impassable again

The problem I have is that I'm revealing the bridge using events (tiles from the 'b' set with 'through' on, to allow the player to step on them). The enemy, though, won't move over the bridge event tiles unless I turn on 'through' for the tiles; when I do that, the 'event touch' with the enemy doesn't work (I've tried changing the enemy priority to 'above', 'below' and 'same' and none work).

The best I've achieved is that it seems to work intermittently, but most of the time you can just walk straight through the enemy.

(I'm also having trouble sending the enemy back to the first tile; I've used the 'move event' function when you turn the bridge off, but it always moves an extra tile away from the start position in the direction it was last moving)

I'd rather avoid scripts, as it seems like it should be achievable with normal events.

Any ideas what I can do?
I'd appreciate some advice, if anyone can help, please.

Here's what I'm trying to achieve;

- protagonist flips a switch which reveals a bridge; an enemy which was stationary then starts a move route back and forth across the bridge
- it you touch the enemy you're moved back to the start tile
- if you flip the switch again the bridge disappears and the enemy returns to the first tile they were on, and the area where the bridge was becomes impassable again

The problem I have is that I'm revealing the bridge using events (tiles from the 'b' set with 'through' on, to allow the player to step on them). The enemy, though, won't move over the bridge event tiles unless I turn on 'through' for the tiles; when I do that, the 'event touch' with the enemy doesn't work (I've tried changing the enemy priority to 'above', 'below' and 'same' and none work).

The best I've achieved is that it seems to work intermittently, but most of the time you can just walk straight through the enemy.

(I'm also having trouble sending the enemy back to the first tile; I've used the 'move event' function when you turn the bridge off, but it always moves an extra tile away from the start position in the direction it was last moving)

I'd rather avoid scripts, as it seems like it should be achievable with normal events.

Any ideas what I can do?
Hy, yes this is absolutely doable without scripts.
There are actually some ways you could do it, one beeing making the npc set "through" and instead of player / event touch you manage it with x/y coordinates of you and the enemy.

Another way would be instead of making the bridge an event, just change the tileset, make a copy from the tileset youre using and instead of that tile that is there (instead of the bridge, hole?) add the bridge, and by doing that you got an functioning bridge without an event on it.

Another would be to make the enemy just jump over the bridge, thats ok if the bridge is 1,2 blocks but anymore then that and it could look weird.

"(I'm also having trouble sending the enemy back to the first tile; I've used the 'move event' function when you turn the bridge off, but it always moves an extra tile away from the start position in the direction it was last moving)"

This is a little bit harder since you cant use x/y coordinates for automoving events, you would have to do it manually or via scripts. Another way would be just to jump the event on the coordinates, you can make an fadeout screen - jump - fadein screen when using the flip...
Hi Spaske - thank you very much, that's appreciated!

The first option worked absolutely perfectly - I had no idea that you could use the 'game data' tab to get to x/y coordinates. Googled it, tried it, and it's exactly what I wanted.

Thanks again, that technique is going to come in really handy for the rest of the game.

Original thread: https://forums.rpgmakerweb.com/threads/help-event-touch-through-conflict.143579/