Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Downloads

  • Top-Down-2D-Car-Controller Part 5.zip

Missing 1 full-res photo, 1 file, as this post has not yet been imported.

Content

Part 5 of the Top down car controller is now available on YouTube.

The code for this project is located on the first post and has been updated with the new features. You can also find the project for this episode below.

Files

Previews only

Bridges & tunnels in how to create a 2D Arcade Top Down Car Controller in Unity tutorial Part 5

This is the 5th part of our 2D arcade style top down car controller in Unity from scratch. If you missed part 1 you can view it here: https://youtu.be/DVHcOS1E5OQ​ Download complete project on Patreon: https://www.patreon.com/posts/top-down-car-49913192 In this part of the video we will add bridges and overpasses. We will explain how you can use sprite masks to show an outline of your car when it is driving under other objects such as trees, bridges or tunnels. We'll explain how sprite mask interaction works as this is an essential part when faking camera depth. After this tutorial you will learn how to dynamically change sprite sorting to allow the car to drive over or under objects. This technique can be used in any top down game where you need to add support for bridges. 📍 Support us on Patreon to help us make more videos like this one https://www.patreon.com/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. Join Our Community! We look forward to welcoming you. Discord: https://discord.gg/AyYtKXT​ Twitter: https://twitter.com/prettyflydev​ This component is used in Total Arcade Racing which you can play on 🖥 Steam ► https://store.steampowered.com/app/1264730/Total_Arcade_Racing/ 📺 Nintendo Switch ► https://www.nintendo.com/games/detail/total-arcade-racing-switch/ 🚗 PlayStation ► https://store.playstation.com/en-us/concept/10005454 🎮Xbox ► https://www.xbox.com/en-us/games/store/total-arcade-racing/9p0rz0wclmfm Music: https://incompetech.com/wordpress/2019/06/2246/ Assets: https://www.kenney.nl/ Chapters: 00:00 Intro 00:13 What we'll cover - Bridges 00:27 Trees with sprite masks that you can drive under 01:27 Adding outline to the car and handle sprite mask interaction 04:01 Adding a bridge with tile maps 07:46 Setting up triggers to handle sprite sorting 12:10 Programming sprite sorting with support for passing under/over bridges. 17:53 Adding colliders to the bridge 22:24 Programming colliders with support for passing over/under bridges. 30:06 Enabling/Disabling car outline rendering 32:26 Adding fake depth with shadows and adjusting colors. 36:00 Fix skid marks so they work on and under bridges. 43:26 Example - Total Arcade Racing #PrettyFlyGames #LearnUnity #UnityTutorials #gamedev

Comments

No comments found for this post.