How do I make a touch input controller that moves the character in the direction of the slide?

To break it down, you want to capture the initial touch, then you want to update a delta value (the amount of difference between initial touch and where the user is sliding his finger), probably every frame. So that way you know if he’s sliding his finger in front or behind his initial touch. Then you apply a positive or negative movement control on the character.

I’m not going to get into the specifics, there should be enough documentation to get you there.