I am trying to tell the difference between what tile the sprite is colliding with. I am comparing it by the bounding box of the sprite. The tiles im checking are the two dirt tiles (1 and 2). Below is the event sheet I have, everything is working most of the time. The building should be red when touching the 2 dirt tiles. In certain positions though it is green. I debugged the logic and it comes down this section. Below is the images of the event sheet and the green and red building points.
This one is where the certain position of where it turns green.
This image is the way it should be and the difference is one tile. I am not sure what I am missing.