How to make a gate?

I was wondering if it was possible to make a gate for a fence that swings open when the player uses the action button and then stays open until the player closes it?
Do you have the sprite? It would be just like a door sprite, and the event would be very similar to a door auto-event - minus the transfer.


Give it two event pages - one with the gate closed, and another with it open. When the gate is closed and the player activates it, have it open. When it's open and the player activates it, have it close.


The only issue you might run into is that you'd need to set the "open" page to Through ON, which then means (I think) that the player cannot active it unless they're standing on it. And of course you wouldn't want the gate to close while the player is standing on it.


Experiment a bit, and see how far you can get. When you get stuck, show us screenshots of the event (all pages, entire event window), and we'll see if we can get you further 🙂
Assuming your gate sprite is formatted the same as an RTP door sprite, the event page would look something like:

Spoiler
gate-event-page-1.png
gate-event-page-2.png
In action, this would look a little something like this:

Spoiler
Before pressing the action button
gate-event-action-1.png



After pressing the action button


gate-event-action-2.png



Going through the gate


gate-event-action-3.png



After going through and pressing the action button again


gate-event-action-4.png
The only problem with this sprite is it has no direction where it is completely open, hence the awkward-looking going through the gate. But with a different sprite with an additional direction that would not be an issue.


Also, pardon my great game naming skills (Cool Game Project).
and then stays open until the player closes it
Could you expand this a bit?  I've done gates which open and stay open (both horizontal like in Idril's screenshots, and sideways) and also one which closes automatically behind the player, but I'm not clear what you mean by "the player closes it".  Do you mean that you want the player to turn round and interact with the gate in some way so that it closes?  If so, is that part of the move route, or is this something that the player can do (or not do) independently?
Okay, so I was playing around with it a bit, I think I'm going to mess around with the tiles but I got the event the way I like it. I seem to have a lot of trouble with events, oh well I'll get it eventually, this was just really frustrating. 

Sorry the pictures aren't in spoilers, I don't really know what I'm doing

BZbFcHh.jpg


Gate Closed

R8gm2ef.jpg


Gate Open
Looks pretty good to me! 🙂 Only issue I can see is the sprite in the second picture looks a little long, but that's not really a big deal.
On a somewhat related note, if you have trouble with events, you might take a look at this if you haven't already: http://forums.rpgmakerweb.com/index.php?/topic/15096-the-ten-easiest-things-you-can-do-with-events/

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-gate.35570/