Unity Learn home
View Tutorial Content

Lesson 2.2 - Food Flight

Tutorial
Beginner
+10 XP
1 Hour10 Mins
(26447)
Overview
Skills
For Educators
Summary
Overview:
In this lesson, you will allow the player to launch the projectile through the scene. First you will write a new script to send the projectile forwards. Next you will store the projectile along with all of its scripts and properties using an important new concept in Unity called Prefabs. The player will be able to launch the projectile prefab with a tap of the spacebar. Finally, you will add boundaries to the scene, removing any objects that leave the screen.
Project Outcome:
The player will be able to press the Spacebar and launch a projectile prefab into the scene, which destroys itself when it leaves the game’s boundaries. The animals will also be removed from the scene when they leave the game boundaries.
Select your Unity version
Last updated: December 30, 2023
2022.3
2021.3
2021.2
2021.1
2020.3
2020.2
2020.1
2019.4
2019.3
2019.2
2019.1
2018.4
Language
English
Overview Video
Overview
Lesson 2.2 - Food Flight
0 Secs
Lesson 2.2 - Food Flight