I have a lot of stars (an array of sprites) that I draw on my background. But when the user starts another level it may need to get those stars' Texture from another Atlas. just before level restart I change all star sprite textures with setRegion, but sometimes 2 or 3 out of 500 stars don't change the texture properly and are drawn on the screen like a black rectangle:
for(int i = 0; i < stars.size() - 1; i++)
{
stars.get(i).setRegion(another_Atlas.findRegion("star_type1"));
}
How can I make sure all star sprite textures are changed properly?