Door Accessible from Either Side

KSOVII

Warper
Member
Joined
Jul 20, 2015
Messages
2
Reaction score
0
First Language
English
Primarily Uses
I'm trying to make a door event that is accessible when entered from the tiles above and below the door. The door just plays an opening sound effect and its opening animation (no player transfer).

I'm stuck because when the player is in front of the door it works fine. However, if the player enters from behind the door (so the character is on the tile above the door), the door opens for a split second before closing and playing the opening animation. This is with the event set to be the same priority as the player and triggers on player touch.

If I change the event to be above the player, it opens fine when entered from behind the door, but it continues to trigger whenever the player walks over that tile. I know I could disable the event at that point, but it also doesn't solve my problem because if the player walks around and approaches the door from the front, the top 4 pixels of the character are covered by the door (because it displays above the player).

Does anyone know why the door-opening animation flickers when the players enters from behind the door? And does anyone know of a good solution for making doors that are accessible from either side? I thought I might be able to make graphicless events on the ground that change the door's priority based on if the player is approaching from one side or another, but I wasn't sure how to accomplish that.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
It opens for a split second before doing the correct animation because of the way events react when the player initially interacts with them. They "turn towards" the player. If you approach a door from above, it will first "turn up" to face the player, and then it will go through its animation sequence. If you look at the spritesheet for the door, you will notice that the "up" direction shows the door fully opened.


You can solve the problem by checking the Direction Fix box on the event, then in the Set Move Route, turn OFF Direction Fix as the very first part of the move route when the door opens, and turn ON Direction Fix as the very last part of the move route when the door closes.
 
Last edited by a moderator:

KSOVII

Warper
Member
Joined
Jul 20, 2015
Messages
2
Reaction score
0
First Language
English
Primarily Uses
That works! Thanks for your help, Shaz!
 

Brigg

Veteran
Veteran
Joined
Apr 22, 2015
Messages
129
Reaction score
4
First Language
English
Primarily Uses
I use a Common Event for indoor doors. Here's the sequence I use. It should help you out tremendously.



And then of course, the actual door event:



Hope that helps!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,975
Members
137,563
Latest member
cexojow
Top