For sprites, use SPOFS sprite, X, Y, Z For backgrounds, use BGOFS layer, X,Y,Z For the graphic layer, use GPRIO Z