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 wen...

    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...

    Game Elements

    Game Elements This week's readings game me an insight on the questions that must be asked when thinking about; p layers, objectives, rules, resources, game state, information, sequencing, player interaction, theme and games as systems. I found the examples given for each of these very useful and gave me an idea of all the variations there are. Image 1:  https://pxhere.com/en/photo/948574 I think the "Three step process" given for critically analyzing a game will definitely come in hand: "1. Describe the game’s formal elements. Do not interpret at this point, simply state what is there. 2. Describe the results of the formal elements when put in motion. How do the different elements interact? What is the play of the game like? Is it effective? 3. Try to understand why the designer chose those elements and not others. Why this particular player structure, and why that set of resources? What would have happened if the designer had chosen differently?" ( h...