Help with tilemap, collision, and movement

I was looking at this post here

it shows similar tiles, but act independently. and the map moves with the collision so... I'm a bit confused on how it's pulled off.