2D Game Animation!

Across both Gary and Chris’ lessons, I worked on improving the feel of my game. The major addition to my platformer came in the form of animations which turned out to be not as hard as I had imagined them to be in the end. The first step was rather simple and that was actually importing the sprite sheets to Unity; upon setting the sprite mode to multiple, I sliced it into 512×512 sections and it sliced perfectly because when I made the sprite sheets in photoshop they were this size. After that all that was needed to do was to shift click all of the frames and drag them into 3 separate animations.

The next part included me working with booleans when linking the animations together using parameters as done in the animator seen below.

dddadaddadadadadadaf.png

For example, the transition from idle to running stipulates that the running animation plays when the parameter “running” is set to true. I worked through these links one by one until they were all transitioned appropriately. After this, I had to tie this all in via the player controller script we made when we started the game creation. The animations look very off and quite jumpy and delayed but they can be fixed when we learn to.

On the more game design side of things I decided that when I finished my animation I should start to add my textures in that I created last week and I really like how it is starting to look like already with just a couple of assets. See what the current game is looking like at the moment below.

fr.png

Along with the current screenshot I have recorded a GIF of what the current animations and gameplay of the level looks like so far.

ahd.gif That’s all for now with the 2D platformer.

Matty OUT!

Design a site like this with WordPress.com
Get started