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?
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?