I'm trying to recreate the a background using 240 horizontal lines so I can smoothly flip the image line by line (or column by column).
Other similar things would be breaking up an image into ~100 smaller images and reassembling them or "destroying" the image.
Damnae helped me out tons with getting things started but I'm still lost, so I'd like to start the discussion here rather than hidden in some other thread.
So, I feel like I need an array of sorts:
I can provide working script a little later, I just have to create each image in the loop and do absolutely everything in that single loop since I can't reference an of the images later.
Other similar things would be breaking up an image into ~100 smaller images and reassembling them or "destroying" the image.
Damnae helped me out tons with getting things started but I'm still lost, so I'd like to start the discussion here rather than hidden in some other thread.
So, I feel like I need an array of sorts:
var spritename = "";
var myArray = ["1.png","2.png","3.png"];
for (i=0,i<240,i++) {
spritename = i + ".png";
myArray[i] = new Sprite(spritename);
myArray[i].scale(0,0,9999,0.625,0.625);
return myArray[i];
}
function moveBG(spritename) {
for (i=0,i<240,i++) {
spritename[i].move(0,0,9999,0,0,640,0);
}
}
moveBG(myArray);
I can provide working script a little later, I just have to create each image in the loop and do absolutely everything in that single loop since I can't reference an of the images later.