Posts

Showing posts from March, 2021

Tutorial 07

Image
  (image of this weeks tutorial) I have finally reached the end of the Unity Tutorials with the last two tutorials being Audio and Build, Run, Distribute. For the Audio tutorial I first started by making an empty game object and adding an audio source to it. I added some looped music and set spatial blend to 2d so the sound can be heard everywhere. I then went on to one shot sound and added sound for when health is collected. I then added some spacilized sound to the robot. I then moved on to fixing attentuation by making a child gameobject to the camera and adding an audio listener to that.  The last tutorial was pretty straigh forward, I learned how to edit the player setting and set them up to how the tutorial showed me and then I built the game from the build settings. After it was built I played the .exe file and went on to try out the game I had made!

Tutorial 06

Image
(an image showing the title of the tutorial)  This week for my unity tutorials I learned about user interfaces and heads up displays as well as Dialog Raycast When learning about user interfaces and heads up displays, I first created a UI Canvas. I then learned about the rect transform which is like transform but with an ui element and I kept an overlay for the screen space. I then used the canvas scaler and set it to constant pixel size. I added an image to the ui and went to editing the ui , resizing my image, anchoring the image to the top corner. I then added a portrait and created the healbar along with its scripts. I really found this part interesting and it touched on some of the things I had to self learn for the game we are making for group project. I definitely found this insightful. For the dialof raycast tutorial I first created a new character named Jambi, who is a frog that give Ruby her mission. I then wrote up some raycasting script for when the plater is in front of th

Unity Tutorial 05

Image
  (image of one of the tutorials I followed this week) This week for my unity tutorials and in creating Ruby's Adventure I followed two more tutorials, Camera - Cinemachine and Visual Styling - Particles. For the first part I added and installed the cinemachine package to the project and then set it up. I then learned that I will be using the orthographic camera mode since the game is in 2d. I then put Ruby the main character in the follow property on the vcam inspector and made the world bigger. I then set a camera bound so that it doesn't go outside the map.  I then moved on to visually styling particles. I first prepared the sprites by slicing the sprite atlas and then I created a new smoke effect particle. I added some randomness to the particles using the size and speed constants and made them fade away with the colour gradient and size over lifetime. I made a prefab from the smoke effect and added it to the robot prefab and then fixed the smoke movement to stop when the r