Player Animations


One of the hardest things to get right was the player animations. Because of how we wanted our player to move around and follow the mouse cursor we had to separate the sprite sheet between the head and arm and then the body. This is because only the arm and head follow the mouse cursor while the body is simply animated.

Another issue that arose is that the neck part of the body would stick out if we allowed the player to have a full 360 degree swivel and look like he broke his neck. To fix this and also make our game a little more difficult we clamps the player to an 80 degree radius on either side.

The last issue that came up was that the players body would move slight from left to right during the movement animation. In order to allow the head to follow the animation properly we needed to add in another key for the animation which would allow the player head to follow the body. The problem with that was that the head would smoothly move around making his head look like a yoyo. To fix that we had to change the curve of the animation so that it would simply jump from position to position.