Actually there are several different kinds of seismic waves, and they all move in different ways. The two main types of waves are body waves and surface waves.
Body waves can travel through the earth's inner layers, but surface waves can only move along the surface of the planet like ripples on water. Earthquakes radiate seismic energy as both body and surface waves contact.