Just move the moving sprite up and down a little bit to create a sinusoidal trajectory like in 
Just move the moving sprite up and down a little bit to create a sinusoidal trajectory like in