X and Y are equal to the top left corner of the character. IF BGGET(0,X/16+.5,Y/16+.5) THEN (touching ladder)