2D Seamless World Wrap
Hi, I am trying to make a seamless world wrap. What I mean by this is that the player can walk to the left or right forever and will eventually return the the start location.
A good example of this is the old Arcade game "Defender" link:video
I have looked around for an answer for this and all I can find is wrapping like asteroids, which I do not want. I don't want to just teleport the player to the other side because then there would be a point where he can't see in front of him anymore until he gets teleported.
Answer by meat5000 · May 07, 2016 at 11:02 AM
My guess is, use world bounds in conjunction with another camera. When your main camera detects the world bounds the other camera starts rendering the opposite side of the world, all lined up nicely to make a seamless picture.
If your world edge has a trigger collider you could use it to teleport objects to the other side of the world. Or you could slap in some manual 'collision' detection and do this yourself.
Your answer
Follow this Question
Related Questions
How to make an infinite floor 2D 0 Answers
World wrap, with player in center. 0 Answers
infinite jump when I use confiner, cinemachine,infinite jump when I use confinder 0 Answers
What is the best solution for infinite tile generation in a 2d top down game? 0 Answers
How do I create a randomly generated sidescroller that has an end? 0 Answers