
In this lesson, we use Sorting Layers. We add more GameObjects for the Bird to fly in front of, or behind, and see how easy it is to control which GameObjects are in front of others. Then, we finish laying out our scene by adding the rest of the GameObjects we’ll be using in the game.
Since our gameplay has obstacles on the way to the Worm and back, what happens when the Bird hits one of them? At the moment, nothing. None of the obstacle GameObjects has a collider component, so there’s no way to detect when a collision occurs. That’s pretty easy to fix however, and that’s what we do in this lesson. We start by reviewing the 4 types of colliders available in 2D, then we implement some of them, and write just a few lines of code to control how the Bird will respond.
In this lesson, we show how to move between the Animations that we made in the last video. We want the Bird’s wings to move when the Bird is flying, and then stop when the Bird returns to the launch tree. Unity provides an Animator Controller that allows us to control the Animations, as well as the Visual Tools to help configure the Controller. We use the Animator Window to create the transitions that allow us to move between the Animations, and then we write just a few lines of code to control these transitions in the game.
This course continues the development of the 2D game from the Intro to Game Development using Unity - Part I course and you'll learn how to use more of the powerful built-in capability that Unity has by adding exciting features to your game.
Physics, particle systems, audio, animations, scoring - these topics may seem complex, but the step-by-step approach in this this course makes them easy to understand. You'll be flying the bird with simple taps (mouse clicks) to catch the worm, and avoid colliding with other game objects along the way. And the fun you'll have by adding a flying animation to the bird and implementing sparks when it hits an obstacle will bring added excitement to the game while adding to your game development skills.
Most of the scripting to implement these advanced features is done with just a few lines of code! Once you're finished with this super fun course, you'll be fully prepared to understand the vast amount of documentation and tutorials available on Unity to take your game development skills to the next level if you choose to do so. You'll also be ready to rapidly launch into learning the exciting world of Augmented, Virtual, and Mixed Reality (AR/VR/MR) development and more.
(BTW, the 2D game developed in this series is based on the Flappy Worms game on Google Play).