Detecting Screen Bounds (Unity Tutorial | 2D Top Down Shooter)

Опубликовано: 22 Март 2023
на канале: Ketra Games
9,642
191

In this Unity tutorial we're going to look at how to detect whether game objects are on screen or not.

We’ll make sure that the player is blocked from leaving the screen bounds.

If the enemies wander off screen, we’ll make them wander back into view.

And when the bullets leave the screen, we’ll destroy them.

This is the ninth video in our series showing how to make a full top down 2D shooter game in Unity.

The playlist for this series can be found here
►    • Unity 2D Top Down Shooter for Beginners  

The project files are available to our patrons here:
►   / 80357698  

Want to follow along? This project is a good starting point
►   / 78946679  

The final script can be found here
► https://dotnetfiddle.net/FlPuDt

Help support our work:
► Patreon:   / ketragames  

Follow us:
► Ketra Games: http://www.ketra-games.com
► Patreon:   / ketragames  
► Twitter:   / ketragames  
► Facebook:   / ketragames  

Introduction - 0:00
Preventing the Player from Leaving the Screen - 00:40
Turning the Enemies Around If They Go off Screen - 05:36
Destroying Bullets When They Go off Screen - 08:29
Summary - 10:23

#KetraGames #LearnUnity #UnityTutorials #UnityTips


Смотрите видео Detecting Screen Bounds (Unity Tutorial | 2D Top Down Shooter) онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Ketra Games 22 Март 2023. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 9,642 раз и оно понравилось 191 посетителям.