Set the sprite's horizontal position to the value of the distance.
To view the value of distance, click the checkbox next to the block in the palette.
To use distance, you need a distance sensor connected to your computer via a LEGO WeDo hub.