# Pac-Man-styled movement

**URL:** <https://forum.kirupa.com/t/pac-man-styled-movement/87058>\
**Category:** programming\
**Created:** [April 18, 2005, 7:40am UTC](https://forum.kirupa.com/t/pac-man-styled-movement/87058 "2005-04-18T07:40:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cybernoid](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@Cybernoid](https://forum.kirupa.com/u/Cybernoid)\
**Post date:** [April 18, 2005, 7:40am UTC](https://forum.kirupa.com/t/pac-man-styled-movement/87058/1 "2005-04-18T07:40:43Z")

</div>

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.
