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

Content


Hey!👋

Creating a screen wrap in Unity (teleporting objects on the other side of the screen when it goes over the screen border) is pretty easy and it gives the game this retro feel of Asteroids.

We will explore how to create a screen bounds script that can detect the collision of our object - to prevent it from leaving the game area. Next we will see how to use the same setup to create the screen wrap.

I hope that you will find this useful!

-Peter

Files

Previews only

How to create screen wrap in Unity 2021

In this video I want to show you how we can deal with screen bounds in Unity in a 2d game by creating a screen wrap effect like in the old-school Asteroids game. We will also create a general block further movement solution and it will all work for RigibdBody physics movement as well as for a simple Translation movement. @Jettelly Learn how to improve your game by creating custom shaders in Unity https://www.youtube.com/c/Jettelly Learn to write more maintainable code using Design patterns by making a 2d platformer game: https://courses.sunnyvalleystudio.com/ Scripts: https://github.com/SunnyValleyStudio/Unity-2D-wrap-around-screen-bounds Join the discord: https://discord.gg/RQEtYHz You can support me through Patreon: https://www.patreon.com/sunnyvalleystudio #unity2d #wrap-effect #sunnyvalleystudio

Comments

No comments found for this post.