The game I’m developing has side scrolling background.I have many background sprites and when the first background image exit from the bounds of screen, I add another background. when I add new backgrounds I simply check the width of background(all sprites have same width) sprite and,instantiate(while moving) after current background but it shows tiny line between background images.
renderer = mapObject.GetComponent<SpriteRenderer>();
mapWidth = renderer.bounds.size.x;
//instantiate new map to new position
addMap(newMap,new Vector3(mapWidth,0f,0f));
Is this problem occur because I instantiate the new sprite while moving the current one? or any ideas to solve this problem?