title: Why are there black lines between my sprites?
body: <p>I have a single pixel sprite. To this sprite I add four sprites, each a quarter of a square. To offset the sprites, all i do is change their anchor points. </p>
  
  <p>For example:</p>
  
  <p>top right square is at anchor: (0,0);
  bottom right : (0,1);
  bottom left : (1,1);
  top left : (1,0);</p>
  
  <p>I expected the sprite edges to meet perfectly so that it looks like one big square. Instead there are black lines between the edges of each square so it looks like I have placed four squares close together.</p>
  
  <p>I use texture packer to create a sprite sheet, containing the various squares.</p>
  
  <p>Is there some setting in cocos2d-x or some code I must change to get the sprites to align perfectly ?</p>
  
  <p>Edit: This is for cocos2d-x 3.1.1 and higher. Changing the anchor point is necessary and unavoidable.</p>
  
  <p>EDIT: I use sprite frames from a sprite sheet created using TexturePacker. This was the problem. See my answer below.</p>