Problem ice dungeon: sliding object

Hello.

I'm doing a classic map with a sliding object and a switch to activate (with the object sliding).
1493357184-capture-d-ecran-2017-04-28-a-11-25-56.png

(Events around the switch allow the door to close when the character moves away from the switch)

The problem is that when the event touches the switch, nothing happens.
I found this plugin: https://galvs-scripts.com/2016/08/14/mv-puzzle-functions/
allows you to interact 2 events together (watch the second map in the demo project), but unfortunately it doesn't work when the object sliding.

There is another difficulty:
In order for the block of ice to remain on the switch, the second ice block must be placed around. Otherwise the first ice block will slide through the switch.

I don't know if I can put a link, but here you have the project if you want to test.
https://mega.nz/#!1shSXbZC!P6B_wD1ehKr1U9WLN255PMMoWSFWyVwaObD_XSCmh_8

How can I do? 🙁
You can make it so the event when touching a certain "X/Y Coords" can activate the switch by running a parallel event that checks for it all the time. I use this method for moving tiles.
Someone has a screenshot please, because I don't know where is this option. :/
I looked into it. I think you need movement events

Deleted original post as I don't think it would have worked in your situation.
Isn't it one event, that's moving onto another event? No player position needs to be checked (just based on what's written in the OP - I haven't downloaded anything)
I thought it was a moving event, so I was checking "events" x and y's location as it moved.
I am really sorry. I have been trying for over two hours and I can't.
Would someone have the kindness to download the project to do the event?
I've been blocking with this puzzle for over a month now.:headshake:
So, you want an event to move? What causes it to move? Player pushes it? Then it moves?
Yes that's correct.
Impossible for Solis (we talked by MP). :'(

So, if someone want to try please, help me.
Right I'm done. One question - do you want it for the door to stutter/start to open if the block slides over (and off) or are you happy with it only opening when the block rests in the perfect position?

The stuttering door might be a lot harder but I'll give it a go now.
Sorry, but I'm not sure to understand your question.

Ideally, I would like there to be two blocks (to make it a bit more difficult and interesting).
In order for the block to remain in place on the switch, a second block must be placed around the switch for the other can be stopped and stay on the switch.
If there is nothing, the block will slide on the switch, the door will open and then close.
That's OK, I understand 🙂.

I'm almost done, just trying to bug fix.

https://mega.nz/#!ov4Czaia!0Ceqfk6AElcidujyqzFv0ZoRW-oge4APEmeu_XZfKso

Basically: Switch when you touch the block that activates a parallel event that checks location. If the event location changes 30 frames later then the door closes again (for when it slides past) but if it stays in position then it keeps the door open.
It's working!

But I have a big fall of framerate when I push the bloc. Do you have the same?
On the other hand, the door doesn't open when the bloc n°1 passes across switch. I'm seeing how it all works to correct the problem.
It's working!

But I have a big fall of framerate when I push the bloc. Do you have the same?
On the other hand, the door doesn't open when the bloc n°1 passes across switch. I'm seeing how it all works to correct the problem.

That's probably the parallel process kicking in as it slides. Not sure how to reduce that exactly - you'd probably have to go the plugin route rather than just eventing.
It is possible to delete the "wait" when the character push the bloc?

On the other hand, the door doesn't open when the bloc n°1 passes across switch. I'm seeing how it all works to correct the problem.
And for the bloc n°1. I copy-past event from the second bloc, and it doesn't work. Why?
862942Capturedcran20170506001155.png
Did you add the "Turn Switch "Trigger 2" ON" to Bloc 1?

You can try to delete the wait, see if it works any better for you 🙂. I was just trying to make sure there was a slight time delay to check if Bloc 2 was still on the button.
Yes, I added it but it doesn't work.
But If I delete the wait, the door doesn't open when the block slides on the switch. I don't understand why...

This map is a hell for me!!

Here you can watch:
https://mega.nz/#!ZsIX3LjD!0AvAyy-KJyhvQhOfIZxazwMQg2nNTkAiBY2SqQGyrho
Up please 🙁
Hey @Poupouille,

I remember your map. Are you using the method I provided in your other thread, namely the Loop checking for Region IDs and the other event in front of the event? If so, it would be wise to check if the sliding object is on the switch right after the loop starts and before the check for Regions and Events.

Original thread: https://forums.rpgmakerweb.com/threads/problem-ice-dungeon-sliding-object.78123/