I am trying to create a pacman game for a class project and right now I am using booleans to ensure pacman can only move in one direction and that while one key is down, the rest cant be activated until no keys are pressed. I just realized that pacman never stops moving so I had the idea to keep him in constant movement and just have him turn. As much as I want to use rotation, it would be difficult. Having pacman face one direction, and then having him rotate the same amount everytime would not work if he was facing down moving and you pressed the up key, he would need to rotate 180. Left to down would just be 90. Its different and would be hard to detect. If There was a way to just have him face upwards if the up key was pressed, and face accordingly for each key, it would make it easier and make animating a lot easier. Please help me DANPOST!

