The 15-year-old was using the Brooms Road pedestrian crossing in Dumfries when he was hit by a car.