you use an expression. in events, create system event "every tick." then add the "set x" action for the character and for the x input "mouse.x"
mouse.x is the x value of the mouse <img src="smileys/smiley4.gif" border="0" align="middle">
every tick makes everything smooth
edit: here's an example capx:example