Please find the project files for this tutorial attached.
Any questions or issues please let us know.
Thanks
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 ► https://www.youtube.com/playlist?list=PLx7AKmQhxJFajrXez-0GJgDlKELabQQHT The project files are available to our patrons here: ► https://www.patreon.com/posts/80357698 Want to follow along? This project is a good starting point ► https://www.patreon.com/posts/78946679 The final script can be found here ► https://dotnetfiddle.net/FlPuDt Help support our work: ► Patreon: https://www.patreon.com/ketragames Follow us: ► Ketra Games: http://www.ketra-games.com ► Patreon: https://www.patreon.com/ketragames ► Twitter: https://twitter.com/ketragames ► Facebook: https://facebook.com/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