Player Movement


The player is Gooby, which I animated by creating a movement sprite sheet, which I later sliced in Unity. When it came to animating, I created two player controllers, which were attached to two separate player prefabs, and I used the blend tree approach, where the animation changed depending on the direction they are traveling. I created two prefabs because there is only one mini game where the player will be shooting, and I wanted to keep the animations and other components separate. The prefabs would allow for ease in adding separate components later on.

The shared components between the two player prefabs were,

  • Sprite Renderer
  • Rigidbody2D, with gravity scale set to 0.
  • Animator, with their different controllers
  • Eight Way Movement (script), taken from a previous tutorial.
  • Polygon Collider 2D

I made one player prefab with these base components and then duplicated it to make another prefab, to be able to add different components and scripts to each of them. 

I wasn't able to present the two prefabs to my peers, because changes to the other prefab weren't made yet.

Feedback:

The most common feedback for improvements was,

  • Get rid of the white outer edge on the sprite
  • Make the character a bit smaller
  • Making a more consistent diagonal movement, because as seen in the GIF the character doesn't always have an animation for moving diagonal (e.g. when A+S is pressed)

Overall these improvements are most likely easily fixed, I will attempt to edit out the white using photoshop, I can easily reduce the size of the character, and additional animations will be added for improving the diagonal movement. I was quite happy to hear that most people liked the sprite, and found the movement speed and controls very smooth.

Files

Build.zip Play in browser
9 days ago

Leave a comment

Log in with itch.io to leave a comment.