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 Profile Posts

Figured I would start posting what I am working on here. Anyways, a quest system plugin I have been working on:
20mgjmZ.png


What features would yall like to see in a quest system?
Playing my game to improve my game. (Totally not procrastinating)
Hope he recovers fast :|

Forum statistics

Threads
112,502
Messages
1,068,744
Members
146,176
Latest member
MissOclock
Top