Unity Learn home
View Tutorial Content

Lesson 3.2 - Make the World Whiz By

Tutorial
Beginner
+10 XP
1 Hour10 Mins
(18298)
Overview
Skills
For Educators
Summary
Overview:
We’ve got the core mechanics of this game figured out: The player can tap the spacebar to jump over incoming obstacles. However, the player appears to be running for the first few seconds, but then the background just disappears! In order to fix this, we need to repeat the background seamlessly to make it look like the world is rushing by! We also need the game to halt when the player collides with an obstacle, stopping the background from repeating and stopping the obstacles from spawning. Lastly, we must destroy any obstacles that get past the player.
Project Outcome:
The background moves flawlessly at the same time as the obstacles, and the obstacles will despawn when they exit game boundaries. With the power of script communication, the background and spawn manager will halt when the player collides with an obstacle. Colliding with an obstacle will also trigger a game over message in the console log, halting the background and the spawn manager.
Select your Unity version
Last updated: January 04, 2024
2022.3
2022.2
2022.1
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 3.2 - Make the World Whiz By
0 Secs
Lesson 3.2 - Make the World Whiz By