Doors are driving me crazy!

Edit: This is for RPG Maker VX Ace

Okay...

I'm trying to set up something that, should be, simple.

I want a character to open a door from the downward direction, walk through it to enter a small room, then close the door after themselves. The event should also allow the character to leave the room in the same manner but leave going down.

logic-wise this should be simple:

Create an event.

Set it on the same priority as the player.

Set it to activate when the player presses the interaction button.

Set the graphic to a door.

Make sure the animations, in this case, are all de-selected.

Then, for the actual contents:

*****

set movement route for the event

play sound effect (door open)

have the door set to transparent On

have the door set to through On

Set conditional branch to switch throughBRoomDooor == Off

-

set movement route for the player

move up

move up

turn down

set switch throughBRoomDoor On

-

Else

-

set movement route for the player

move down

move down

turn up

set switch throughBRoomDoor Off

-

play sound effect (door close)

have the door set to transparent Off

have the door set to through Off

*****

Yet this does not work. The door frequently fails to return from the Through On and Transparent On states. Frequently as in almost every time the character tries to leave the room. It seems to work fine coming from the downward position, but fails miserably coming from the upward position.

What the bloody fudge am I doing wrong?

Thanks for the feedback guys.

Edit: Note - I do have all the movements set to "Wait until Complete" so it isn't a matter of the character being in the door when it tries to reappear.

Further Edit: I even tried making an on-touch event one square away from the door, just to see, I set that to do nothing but turn "Through" and "Transparent" Off on that door... Nothing... The door doesn't come back no matter what I seem to do. Though, oddly, if I re-approach from the downward position and press interaction it will sometimes work flawlessly. I'm just at my wits end on this one.

Last Edit (I promise): Yeah, tested it literally 100 times.

The event works perfectly as I enter the room, as in I approach from the downward direction moving up. It always fails when leaving the room. I cannot figure this out. Mayhapes I have stumbled onto some kind of bug, or flaw, in RPG Maker VX Ace that nobody was aware of?
Would you mind providing a screenshot of the Event?
Sure...

I need to set a photobucket up for this... Hopefully this will work...

[IMG]https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-ash4/1069888_572845622767862_833536778_n.jpg[/IMG]
So you want the graphic for the door to open, the player to walk through, and the graphic for the door to close, and you want it to work from both directions?


If that is what you want, this will help you:


http://www.rpgmakervxace.net/topic/12949-want-doors-to-open-and-close/


although it does not give the event commands for the player's move route.


Am I understanding you correctly? (you would need a graphic that swings both ways, or you would need to have the player back away for one direction on the move route.)
Thank you for the reply and the link Deb, though that isn't the issue here, that will, no doubt, be useful in the future.

This is for making an interior section door that basically vanishes, then have player walk through it, then turns turns, then have the door reappear,
Here is the sequence in the game, so you can see what it is doing in the game:

[IMG]https://sphotos-a.xx.fbcdn.net/hphotos-ash4/1005724_572851529433938_404435472_n.jpg[/IMG]

The player approaches the door...

[IMG]https://fbcdn-sphotos-b-a.akamaihd.net/hphotos-ak-frc3/p206x206/421201_572851599433931_1833375298_n.jpg[/IMG]

The door disappears and a sound effect plays, the player passes through the door then turns to face where the door was, and the door re-appears as a sound effect plays.

[IMG]https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-frc1/1005984_572851646100593_1831100170_n.jpg[/IMG]

The door disappears, the sound effect plays, the character walks through the door, turns to face it, the sound effect plays.... And that is it.

The "Through" setting for the door *is* off. I know that because you cannot walk through that space. The transparent setting is "stuck" for some reason.
Well, if you make "this event through" doesn't that make the door able to go through the player, but what you want is the player to go through the door, no?


And you set your switch to off in your else statement but it is already off.


I have to admit I am not sure why you are using the switch.


Is there an event playing with that switch?


