BGGET(L,X,Y,1) gives you BG part number under the sprite. L:BG layer number(0-3) X,Y:coordinates of the sprite