Intermediate | 2h 11m | 1.20 GB | Project Files 16 MB | Software used: Unity 4.2
In volume 3 of the 2D Racing Game Series in Unity we’ll be working on creating the core gameplay functionality for the power ups.
We’ll get started by creating boundaries for the level to keep the player from leaving the game area. Then we’ll begin scripting the functionality of our powerups. We’ll learn how to properly assemble these prefabs and how to instantiate them when the player presses a specific button.
Then we’ll begin working on the projectile functionality where it will fly through space and destroy itself when it collides with any object or when it’s lifespan is exceeded. After that, we’ll take what we’ve learned and apply it to the trap and boost functionality. Once the powerups have been assembled, we’ll learn how to make each one affect the player in their own way.