Skip to main content

Unity Tutorial 05

Unity Tutorial 05

Hi and welcome back! Today I will be writing about the "Collision Decisions" and "Challenge 2 & Quiz Play Fetch" Unity tutorials. These tutorials were a continuation from last weeks. As I didn't do last weeks, I had a lot of work to catch up on! Fortunately, I completed the first tutorial without any problems. The second part was a bit more difficult and I didn't get all of it correct.

In "Collision Decisions" I made it so that animals were spawning randomly at different times on the screen. I made it so there was a timed interval between each animal when walking down the screen. I did this by using InvokeRepeating() in the script.

I added colliders so that I could feed the animals with all the different food.

When all the animals get past the end of the scene, it says  "Game Over". The end of the scene was when they got past the player.

Screenshot of Unity

The "Challenge 2 - Play Fetch" tutorial was slightly more difficult. This was a follow up of the last tutorial. At the beginning of this tutorial, the dogs were spawning into the air which was the first problem that needed to be fixed. I also had to fix how the green balls spawned. I needed to ensure the balls were only destroyed when they went into contact with the dogs.
I managed to get the dogs to spawn correctly using script. After I did that, I came across a problem. No matter what I changed, I still received an error message. Im not a big fan of writing script if its not obvious already. I tried a few times but I had to call it a day. Happy with the effort I put in though.



    Comments

    Popular posts from this blog

    Unity Tutorial 06

    Unity tutorial 6  Hi and welcome back to my blog! Today I will be writing about a new set of Unity Tutorials about “Jump Force”, “Making the World Whiz By” & “Don’t Just Stand There”. In the first tutorial we created a new prototype, added a new background, character and obstacle. This was a fast paced and side scrolling runner game where the player had to get the character to jump over obstacles and avoid crashing into them. In these tutorials I also learned how to add music and sound effects. I learned about the spawn manager too, which is basically what controls spawning objects. Image 1: Screenshot of Unity Image 2: Screenshot of script In the second tutorial I used code to make the background of the game move effortlessly with the obstacles. As I used C Script the background and spawn manager will stop once the player collides with the obstacle. And lastly, in the third tutorial, we created three more new animations. I found this difficult as I had ne...

    Week 09 Reading & Writing

    Week 09 Reading & Writing Hi again and welcome back to my blog! In this blog post I will reflect on all the reading and writing work I have done to date.  Overall, I have found the reading and writing assignments interesting and very useful. I have always found that summarising something after reading it allows me to take in the information better. By writing the blogs, I have definitely got a better grasp and understanding of what I was reading.  My favourite reading so far was  Lost Garden  by Daniel Crook  because I learned so many new things that I would never come across by myself. Crook discussed "Dunbar's Layers".  This is a suggested cognitive limit to the number of people with whom one can maintain stable social relationships. The average person can have up to 150 relationships but once you look into all the layers, it can drop down to just 5 intimate friends. This suggestion can then be applied to game design. He also talk...