First post here. Great forum, I have learned so much from the many posts.
I'm a complete newbie to PC coding, C++ and SFML, but loving it so far!
If I am executing a loop like this, am I generating copies like the Sprite tutorial warns of?
Ignore the Scale/Center stuff, they're in there for testing.
sf::Image Ball;
if (!Ball.LoadFromFile("ball.png"))
return EXIT_FAILURE;
---------------------------------------------
for (i=0; i<20; i++)
{
sf::Sprite Test(Ball);
Test.SetColor(sf::Color(55, 55, 55, 255));
Test.SetPosition(TestX[i], TestY[i]);
Test.SetScale(.3f, .3f);
Test.SetCenter(28, 21);
App.Draw(Test);
TestY[i] += Speed / 6;
if (Speed > 0 && (TestY[i] > 625)) TestY[i]-=640;
else
if (Speed < 0 && (TestY[i] < -30)) TestY[i]+=640;
}