So I want to have this looped or something to create more than one raindrop, how do I do that? I'm not really experienced in coding..
var ctr = 0;RIP english
var delay = 0; //this variable is used for delaying of each sprite, interval of each sprite next to another [spoiler]my gad i'm suck at english[/spoiler]
var timestart = 123043; //the time you want to start generating
while (ctr < 150) //number of raindrop to be generated (any number)
{
var spr = new Sprite ("sb/rain.png",Foreground,Centre);
var sx = rand(0,1000);
at (16)
{
spr.move(0,timestart + delay, timestart + delay + 1000, sx, -50, sx, 520);
spr.fade(0,timestart + delay, timestart + delay + 1000, 0.05, 0.2);
spr.scale(0,timestart + delay, timestart + delay + 1000,0.786,0.786);
spr.rotate(0,timestart + delay, timestart + delay + 1000,0.277,0.277);
delay = delay + 150; //ex. the distance between 1 white tick/line to 1 blue tick/line
ctr++; //increment by 1;
}
}