Pac-Man like map scrolling in Space Shooter tutorial game?
I can't think of any way to accurately describe it right now at 5AM. But what would you call the effect in Pac-man where you go out 1 side of the maze and pop back in on the other side? And is there any tutorials online about how to replicate that in Unity... Or especially within the tutorial Space Shooter game? Thanks.
Answer by Craftnime · Aug 26, 2015 at 11:22 AM
I can tell you the basic concept. Assuming you are only going to have these entrances going from the right and the left, you would need two of the exact same game character. These two game characters move equally. If you move one of them, the other will move the same amount in the same direction, like a mimic. These two game characters will be shifted a screenwidth apart, but their y axis would be the same. This means they can go out of the screen. If one of these main characters's x position goes a half screen width too right, it should get teleported to the other "main character's x position - a screenwidth". If one of these main characters's x position goes a half screen width too left, it should get teleported to the other "main character's x position + a screenwidth". Follow this EXACTLY and it will work well.