Player Movement
Devolg One: Player Movement
During the first update to my game, I have implemented player movement, and animation, and have started working on player combat.
Player Movement:
For my game “Neutralise the Pathogen” I have decided to use four-way movement, using the WASD keys to direct the player. I have chosen this method of movement for my player because it is the best type of movement suited for the player’s environment, where the player will only need to move up and down and side to side—making four-way movement the most efficient. The code I used to move the player within the game is based on the player movement script used in the KIT109 2024 Tutorials. I have also given the player a Rigidbody2D component, which works in conjunction with the player movement script to move the player within the game. I have also set the player’s Rigidbody2D gravity setting to zero to prevent the player from falling off the screen.
Animation:
I have used a sprite sheet “Knight Sprites” (Knight Sprites) to animate my player. I did this by adding two moving sprites and an idle sprite all facing the same direction, to create a walking animation. This was repeated so I had a walking animation for a North, East, South, and West direction. Then using an Animation Controller I was able to merge all four walking animations together. I did this by using a blend tree, that allows me to control which direction the sprite is moving in conjunction with the player movement script. I have also created an Idle state for the player to be in when it is not being moved. This is done by using a Boolean parameter with the walking and Idle Blend Trees, allowing the player to swap between walking and Idle when the user is pressing keys.
Feedback:
Unfortunately, I was unable to show my game to my classmates during the Friday tutorial, as I had taken the wrong copy of my game to campus. Although I managed to track a couple of people down in the common room in the Hobart Apartments after collecting the correct game copy and having them test my game. The feedback that I received was that my player movement ran smoothly, but they felt it could be enhanced with the use of a sword for combat. Since I have received that feedback, I have made a script that is based on the player shooting script used in the KIT109 Tutorials, allowing my player to swing the sword every time the mouse makes a click. I am currently still designing the sword and implementing it with the player’s sprite sheet.
References:
Knight Sprites 2017, Time Fantasy, viewed 28 April 2024, <https: finalbossblues.com="" timefantasy="" freebies="" knight-sprites="">. </https:>
Neutralise the Pathogen
Status | Released |
Author | dtorlop |
Genre | Educational |
More posts
- Assignment 3 DocumentationMay 31, 2024
- Testing DevlogMay 30, 2024
- UI and PolishMay 30, 2024
- Testing formMay 24, 2024
- Presentation and GraphicsMay 22, 2024
- EnemiesMay 12, 2024
- Level BlockingMay 05, 2024
- Game ConceptApr 19, 2024
Leave a comment
Log in with itch.io to leave a comment.