Wick editor 1.18
Hi guys, I have some troubles with a project with clones.
My project aims to create clones et makes them move with cos and others stuffs, I want to know if I can delete clones once wick generates them and how i can make that.
I can’t join you the wick project because I’m new here but i let you a part of the code which we talk about.
Thanks for reading me and sorry for my english.
-In Update tab
let fondClone = fond.clone();
fondClone.x = 360;
fondClone.y = 360;
/* RANDOM
for (let y = 60; y < 720; y = y + 60){
for (let x = 60; x < 720; x = x + 60) {
let h = random.float(0, 10);
let carreClone = carre.clone();
carreClone.x = x + h;
carreClone.y = y + h;
}
}
*/
console.log(Math.cos(anim));
var decalage = Math.cos(anim) * 100;
var marge = 0;
for (let y = 60; y < 720; y = y + 60){
for (let x = 60; x < 720; x = x + 60) {
let h = random.float(0, 10);
let carreClone = carre.clone();
carreClone.x = x + decalage + marge;
carreClone.y = y ;
}
marge = marge + 10;
}
anim = anim +1;
-In default tab
anim = 0;