I am trying to create a very basic sprite image.
First off i have an existing image (Width=100px, Height=100px).
I will be looping through this image betwee
declare a variable at 3000, if you put in a picture of width 250 take that away from the variable, keep doing this, this also allows you to decide if there is enough space left on that line for your next picture by seeing if the number left is larger than the width of the next picture. every time you start on a new line set the variable back to 3k and start again. solved