Skip to main content
This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
August 7, 2022

imo:

 

1. you should write your own logic, or

2. hire someone to do this for you

 

because that's going to take a significant amount of time to encode.  (ie, more than 1 hour to encode both the upper and lower beads.)  and btw, your upper beads are all in the incorrect starting position.

 

to get your started:

 

// use an array of arrays to enumerate the lower beads

var lbeadsA = [ [this.lbead00,..,this.lbead03],[this.lbead10,...,this.lbead13],..,[this.lbead30,..,this.lbead33] ];

// use an array to enumerate the upper beads

var ubeadsA = [this.ubead0,...,this.ubead1];

 

// list end positions. you must enable multiframe bounds in the settings to access an object's size in createjs

var end_u = this.beam.y-this.ubead.nominalBounds.height/2-this.beam.nominalBounds.height/2;  // all objects using center reg point

var end_lA = [];

 

for(var j=0;j<4;j++){

end_lA[j] = this.beam.y + this.beam.nominalBounds.height/2 + this.lbead00.nominalBounds.height/2*(j+1);

}

 

p.s. if you want to hire someone, send me a private message.