you mean like this? Demo NinjaMiner
you can do it by using the platformer behavior and when u press right change the gravity angle towards 0 when u press left change world gravity angle towards 180 270 up 90 down. make sure only the player has the platformer behavior and the walls to be solids (solid behavior)and thats it.
now if you dont use controls and u use touch to determine the direction of which u swipe towards you can calculate the angle of the initial x y of the touch and the release ... as specified above.
the speed you can increase it by setting the value of gravity pull or fall to a higher number test and retest till u get it as you want ... have fun.
download TOTM example capx movement using platformer behavior. i used newt 's angle detection since the touch plugin has no .angle expression i created 2 variables that are saved on any touch start then on any touch end newt's code works good as long as you dont rush the movement... its inaccurate sometimes... but you can fix it... by adding a 4 way condition check for angles... when touch ends... check if its between angles etc...