I think the game I made has the same movement mechanic, if you are really interested I could give you the movement script I used.