Making an object follow a path

I want to be able to create a path, then have an object move along that path. Does anyone know of an example I could use? It seems easy enough, but I’m not sure how to do it, short of saving the path as an array of x,y points.