Hi
I am not sure of the term for this.
But I want to create a square 2D map.
When you walk to any side of it, you end up coming out from the other side.
However the camera is always centered on player.
Any ideas how to do this?
Thanks!
Hi
I am not sure of the term for this.
But I want to create a square 2D map.
When you walk to any side of it, you end up coming out from the other side.
However the camera is always centered on player.
Any ideas how to do this?
Thanks!
You could make empty GameObjects on the sides of the map, set them to have box colliders with “Trigger” box ticked, then give them a script that get’s the incoming collider and if the collider’s tag is ie “Player” set the player’s location on the other side of the map(by moving the player on x/z axis by the map width/length)
Your player can move in any direction freely or just up, down, left and right by 1 square?
– XaverixYour world should be divided on 4 sections. Each time when player moved close enough to border of world. Just move opposite sections in front of player (and everything inside those sections)
– Artaani