Hi, i have a json with some data inside:
- url of an image
- position X
- position Y
- Id
all these elements must create a different sprite at runtime, for example:
http//:www.testimage.com/img1.jpg | 35 | 150 | 1
http//:www.testimage.com/img2.jpg | 75 | 190 | 2
http//:www.testimage.com/img3.jpg | 95 | 220 | 3
at runtime i need the system create the exact number of sprite of same type but with a different image loaded according with the first value of the array, so the first sprite will be created at 35,150 and then the image img1.jpg will be loaded and shown, the same process for the second one, and the third one with the other values.
So i tried to make a for each element loop to iterate and create the sprite, but the loopnever stops and continue foverer, i'm making something wrong maybe with the cycle?
Any help will be appreciated.
Thanks