16
Graphics / Re: Is there a function to sort through pngs?
« on: September 20, 2022, 08:48:24 pm »
Is there a faster, quicker, or automated way to do this such as a 'for' or 'while' function/loop?
Yes.
Pseudocode but something like:
for (int i = 0; i< myVector.length; i++)
{
myVector[i].loadFromFile(i + ".png");
}
{
myVector[i].loadFromFile(i + ".png");
}
Side note, this is a very basic "intro to programming" type of question, so I would recommend you forget about SFML for a week and just read a beginners book or several hours of youtube videos on coding first.