Help with overlay please!

Can someone help me with coding for two overlays? I’ve tried to do it myself but it’s not working out. The code names are BED and BED SHEET,I want BED SHEET to be on top of the BED overlay so a character could be under the sheets.

@BED moves to layer 1
@CHARACTER moves to layer 2
@BED SHEET moves to layer 2


Or at layer 2
Depends on what you need.