Event Touch when Event is Through?

I have a section in my game, the ideea is that you're on a conveyor belt and you need to dodge various boxex that are on that belt.

The way I have it set up is as follows:

11b53sl.jpg


Event 1:

Spoiler
bi04js.png
When the player walks over it it trigers the section.

Event 2:

Spoiler
6stifn.png
Once the section has been triggered the player can no longer walk up or down, since the events that are up and down are set to be Same as Character Priority.

Event 4:

Spoiler
10gl2k8.png
Once the section has been triggered, the player's animation shows him only walking forward. Also the box that he is meant to dodge starts moving down.

Event 3:

Spoiler
2ealbnl.png


The box moves down and the ideea is that if it touches the player the screen flashes. But it doesn't work.

When the player walks over the event the screen flashes, but when the event moves into the player nothing happens. I experimented and found that it works only if the box doesn't have the Through option. The problem is that I need the Through option, otherwise the box can't get through Event 2

So now I'm stuck. Please, any help is welcomed 🙂
You make the front events on event touch to become passable. Then the lower events the same.

But the lower events will turn on event touch the uppers impassable again.

Edited:

Events A

Blank line where hero moves

Events B

Let's name them:

A1  A2  A3  (Event 2)

Blank line where hero moves

B1  B2  B3 (Event 2) <Should not be same as the above though. I use them just for reference on your diagram.

For each A Event do this:

On event touch make itself Through.

If hero steps to the lower tile he/she will get hit by the crate anyway.

If the crate touches B now...

MAKE B do this:

On event touch make itself Through.

On event touch make A NOT Through.

You can create variations of the same event with switches to handle it being Through or work it out in any way you want really.
You make the front events on event touch to become passable. Then the lower events the same.

But the lower events will turn on event touch the uppers impassable again.

Edited:

Events A

Blank line where hero moves

Events B

Let's name them:

A1  A2  A3  (Event 2)

Blank line where hero moves

B1  B2  B3 (Event 2) <Should not be same as the above though. I use them just for reference on your diagram.

For each A Event do this:

On event touch make itself Through.

If hero steps to the lower tile he/she will get hit by the crate anyway.

If the crate touches B now...

MAKE B do this:

On event touch make itself Through.

On event touch make A NOT Through.

You can create variations of the same event with switches to handle it being Through or work it out in any way you want really.
I'm afraid I don't quite unerstand

I mean "If the crate touches B now.." - is that even posible? To activate an event when another event touches it? From what I've seen it can't be done.
Set trigger on Event touch.

Change a switch that way, that will turn events to another page.

Your alternative is to work with passability tilesets and by changing tilesets (identical with different passabilities do the trick).
Isn't there a script that restricts the player's movement or something? 🙁
Isn't there a script that restricts the player's movement or something? 🙁
Sigh... probably. 🙂
Sigh... probably. 🙂
 Found one 🙂

I used Move restrict - by Yanfly

How do I mark this thread as solved?
Self report yourself as solved.

Original thread: https://forums.rpgmakerweb.com/threads/event-touch-when-event-is-through.44295/