-
grid movement, transition from order to random
having a lot of trouble figuring out this problem:
i have a grid tile(64 X64) layout in a composition (1024X576) using expressions below.
how is it possible to have v1 to transition from this value to a random grid movement expression after (time>t); all pieces moving randomly in grid manner from v1 to outside of comp?
would like to achieve a grid puzzle shuffle(in/out) effect 🙂
Thanks~!
compo=[1024,576];
t=2;
hom=1;
origin = [32,32];
hDist = 64;
vDist = 64;
numCols = 1024/64;
myCol = (index-hom)%numCols;
myRow = Math.floor((index-1)/numCols);
v1=origin + [myCol*hDist,myRow*vDist];
if(time<t)
v1
Sorry, there were no replies found.