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
Post a Comment