Zelda Spike slide trap

Ok I heard that this is possible. I have searched online on a tutorial on how to do the spike slide trap, but could not fine one. Any one have any idea how to set one up?
Do you want a tutorial using pure eventing or one using some Javascript to make it more streamlined?
It is usually more helpful to give a concise description of the mechanic, rather than say "like [insert random game name] does it" because not everyone will have played the same games as you, and therefore won't know what you are referring to.

I'm having to guess what you're after. If I'm right then:
set variables for player's x and y
set variables for spike trap's x and y
Parallel process
- Conditional checking if player's x and trap's x are equal
- if yes, conditional checking if player's y and trap's y are equal
- if yes, then whatever you want to happen when the player is hit.
It's actually not that simple, Kes. Basically the way a blade trap works is this:

If the player ever ends up at the same X or Y position as the trap, it will shoot towards the player's direction horizontally or vertically until it hits something else (they're usually set up such that one is on each corner of the room and they'll collide with each other) but they don't stop if they hit the player. Once they hit a non-player obstacle, they return slowly to their point of origin.
Ah, I see. My bad. It does reinforce my point about having a brief description of the mechanic, though.
Well Trihan, would like an eventing type, but a javascript would be ok as well. either or.
so any ideas? i tried a couple of my own and just getting half away. i am using yanfly's region id plug-in ( http://yanfly.moe/2015/10/19/yep-17-region-events/ ) to help spring the trap.
ok i kind figured it out. basically i Made an reg id event that springs the traps. as seen in the pic. I added a point of origin switch to turn on of when it reached back to it original spot. it worked well 'till it hit one of my statues that i am moving, then the game crashed.
07.png
The way I see:

The spike trap have two states:
  1. Fast Foward
  2. Slow Return
It also isn't stopped by touching the player, so it is Through = ON.

Then you check x,y, and it the player touches the trap, is moved away from event a couple tiles, receiving damage.

Now, if you want an object other than the player to block the path (like it seems to, since you mentioned a statue the player moved), it gets more tricky...
That's the part I'm struggling with, @Pine Towers . The main thing I'm playing with just now is making the event a parallel process while it's in "fast forward" mode, where it checks the tile in front of it for an event and if it finds one it switches it to "slow return" mode and if not it moves forward a tile.
I Resolved most of the problem with another plug-in by yanfly. I've used the Move Route Core. one of the commands (Move to x,y) worked great deflecting the statue and returning it back to its point of origin.

Original thread: https://forums.rpgmakerweb.com/threads/zelda-spike-slide-trap.75291/