Is there a way to create a few clones and move them all at once. Is there a function like: object.clones.y-=20
“object.clones” returns an array of all clones.
To accomplish what you need, I recommend using a forEach(…) function to make changes to every element inside of the clones array at once.
ex:
object.clones.forEach(function(c){ // c = each clone inside the array, you can change this with another letter or name
c.y+=20; // change c's y position by 20
})
1 Like
Thank you!
1 Like