Well, you could get the sprite position with SPOFS spriteid OUT X, Y and then see if it's within a boundary like IF X<50 AND X>10 AND Y<50 AND Y>10 THEN switch map to inside the building here ENDIF