Problem with loop to not have the first picture

I have a list of asteroids but the name is not starting with 0
so I need to loop into an array the assets
but it seems the first isn't rejected from the list when I say 'start:1"


so I thing it is maybe a bug?

check the bug into this image with 3 examples
https://i.imgur.com/bYe6DZo.png
my file

You made it to the step of 1. The start is one more parameter over. The order of the parameters has changed due to the interval being added.

I often find it is easier to loop the number of times and then if you need i starting at 1 then just add 1 to i.

loop(6, i=>{
  new Pic("asteroid0"+(i+1)+".png").reg(CENTER).loc(rand(W),rand(H));
});
1 Like