Tile layering with autonomous characters + player

Status
Not open for further replies.

glenjj

Villager
Member
Joined
Dec 11, 2013
Messages
19
Reaction score
0
First Language
English
Primarily Uses
Hey guys, noobish question here as usual lol

How do I make a character (shopkeeper, prisoner etc) behind a certain tile so it overlays them, but me be in front of it if im next to the same tile?

For example, I see people behind some prison bars, and I want to walk up to them to speak through the bars, so the bars are overlaying them but not me so im in front of the bars and other character, hows that achieved? :|

Or a shopkeeper behind a counter with objects overlaying them, but not me if I walk up to the same tile.

So far I ended up getting the top of my head put under a tile that the other character is standing behind :/
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
What kind of sprites are you using? because in default, that problem cannot happen because all actors and NPCs are inside the map-grid.


I'm assuming you're using larger sprites like the HF-Sprites, because otherwise such an overlap is impossible.


Unfortunately, because the default RTP cannot have the problem, there is nothing in default Ace to prevent this (the star passability can only move the tile in front of everything as you have already discovered.


You need a so-called Z-Level-Script to achieve the layering you want. Look for that on the Master Script List - there also is one in the HF-Packs for use with those sprites, but the script from the HF-Packs works differently and is probably not what you want.
 
Last edited by a moderator:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
for your prison bars, set the tile that you are using to depict them to 'star' passability.  That way the prisoners 'inside' them can come right up to them and the party 'outside' them can do the same, but neither can pass through them.

this doesn't solve your problem with outsize sprites if that is what you are using.
 

glenjj

Villager
Member
Joined
Dec 11, 2013
Messages
19
Reaction score
0
First Language
English
Primarily Uses
What kind of sprites are you using? because in default, that problem cannot happen because all actors and NPCs are inside the map-grid.

I'm assuming you're using larger sprites like the HF-Sprites, because otherwise such an overlap is impossible.

Unfortunately, because the default RTP cannot have the problem, there is nothing in default Ace to prevent this (the star passability can only move the tile in front of everything as you have already discovered.

You need a so-called Z-Level-Script to achieve the layering you want. Look for that on the Master Script List - there also is one in the HF-Packs for use with those sprites, but the script from the HF-Packs works differently and is probably not what you want.
Im using default size ace sprites, but arent they offset up by 4 pixels? hence the top of my head getting overlay (as ill show in my screenshot example)

I looked for Z-level script on master list but couldnt find it.

for your prison bars, set the tile that you are using to depict them to 'star' passability.  That way the prisoners 'inside' them can come right up to them and the party 'outside' them can do the same, but neither can pass through them.

this doesn't solve your problem with outsize sprites if that is what you are using.
Well it works like that only if the NPC and player are kept one tile apart, I want them to be right next to each other (above and below), but then the star tile hes behind overlays the top of my head, ill attach two shots of what i mean

1.JPG

2.JPG
 

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 Posts

Latest Profile Posts

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
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top