Unity Tutorial 06

For this weeks Unity, we had to follow along with Unit 3 of Create with Code tutorials.

3.1:

For unit 3.1, we had to set up scripts that would allow the player to jump when the space bar is pressed.  We learned how to change the background of the game to whatever image we wanted. Throughout this part of the tutorial, we added obstacles to the game and added a script to both the obstacle and the background which made it go to the left as if the character was moving. We prevented the player from double jumping and messed around with gravity to make sure the player wasn't jumping too high.


3.1 - Unity

3.2:

For Unit 3.2, we had to repeat the background so that it was an endless background for as long as the player stayed alive. We used a script to do this to save us from going into unity ourselves and duplicating the background loads of times. We ended this part of the tutorial with destroying the obstacles once they go off screen to make sure the game performs properly. We made an end game sequence for when the player hits a barrier. I had no problems with the tutorial so far apart from minor errors in code here and there. 


3.2 - Unity

3.3: 

For Unit 3.3, we looked at animations. we learned a lot about how animations work and how certain speeds can trigger a new animation like walking > running. We set up a death animation and made it that once the player hits an obstacle, there is a death animation. We added a script so that once the death animation is triggered, you can't keep jumping as it didn't look right for the game. I worked with animation quite a bit in last years game we had to make so this wasn't too difficult to follow!


3.3 - Unity

Overall I found these tutorials very helpful, they can get confusing if you miss a step or don't watch the videos for specifics so I make sure to watch instead of just reading the code underneath. Liking these tutorials so far!



Comments

Popular Posts