Use the SPANIM command with the "XY" parameter.