I would like to create a row of sprites aligned next to each other with random widths using an array
Something like this:
Where each X value defines the sprites's width
I know how to create the sprites and get the correct width from the array, but how do I align them correctly (at the end of each previous sprite) ? Is there a simple way using the same array ?