Pac-Man-styled movement

Hi.

I’m currently making a Pac-Man-styled game for a customer. I’m having trouble with the heros movement, as he tends to get stuck or not turn the corners right. I’m using a slightly modified Tonypa’s movement code.

I’d like to implement a similar control scheme as in the original Pac-Man where one “click” on the controller only moves you exactly the height or width to a tile, and you can “save” the instructions, if the hero’s moving while you move the controller.

Can anyone help me?

Thanks.