I am trying to create new sprite objects just off to the side of the layout. They travel across the layout to exit on the other side. But as I want a stream of sprite objects, once each new object gets to a point inside the layout a new one is created off screen which then travels across to trigger the creation of another and so on. As I need each object to inherit a different image file's size and colours, I need to access the new objects unique id and give it a new image. The problem is I don't know how to do that.
I would do it this way only I need the image files to be loaded as generic items. Say for example I just wanted the file names to remain the same always but not the images. So any image can be called 001 and all I need do is load new images into my file folder without having to open the project up in C2. Though I will look into something similar to your example.
I am already loading an image from an URL. I need to load a different image for each consecutive create object instance. I am wanting a steady stream of images flowing across the screen with a different image each create object occurrence.
I'll test this but I am spawning/creating a new instance of the intial sprite. I need to have a different image loading on each instance. I tried doing this by using the UID but it just changes the lot of them to the next image rather than giving me the sprite requested for the separate sprites.
lukeo25 wrote:I need to have a different image loading on each instance. I tried doing this by using the UID but it just changes the lot of them to the next image rather than giving me the sprite requested for the separate sprites.
The only way to do that... is to use diffrent frames