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

    Introduction

    Introduction to Me My name is Lauren Murphy and I am 20 years old. I live in Castleknock and have 4 people in my family including myself.  My favourite class last semester was Design Process and Practice. I have a big interest in graphic design and I really enjoyed learning about the principles and rules of design. My goals for this module are to improve my blog writing skills and successfully create a video game. Image 1: Boracay Beach During Summer I went on holiday to The Philippines. I travelled for 22 hours to Manila, where I stayed for 4 days. I then flew to Boracay and Cebu. Each place was amazing and different in their own way. I met a lot of people who were travelling alone around Asia. After listening to some people's experiences, I have decided I will definitely go back to Asia next summer. I also went to Hungary this Summer. Some of my friends were interrailing around Europe so I met them in Budapest for 4 days. I went to the famous Baths and also went on

    Game Idea Research

    Game Idea Research Hi again! After brainstorming a few ideas for my game, I have decided I'm going to stick to an adventure style. As I've said before in previous blog posts, I gained a lot of inspiration from the Crash Bandicoot and Spyro series. The user of the game will be able to walk around a virtual world. They can collect gems which will add to their score. There will also be different type of keys hidden around the world. Each key will unlock another part of the world to explore. Once the player unlocks an area, they will have to fight small creatures that are walking around. As the players score increases, their strength will increase. This allows the player to fight tougher opponents as the game goes on. The player's health will take a toll if hit by a creature they are fighting. The aim of the game is to beat the creatures and collect all the keys to unlock the entire world.  Image 1:   Minecraft Virtual World I hope to learn enough s

    Game Brainstorm

    Game Brainstorm Game 1:  My first game idea is to create an adventure game. As I said before, in blog about my favourite video game, Crash Bandicoot was my number one. A game similar to this would be ideal. There would be one character travelling through worlds, collecting objects and fighting villains. Other games similar to this are Ratchet And Clank and Spyro. I like the idea of the player having their own character and being free to travel around the world they're in. After watching some Unity tutorials, I have gathered knowledge on how to create the basis of these games. I have a lot more to learn, but I am looking forward to broadening my skills. Image 1: Crash Bandicoot  https://www.youtube.com/watch?v=F7G91RjVmvk Game 2:  The second type of game idea I came up with is a racing video game. I've taken inspiration from the playstation game "Micro Machines" and Nintendo game "Mario Kart". The game would have both multiplayer and solo options