Unity Tutorial 05
Image taken from my Unity. Source : Me |
This week, I of course learnt many new things in Unity that I can definitely implement into my own Unity project. The mechanics of the game have been figured out, now it was time to focus on the background, and triggering a "game over" message when the player collides with an obstacle. Starting with the background, I created a script to use to repeat the background endlessly, whilst resetting the background objects position, and having it on a seamless loop so it doesn't lag in the game.
Using script communication, I was able to create a halt in the background and object spawn once the player collides with the obstacle. I was also able to create a "Game Over" message that pops up in the console log, immediately after collision, indicating to the player the game is over.
Overall this weeks task was relatively easy to understand and fast to get through, it definitely took me less than an hour to complete.
Comments
Post a Comment