Hi Im really confused about how to get access to sprites that have been created within a function?
If i have 1 sprite, i can declare a var global OUTSIDE of any functions, then use this variable in a function to create a sprite. Thats fine, i can then access it using the variable where ever.
But im creating the sprites in a loop, say 10 for instance and i want to be able to give each sprite the id 100+loopindex. This is done in a function.
function createMySprites()
FOR I=1 TO 10
createSprite(100+I,image)
next I
endfunction
So i have 10 sprites with ID's 100 TO 110. But i cannot access them using the ID's 100 - 110? How can i get access to them?
Thanks
Andy