This week I worked on animation cycles for the character turning, updated the movement code, updated the shooting code, and created a running animation. First I started out in asperite again and had to create a sprite based on each direction so simply 8 sprites for each direction including diagonals. The character animation will play frame by frame of each direction which will create the illusion of turning. The character will also have a walking animation based on each direction which will look a little different for each way the player moves. This will be controlled in unity by a blend tree which takes the input of the player and will output the animation based on their direction. I also updated the movement code which will now use the animator function which can access the blend trees to update the players animation instead of doing it by code. I also fixed the shooting code which now shoots based on the direction of the cursor instead of just one direction and will also have to create the direction animation for shooting which I probably will just use the characters hands instead of creating a staff and having to re-work all of the movement animation. The movement and animation looks pretty good so far and once its all put together will make the game feel snappy.
Image 1: Creating a horizontal face of the character for when the player is moving right
Image 2: All directions of the character
Image 3: The start of the animation turning cycle
Image 4: The walking cycle (I think I can upload it as a gif, but I am not sure how)
Image 5: The updated movement code which uses animator function in unity
 |
| 1 |
 |
| 2 |
 |
| 3 |
 |
| 4 |
 |
| 5 |
Comments
Post a Comment