Skip to main content

UNITY TUTORIAL 05

This week I was introduced to the package manager and installed a package called Cinemachine which would allow the camera to follow Ruby around the game. I created a new game object by adding a 2D camera from Cinemachine. The new camera view made some of the area around the game scene visible so I had to paint more of the tilemap, with water along the borders to make it look like an island. I applied Ruby to the "follow" section of the Cinemachine virtual camera in the inspector which made Ruby the centre of the screen as the camera follows her. I added the Cinemachine confiner to my virtual camera to prevent the camera from showing the area outside of the game scene. 

In the second set of tutorials, I learned how to add a smoke effect to the robot. I created a new particle system and activated the texture sheet animation in the inspector then changed the mode to sprites. I added the two smoke effects in the spaces below it. I edited the start frame in the texture sheet animation, the angle and radius in the the shape section, and the start lifetime, start size, start speed in the particle system's main section to make the smoke look slightly more natural. I also adjusted the colour in the colour over lifetime section and the size curve in the size over lifetime section to allow the smoke to fade out. I applied the smoke effect to the robot's head and edited the code in the enemy controller script so that the smoke stops when Ruby fixes the robot.

Screenshot of my work in Unity.


Comments

Popular posts from this blog

FIRST PLAYABLE

Continuing with the creation of my game, I resized the player character to make them even smaller based on a comment that was left on my last project blog. I also repositioned the trees to make the space slightly narrower and added some flowers to bring some colour into the scene. With reference from the animal feeding game tutorial, I was able to get the player moving left and right by clicking the arrow keys. I brought in rocks and a branch for obstacles but I need to apply a SpawnManager script and get them to spawn randomly during gameplay. I also have to figure out how to get some branches falling from the trees and bringing in power-ups and points too. Screenshot from Unity3D of my game production.

PROTOTYPE

I browsed through the Unity asset store to find a package with nature objects that I could use to set up the scene for my infinite runner game. I downloaded the Nature Starter Kit 2  and started building my scene in Unity. This was a little time consuming but I'm satisfied with the way it turned out. I upscaled the trees and bushes, keeping in my mind my initial idea of gaining inspiration from the movie "The Secret World of Arrietty." I got the character from a tutorial I have completed for this module before and positioned the camera behind it. Screenshot of my work in Unity3D. With reference to the lesson 3 Unity tutorial, I started coding by creating the PlayerController script. I used the AddForce method and allowed the player to jump by clicking the spacebar. I declared two public variables to be able to adjust the gravity and player's jump force. Looking into the player's animator controller, I applied a static running animation. I then added a jumping ani...

GAME FUN

Games can be described by the 3 components Mechanics, Dynamics, and Aesthetics (MDA) or otherwise stated as rules – system – “fun” . The three reading selections this week and the synopsis below all address the term “fun” in relation to game design. There are eight types of Fun outlined by the MDA. These eight are both a source of reference and player experience that blend together in many ways, and essentially what makes a game engaging and enjoyable. Figure 1: Eight kinds of Fun Both Oxford and Merrian dictionaries define Fun as an enjoyment and delight but within the context of a game, it refers to a form of pleasurable entertainment. MDA papers define the '8 kinds of fun';  sensation, fantasy, narrative, challenge, fellowship, discovery, expression, and submission. These remain a source of reference and possibly the most popular list of player interactions combining in various forms to attract each player to a particular game. Nicole Lazzaro presents four types of fun that...