Posted September 08, 2021 by jastinel
The player movement is essential for this action-adventure game. The first thing that I would implement in this game is the basic movement as this feature is required for the player to move around the game world. For now, this will be uploaded just for testing purpose and it might be upgraded throughout the development process.
In order to make this game looks more real, the player's movement here can move within 8 direction during the game. This is also known as eight way movement where the player walks into 8 different directions when moving. This is created using the Rigidbody2D component and a written script which allow the player to move towards the desired direction when pressing certain key on the keyboard. As there are some diagonal areas, these movements are useful as player can move around without much collision to the objects around and quicker(less time consuming).
Following to that, I also make sprite sheet so that the player can face 8 different directions when moving. As the original illustration has only 1 direction, I modified the character so that it can be used exactly how I wanted.
The bottom ones are the sprites for player shooting which will animated when the user is clicking the mouse.
Controls/keys used for moving around:
To move diagonal direction:
From UTAS KIT109's tutorial last Thursday, I have gotten some feedback from my tutors and peers regarding the movements that I have implemented. As they have tested the game, here are some of the feedback to improve my game:
Additional feedback: