Checkpoints, & laps - How to create a 2D Arcade Style Top Down Car Controller Unity tutorial Part 6

Опубликовано: 06 Октябрь 2024
на канале: Pretty Fly Games
6,827
94

Download complete Unity project 👉   / code-access-how-58219986  . This is the 6th part of our 2D arcade style top down car controller in Unity from scratch. If you missed part 1 you can view it here:    • How to create a 2D Arcade Style Top D...  ​

In this part of the video we will cover how to track the different cars position as they drive through the race. We will add a basic lap counter which tracks how many laps each car has driven. We'll introduce c# Action Events which makes life as a game dev a lot easier. Then we will also show how to use a UI canvas to display the cars position using world space so it hovers above the car.

📍 Support us on Patreon to help us make more videos like this one   / prettyflygames  

With this tutorial series you’ll be able to make a physics based race game with lots of drifting in no time. Car movement is often a challenge for a lot of developers but using simple tricks is often the best solution. If you want to try a game which uses this mechanic then feel free to take Total
Arcade Racing for a spin.

📍 Support us on Patreon to help us make more videos like this one   / prettyflygames  

Join Our Community! We look forward to welcoming you.
Discord:   / discord  
Twitter:   / prettyflydev​  

This component is used in Total Arcade Racing which you can play on
🖥 Steam ► https://store.steampowered.com/app/12...
📺 Nintendo Switch ► https://www.nintendo.com/games/detail...
🚗 PlayStation ► https://store.playstation.com/en-us/c...
🎮Xbox ► https://www.xbox.com/en-us/games/stor...

Music: https://incompetech.com/wordpress/201...
Assets: https://www.kenney.nl/

Chapters:
00:12 Intro
00:13 What we'll cover in this tutorial
00:25 Adding checkpoints
03:31 Cars ability to detect checkpoints
08:41 Tracking car positions with events
12:30 Counting laps
16:35 Sorting out which car is first
20:18 Add UI to show cars position
27:54 Fixing a tiny bug in the bridge handling
43:26 Example - Total Arcade Racing

#PrettyFlyGames #LearnUnity #UnityTutorials #gamedev