Are you using it to control the door reappearing?


or are you just using it to tell which direction the player is facing?


Because there is an event command to determine if he is facing up or down.


But I think you need to set PLAYER to through on.


Unless he is already walking around okay and I am all washed up on that one... =]
Have you tried editing the premade door transfer event?

I think if you tweak it a little, you can make that work the way you need it to.
Deb, the switch is just another way to determine which direction the player is facing in this case, yes. Though the issue is the code works PERFECTLY when the player is moving into the room, when the player is moving OUT OF THE ROOM it fails 100% of the time.

(Just using caps for emphasis not yelling or anything.)

The switch starts in the off position.

Going through the door once sets it to the on position, that way it knows when you are leaving to move you the opposite direction. If I don't flip that switch then the player will move "up" when he needs to move "down"

Though Deb, you are right, there *is* a way to do it without the switch, so thank you for that alternative method. Still having problems with the transparent option though.
Maliki -

Yes, there are work around methods I can use. I could simply use an event transfer to teleport the character through the door, (I actually do that in the first floor of that map) but that map is literally there for me to learn the editor and practice with events so I want to make a door that can be opened, the character walk through it, without using a teleport for it to work. The thing is, the logic is sound. The code *should* work. There is a flaw with the transparent function however...

I really am starting to think I found a bug in RPG maker itself here.
I know you aren't yelling, lol. Sometimes I try to understand, but I don't quite follow, sorry.


So basically you are locking your poor player in the bathroom!


I hate to ask for more screenies, but can we see how you are handling the switch?
Deb the screen shot above has the switch in it. The first one.
Side note:

I did a second door Deb, one that just uses the player's direction to move them instead of a switch, just to cut down the number of variables involved... Same problem. The transparent effect doesn't end. Every other command works fine, the movement works fine, the through works fine, both ways. The transparent only works one way. This is maddeningly frustrating for me heh.

Here is the second door's code... Still having, as I said, the exact same issue. The transparent gets stuck when the player is down from it.

[IMG]https://sphotos-a.xx.fbcdn.net/hphotos-prn1/72250_572883709430720_1049920720_n.jpg[/IMG]
Spoiler
oh my gosh, I did one too.


I swear, it really does look like a bug!


I'll upload my little demo, but it looks like a real fluke!


(tried it with and without player through on. What a freak!)
*******EDIT*******


I wonder if what is needed is a wait so that the player can get out of the way before the door comes back onto the map .....


FIXED IT!


it was the wait and through on for the player - screenie in two minutes
The Through part in the event should be on the player, not the event.

EDIT: Sorry.  I didn't realize what the issue was here: the transparency.

I'll look into it once I get home tonight if no one figures it out before then.
probably has more through ons and offs than it needs but it works


gotcha_zps0d865e7e.png
What direction is the door facing?  I'm thinking the problem is that your door is facing up after you leave the room, causing it to appear invisible.  Try making it face down at the very end.

The reason why GrandmanDeb's works is because she has Direction Fix enabled, where as you do not.
Huh... The plot thickens...

Okay, check this out.

I did a test, I took out transparent completely... The door still turns invisible when you walk out...

Oh bloody heck I think I know what is going on.

Brb let me test something.

Yes Lazy, that is it, I had the epiphany just as you must have been hitting enter.
Yes Lazy Creator, you were correct. 100% correct. That fixed it.

I feel so stupid. I have been fighting with this for over 3 hours.
If you don't use direction fix you get the image of the door halfway opened because you are "looking" at it from the top when you travel down - but that doesn't explain why it would be invisible.


Anyways, the event page I posted works and it was fun to watch the glitchy one I made at first! haha


Thanks, HWalsh for being patient with me as I caught on to what you were trying to say. Let me know if it all works now. =]


***edit***


nah, not stupid. Human.


I have done much, much worse over much, much less.

Original thread: https://forums.rpgmakerweb.com/threads/doors-are-driving-me-crazy.15478/