I'm not sure I understood what you wanted. You want to move the character only horizontaly, no matter where you click the mouse, right?
If that's the case, here's the capx.
https://www.dropbox.com/s/5px2blkve0h9m ... .capx?dl=0
If I've misunderstood, just let me know and we'll fix it. Hope this helps. Cheers!