At the beginning the mainplayer is placed in the middle of the world and all the objects around him. Because the map is really big I set bounded on false so that all objects can move out of the visible part of the map and that those objects that are created outside can move in. In order to have a camera I let all objects move around the mainplayer so that it looks as if he would move and the camera would follow him. So, and my problem is that everything laggs around because there are too many objects in the world at the same time so I thought that the best solution is to remove all the objects that leave the visible part of the map and just recreate them when they are supposed to move back into the picture. I managed to remove all objects that leave map but I just dont know how to solve the other part of that Problem. Has someone maybe an idea?
