Moving a sprite in both directions of x-axis

hi all,
am trying to make a game whre i want the sprite to move from positive x-axis to negetive x-axis for 30 seconds and after dat it has to down along y-axis one step.anybody please help me