Infinity Background with camera box collider 2D

Hello everyone.

I need help with my game script.

I’m not familiar with C #, I’m migrating from C.

Anyway, I’m developing a game where the player will roam the universe, for that I need an infinite background.

In the game the camera follows the player and the scene does not move. Move as the player moves. So most tutorials do not apply as there is no movement in relation to the background.

My solution was to use Box collider 2D (as I saw in other tutorials), and when the camera collides with the box collider it generates another background.

Ohh, the player can move in all directions.

Hello Venzk3 and welcome to Unity forums and the world of Object Oriented programming.

Would you mind being a bit more specific with your question, as I don’t actually see a direct question in your post.

Are you having a problem with your implementation. For example is some part of what you described not working well?

Hey! Thanks for the answer.

So … I’ll try to explain a little about the gameplay.

The player is a planet and is moving through the universe. OK? However, I have to create an infinite background that doesn’t move. Because the background will move ONLY if the player moves.

I’m inspired by this game here:
https://www.youtube.com/watch?v=TU5xT0MwnaM