Back to Browse

Endless Runner in Unity - Platform Generator Tutorial

1.1K views
Mar 22, 2024
9:05

In this tutorial, I will teach you how to make an endless platform generator in Unity. I will also teach you the easiest way you could make your own endless runner, so you can make an easy game with a few codes. First of all, the platform generator requires a special script that will be part of the entire project. In the previous video, I have shown the easiest way to set-up the project for an Endless Runner game. This project works fine, but I would like to show you the way how to actually make it look like an endless runner. You need prefabs of platforms, you can make them as an empty parent object or you can put a platform inside it (but I would recommend the first option) and copy multiple platforms for multiple prefabs. To generate the platforms, you need to add the invisible object that will be the trigger for adding new platforms to the scene. You need to add the trigger for adding new platforms, copy it into the prefab, but first make an empty transform object for platform generation. Set the Platform Generation point to something like -0.47 and you are good to go. Now you can have the platforms to be generated easily and in the same height as the main platform. Support the Creator of Kozmobot on the social networks! CHECK OUT MY WEBSITE: http://kozmobot.com INSTAGRAM: https://www.instagram.com/kozmobot.channel TIKTOK: https://www.tiktok.com/@kozmobot.channel

Download

0 formats

No download links available.

Endless Runner in Unity - Platform Generator Tutorial | NatokHD