Week 1 Develog - Player movement.


Week 1: Player Movement

Player movement mechanics: 

The spirits light, is a top down 2D game, the player is free to move in all 8 directions around the compass using WASD!! 
This week I worked on getting the player controls, animations and a basic shooting mechanic.
For the controls I used the 8 way movement script that was provided in the unity tutorials!!

In game walk animation

Ive commissioned a friend to make the in game sprites, at current the player is using idle animations in replacement for movement but will soon have a full walking animation!

walk sprite sheet

Walking animation sprite sheet that is being worked on - Commissioned from a friend

Another thing that came with working on player movement was making sure the camera tracked the player! 
To do this i used the cinemachine! It was tricky to get working at first, as I didn't have a tile map down, and was confused at why it wasn't working. Once i put down a temporary tile map, the camera followed the player around the map nicely! 

The tile map I'm using while working on my own is the Grass & Road Tiles by CardinalZebra on itch.io

I also had issues with the player being massive compared to the game world but after messing around with the PPU in the inspector, I think I've come up with a nice ratio! The player is now about two grass tiles tall! 

Player shooting mechanics:  

As the game involves a magic fighting mechanic, the player is required to have some sort of way to shoot magic! To do this I used the PlayerShooting script from the unity tutorials. At the moment I'm using the same bullet prefab that was used in the tutorials.  I'm yet to set up that the player faces the direction they are shooting in but hopefully done soon! 


Feedback: 

I received lots of excellent feedback this week during the class on Thursday!! and that the movement was working as expected!! 

Leave a comment

Log in with itch.io to leave a comment.