Is there a way to fix this bug?

Status
Not open for further replies.

David Bergström

Death Arcana follower.
Veteran
Joined
Sep 7, 2013
Messages
148
Reaction score
7
First Language
English
Primarily Uses
I noticed something, when managing a tileset on RMVXA yesterday,

When setting the passage of tiles on 'B-E' sets, I set a some tiles (namely backwards facing

chairs and couches) as a 'star' before editing the four direction passage so that a player

could 'sit' on the couch, but would be unable to walk through the back of it. The problem is,

on run time, the player CAN walk through the back of the chair or couch. And this only happens

when it has a 'star' passage set. Is there something I am doing wrong? Is there a way I can fix this?

Thanks in advance!
 

Zevia

Veteran
Veteran
Joined
Aug 4, 2012
Messages
640
Reaction score
353
First Language
English
Primarily Uses
RMMV
I'm not 100% sure on this, but I believe O, X, and * effectively correlate to below actor, same as actor, and above actor - which means anything marked as O is something that can be walked on, X is anything that will create object collision, and * is anything the character can "walk under/behind". Which basically means you can't set a 4-way passage for anything except O-marked tiles (I assume - I may be wrong).

What if you created a picture/parallax of that particular map, basically just overlaying an otherwise blank picture that simply has the back of the couch over the scene? You could then set the couch to regular O passage, with the entry only from one direction, but the back of the couch then would hide anyone sitting in it in terms of perspective since, as a picture being displayed, it would cover the actor up?
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
It's not a bug - it's working as designed. Whether "as designed" is what you want is another matter.


A star passability means it will not check any other passage settings. So your 4-directional passages aren't even looked at. A star means you can go through.


If your chairs go over 2 tiles, you should just be able to make the bottom one impassable at the top, and that should stop you from walking from the back to the front. So top tile will have a star, and bottom tile will use 4-dir passability to say you can't walk up.


If you don't like doing it that way, and you don't mind using scripts, take a look at this one, which will let you keep the star to indicate it goes above the character, but force it to use your 4-dir passability settings.

I'm not 100% sure on this, but I believe O, X, and * effectively correlate to below actor, same as actor, and above actor
No, not true. X means you can't walk through it (in most cases - A4 tiles are an exception), O means you can walk through it, and * means it displays above the player sprite AND you can walk through it. The O and X have nothing to do with above/below characters.
 

Zevia

Veteran
Veteran
Joined
Aug 4, 2012
Messages
640
Reaction score
353
First Language
English
Primarily Uses
RMMV
No, not true. X means you can't walk through it (in most cases - A4 tiles are an exception), O means you can walk through it, and * means it displays above the player sprite AND you can walk through it. The O and X have nothing to do with above/below characters.
That's what I mean - when you set an event "below actor," you can walk over it; when you set an event "same as actor," you can't walk through it; when you set an event "above actor," you can walk under it. So I was saying that O, X, and * basically function the same way as setting events to below, same, or above.

If your chairs go over 2 tiles, you should just be able to make the bottom one impassable at the top, and that should stop you from walking from the back to the front. So top tile will have a star, and bottom tile will use 4-dir passability to say you can't walk up.
I think he was trying to make couches or chairs that face upwards, with the back towards the screen, so you could have characters or NPCs appear to be sitting in them facing away from the screen, in which case the bottom tile would need the star passability setting - but hence why it leaves people awkwardly able to just walk through it.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
It's not a good way to think of it though. Map tiles are either below the character or above the character. They are not on the same level at all. If YOU find it easy to understand by thinking of it that way, that's fine, but I don't recommend you teach it to others, because it's not a good analogy, and we don't want to get support questions from people who are confused about map tiles being above/same as/below characters and be left scratching our heads as to what they're talking about.


Ah, I assumed he was talking about over two tiles.


In that case the script I provided would work (you could make it star passability but still say they can't walk down).
 

David Bergström

Death Arcana follower.
Veteran
Joined
Sep 7, 2013
Messages
148
Reaction score
7
First Language
English
Primarily Uses
Ah Shaz! That script works perfectly! Thank you so much!
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

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

Latest Threads

Latest Profile Posts

People3_5 and People3_8 added!

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.

Forum statistics

Threads
105,868
Messages
1,017,081
Members
137,582
Latest member
Spartacraft
Top