Bed sheet passability/sleeping in bed

lodger

Villager
Member
Joined
Dec 8, 2019
Messages
16
Reaction score
2
First Language
English
Primarily Uses
RMMV
The tileset I'm using has a bed split into three parts: headboard, bed, foot + has a sprite for the topsheet.

I've set the topsheet to star passability so characters can be underneath it.

But when characters walk below the foot of the bed, the top of the character sprite (their hair) passes under the topsheet.

Should I be looking at the tile layers? Maybe I'm not used to using them yet. The topsheet is on Layer 4 and the bed is on Layer 3.

Thanks in advance for any help.

Screen Shot 2021-05-15 at 12.53.59 PM.pngScreen Shot 2021-05-15 at 12.54.02 PM.png
Screen Shot 2021-05-15 at 12.51.03 PM.png

Screen Shot 2021-05-15 at 12.52.06 PM.pngScreen Shot 2021-05-15 at 12.52.12 PM.pngScreen Shot 2021-05-15 at 12.52.18 PM.png
 
Last edited:

Weremole

Veteran
Veteran
Joined
Jan 22, 2016
Messages
301
Reaction score
262
First Language
Swedish
Primarily Uses
Character sprites have a few pixels of offset from the tile it stands on by default. So with your characters being a tile wide and a tile high they can still have their tops cut off by star tiles if they are close enough. You have three solutions I think.
1) Rebuild your bed graphics a bit to take the offset into account.
2) Remove the offset with a plugin snippet.
3) Use a plugin to handle the star tile layering.

This is the snippet I use for offset. My characters are formatted diferently, try setting it to 0 or something maybe.
Game_CharacterBase.prototype.shiftY = function() {
return this.isObjectCharacter() ? 0 : 15;
};
For the third thing try TF_Billboard.
 

lodger

Villager
Member
Joined
Dec 8, 2019
Messages
16
Reaction score
2
First Language
English
Primarily Uses
RMMV
Thanks - I ended up rejigging the sprites in Photoshop and seem to have found a solution for now - however, I'll test your suggestion as well.
 

Latest Threads

Latest Posts

Latest Profile Posts

I always end up having issues with things i'd never expect.

Capture.PNG

Those friggin mountains man xD
Time for my daily walk/jog ''Literally starts raining while I open the door''
I just discovered there's a giant jellyfish in the Ace RTP. My day is made.
I'm pretty sure I submitted a username change like 4 months ago.
...
No offense but uh, still waiting for my name to be updated :/

Forum statistics

Threads
112,398
Messages
1,068,050
Members
146,050
Latest member
ozfolo
Top