Wall traps and falling traps are easy to do, but how can I make a falling guillotine trap? The event in the wall and everything else is done, but how am I supposed to make it fall?
A little help with a certain trap
RPG Maker VXAce SupportHello, unfortunatly I think I didn't understand what you mean...does your trap fall from? I mean, RPG Maker is actually 2D so I don't get what you mean by "falling". Could you be more specific?
For what I can see you want them to basically appear from the top of the wall and then go down until they reach a fixed spot on the ground. If it is this way then it shouldn't be so difficult. It's the same as having a trap coming out from a wall.
1. Create an event below characters without graphic and set activation on Player Touch.
2. After the event is being activated it transfers itself to the spot you want the guillotine to fall from.
3. Add a Move Route to the event as follows: Change Graphic (set the graphic to the guillotine's) and move down (you can change its speed if you want it to go slower or faster).
4. When it reaches the spot you want it to reach it does damage/kill the character.
Of course if you want it to be undodgeable you can just set it to be activated on player youch. If you want to let the player try to avoid it you should put all these commands into a new event page with the condition of Self Switc A == ON and set it to be a Parallel Process. Of course at this point, once the event reaches the fixed spot (floor) it should check if player position is the same as event position.
If you want to use the second option then your first page will just be Player Touch -> Self Switch A = ON.
If I didn't get what you need and what I said doesn't fit your needs then I hope you can give me screenshot of your game so I can at least see it. That because the screenshot you posted doesn't seems RPG Maker to me and so I had to find out on my own what you were talking about.
EDIT:
Another way to do it, of course, is creating sprites of every step of the guillotine. If you do it this way then you should remove the transfer event command from the event and just change its graphic as many times as you need to display the animation.
1. Create an event below characters without graphic and set activation on Player Touch.
2. After the event is being activated it transfers itself to the spot you want the guillotine to fall from.
3. Add a Move Route to the event as follows: Change Graphic (set the graphic to the guillotine's) and move down (you can change its speed if you want it to go slower or faster).
4. When it reaches the spot you want it to reach it does damage/kill the character.
Of course if you want it to be undodgeable you can just set it to be activated on player youch. If you want to let the player try to avoid it you should put all these commands into a new event page with the condition of Self Switc A == ON and set it to be a Parallel Process. Of course at this point, once the event reaches the fixed spot (floor) it should check if player position is the same as event position.
If you want to use the second option then your first page will just be Player Touch -> Self Switch A = ON.
If I didn't get what you need and what I said doesn't fit your needs then I hope you can give me screenshot of your game so I can at least see it. That because the screenshot you posted doesn't seems RPG Maker to me and so I had to find out on my own what you were talking about.
EDIT:
Another way to do it, of course, is creating sprites of every step of the guillotine. If you do it this way then you should remove the transfer event command from the event and just change its graphic as many times as you need to display the animation.
I hid your accidental double post for you. It will probably still show for you but not for anyone else. Thanks for letting us know.
Everything works now and the guillotine now falls easily! What I was forgetting was the Event Transfer. Thank you!
I am glad it helped you. =) Let me know if there is anything else you need.
@bgillisp thank you a lot for handling my post. Anyway even I am not able to see it.
@bgillisp thank you a lot for handling my post. Anyway even I am not able to see it.
Original thread: https://forums.rpgmakerweb.com/threads/a-little-help-with-a-certain-trap.69753/
