make 4 ssc to one
i created a heart, using 4 ssc(see the attached presets..the one is in motion, the other not), is it possible to create this in one?
11 posts
init:What's wrong with it?
n=800;adjust=0.0099009900990099;
frame:
t=t-0.05;
index=0;
point:
part=
above(index,99)+
above(index,199)+
above(index,299)+
above(index,399)+
above(index,499)+
above(index,599)+
above(index,699)+; //what part of the heart are we drawing?;
fakei=(index%100)*adjust; //substitute this for where you have used i
r=fakei*2*$pi;
//Bein1;
x1=if(equal(part,0),fakei*0.2,x1);
y1=if(equal(part,0),fakei*0.6,y1);
//Bein2;
x1=if(equal(part,1),-fakei*0.2,x1);
y1=if(equal(part,1),fakei*0.6,y1);
//Torso;
x1=if(equal(part,2),0,x1);
y1=if(equal(part,2),-fakei*0.25,y1);
//Hals;
x1=if(equal(part,3),0,x1);
y1=if(equal(part,3),fakei*0.05-0.25,y1);
//Arm1;
x1=if(equal(part,4),fakei*0.3,x1);
y1=if(equal(part,4),fakei*0.2-0.25,y1);
//Arm2;
x1=if(equal(part,5),-fakei*0.3,x1);
y1=if(equal(part,5),fakei*0.2-0.25,y1);
//Kopf;
x1=if(equal(part,6),cos(r)*0.05,x1);
y1=if(equal(part,6),sin(r)*0.1-0.4,y1);
x=x1;
y=y1;
index=index+1;
//skip this line because it is jumping from one place to another
skip=equal(index,101);
You've got an extra plus there that'll cause an error.above(index,699)+;
This sets "skip" to 1 whenever fakei is 0, preventing the line from being drawn whenever the SSC jumps to the next segment.skip=bnot(fakei)