Space / stars background with infinite distance

I’m making a 2d game with a top down view where the camera is mounted to the player. I want the player to be able to move forever in any direction and always see the stars / space background. Right now I’m using a tile map but obviously the player will eventually reached the end of it and start seeing the skybox. Am I going to have to programmatically load tilemaps as the player gets near the end of one (so they don’t see the skybox) or is there some easier way to do this?

Thanks.

A simple idea would be to parent a plane with a space texture to the camera, so it is always in view behind the player. Then, to add a bit of realism, you could create “star” particles that were stationary and instantiate the particle emitter every so often. This would give the impression that you are moving through the stars.

Edit: You might even attach a particle emitter to the player, and have it emit particles that move in the opposite direction of the player. To give the feel of increased speed, you could adjust the speed of the particles.

I’m not sure what you mean by tilemap, but if you just want to have the equivalent of an infinite plane with a tiled texture on it, you can fake that by moving the plane together with your camera, and change the tile offset of the texture so that the texture appears to stand still even though the plane moves.

Rune

Hi

I need to create a 3D game in my infinite space, how can I configure it (either by script [?]), for Unity 3d limits the view in the viewport. There are like?

Sorry my bad English.

=[