title: Sprite array loop only shows 1 element
body: <p>Trying to get 4 clouds to move across the screen left to right. When I execute  I can see all 4 clouds are drawn at the positions given in the code. But after game starts only one cloud is moving across the screen; the other 3 never show.</p>
  <pre><code>const int NUM_CLOUDS = 4;
  Sprite clouds[NUM_CLOUDS];
  int position = 0;
  </code></pre>
  <p>In main:</p>
  <pre><code>Texture textureCloud;
  textureCloud.loadFromFile(&quot;graphics/cloud.png&quot;);
  for (int i = 0; i &lt; NUM_CLOUDS; i++)
  {
      clouds[i].setTexture(textureCloud);
      clouds[i].setPosition(0, position);
      position += 100;
  }
  bool cloudsActive[NUM_CLOUDS];
  for (int i = 0; i &lt; NUM_CLOUDS; i++)
  {
      cloudsActive[i] = false;
  }
  float cloudSpeed[NUM_CLOUDS];
  for (int i = 0; i &lt; NUM_CLOUDS; i++)
  {
      cloudSpeed[i] = 0.0f;
  }
  
  for (int i = 0; i &lt; NUM_CLOUDS; i++)
  {
     if (!cloudsActive[i])
     {
        srand((int)time(0) * 30);
        cloudSpeed[i] = (rand() % 200);
        srand((int)time(0) * 30);
        float height = (rand() % 450) - 150;
        clouds[i].setPosition(-200, height);
        cloudsActive[i] = true;
     }
     else
     {
        clouds[i].setPosition(clouds[i].getPosition().x + (cloudSpeed[i] * dt.asSeconds()), clouds[i].getPosition().y);
        if (clouds[i].getPosition().x &gt; 1920)
        {
           cloudsActive[i] = false;
        }
     }
  </code></pre>
  <p>}</p>