Making a player appear in front of a ''same as player'' event.

CrazyCrab

Veteran
Veteran
Joined
Mar 5, 2014
Messages
950
Reaction score
403
First Language
Polish
Hi everyone,

I can't believe I didn't think of this before as right now I'm really stuck and not sure what to do anymore.

My events are set to ''same as player'' level so they can be interacted with using the action button.

At the same time I want the player to be able to move through them so he or she can access the ones behind it, but when I set the event to ''through'' or set the player to ''through'' (using the set move route for the player) the player appears behind the object that he or she is going through.

This looks absolutely horrible.

What can I do to fix it?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Give an example of why you would want to do this.


Basically, if you have two events and they're always going to be one behind the other, you'd just put the interaction on the front one.
 

Vinedrius

Member Title
Veteran
Joined
May 14, 2012
Messages
251
Reaction score
94
First Language
Turkish
Primarily Uses
RMVXA
I hope I didn't misunderstand your problem. You can just make the event "below character" instead of "same as character" + "through" and put invisible events around that event to trigger it indirectly via these invisible events with a simple conditional branch rule. That way you also make sure your character appears above that permeable event.

For the sake of an example, I am assuming you would have a setup like this;

.....E2

X1 E1 X2

.....X3

-E1 is one of the real events which is "below character", E2 is the other real event you want to reach through E1, Xs are the invisible events which are set to trigger by action button and NOT same as character.

-Set up a conditional branch in X1 to check if the player is facing right. Fill inside the conditional branch with commands created for E1. If true, it starts to make E1 do whatever you want E1 to do when X1 is triggered by the action button.

-Same thing for other Xs but it checks if the player is facing left for X2, up for X3.

These are only relevant if your events are not set to automated movement though. It gets complicated if they are mobile (more branches, variables to save coordinates, probably region IDs too) and I may not be able to set it up properly so can't help you much if that is the case. There may be a simple solution though, maybe a small piece of custom script.
 
Last edited by a moderator:

CrazyCrab

Veteran
Veteran
Joined
Mar 5, 2014
Messages
950
Reaction score
403
First Language
Polish
The problem is that all the events need to be clearly visible and accessible, as theyre functional buildings.

An example where the player goes through one to touch the othrer one would be:

OOO

OXO

OXO

If the player wants to interact with X he or she must stand on O, but then he or she appears behind O when set to "through".
 

narcodis

Villager
Member
Joined
Jun 5, 2014
Messages
18
Reaction score
5
First Language
English
Primarily Uses
What are you trying to accomplish, exactly? Can you provide some screenshots?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
have you considered changing some of them to "below player"?


However, if you do then you have to keep in mind that this changes the behaviour of the action button:


Below player = player needs to stand on the event to trigger action button (facing is not checked)


Same as Player = Player needs to stand adjacent and facing the event to trigger action button
 

CrazyCrab

Veteran
Veteran
Joined
Mar 5, 2014
Messages
950
Reaction score
403
First Language
Polish
have you considered changing some of them to "below player"?

However, if you do then you have to keep in mind that this changes the behaviour of the action button:

Below player = player needs to stand on the event to trigger action button (facing is not checked)

Same as Player = Player needs to stand adjacent and facing the event to trigger action button
I can't believe I didn't think of that earlier, just setting them beneath and clicking action when on them will be good enough.

I guess the easiest solution is the one you overlook the most huh  >_>

Thanks!

Feel free to close the thread.
 

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

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,070
Members
137,577
Latest member
SadaSoda
Top