@Sin—h‚ê(XY) --track0:ׂ©‚³,1,120,5,1 --track1:U•,0,4096,50,1 --track2:‚‚³,0,4096,100,1 --track3:‘¬“x,0,4096,200,1 --check0:c̉¡,0 --dialog:—h‚ê—}§/chk,chk1=1;—}§ˆÊ’u[0-100],local yokuhosei=100;½ÞÚŽw’è[Angle],local ang1=0.00;“®‚«Œü‚«/chk,chk2=0;“§‰ß/chk,chk3=0;“§‰ßŒü‚«/chk,chk4=0;“§‰ß•â³[%],local alp0=0.00; -------------------------------------set local t0=math.floor(obj.track0) local t1=math.floor(obj.track1) local t2=math.floor(obj.track2)/100 local t3=math.floor(obj.track3) local sw=obj.screen_w local sh=obj.screen_h local ogvz=obj.getvalue("zoom")/100 ------------------------------------ obj.effect() local ow,oh=obj.getpixel() ow=math.floor(ow*ogvz) oh=math.floor(oh*ogvz) local len if(obj.check0)then len=math.floor(ow/t0) else len=math.floor(oh/t0) end local ang0=(360*t2)/len local lmt if(obj.check0)then lmt=ow else lmt=oh end if(obj.num>1)then ang1=ang1*obj.index end for i=0,len do if((i+1)*t0<=lmt)then ang=ang0*i+obj.time*t3+ang1 if(chk2==1)then ang=-ang end r=math.rad(ang) yure=math.sin(r) if(chk1==1)then dst=t1*(i/len-yokuhosei/100) else dst=t1 end if(chk3==0)then alp=1 else if(chk4==0)then alp=i/len+alp0/100 else alp=1-i/len+alp0/100 end end if(alp<0)then alp=0 end if(alp>1)then alp=1 end if(obj.check0)then xx0,yy0=ow*i/len,0 xx1,yy1=ow*(i+1)/len,yy0 xx2,yy2=xx1,oh xx3,yy3=xx0,yy2 x0,y0,z0=i*t0-ow/2,dst*yure-oh/2,0 x1,y1,z1=(i+1)*t0-ow/2,y0,0 x2,y2,z2=x1,dst*yure+oh/2,0 x3,y3,z3=x0,y2,0 else xx0,yy0=0,oh*i/len xx1,yy1=ow,yy0 xx2,yy2=xx1,oh*(i+1)/len xx3,yy3=xx0,yy2 x0,y0,z0=dst*yure-ow/2,i*t0-oh/2,0 x1,y1,z1=dst*yure+ow/2,y0,0 x2,y2,z2=x1,(i+1)*t0-oh/2,0 x3,y3,z3=x0,y2,0 end obj.drawpoly(x0,y0,z0,x1,y1,z1,x2,y2,z2,x3,y3,z3,xx0,yy0,xx1,yy1,xx2,yy2,xx3,yy3,alp) end end @Sin—h‚ê(XZ) --track0:ׂ©‚³,1,120,5,1 --track1:U•,0,4096,50,1 --track2:‚‚³,0,4096,100,1 --track3:‘¬“x,0,4096,200,1 --check0:c̉¡,0 --dialog:—h‚ê—}§/chk,chk1=1;—}§ˆÊ’u[0-100],local yokuhosei=100;½ÞÚŽw’è[Angle],local ang1=0.00;“®‚«Œü‚«/chk,chk2=0;“§‰ß/chk,chk3=0;“§‰ßŒü‚«/chk,chk4=0;“§‰ß•â³[%],local alp0=0.00; -------------------------------------set local t0=math.floor(obj.track0) local t1=math.floor(obj.track1) local t2=math.floor(obj.track2)/100 local t3=math.floor(obj.track3) local sw=obj.screen_w local sh=obj.screen_h local ogvz=obj.getvalue("zoom")/100 ------------------------------------ obj.effect() local ow,oh=obj.getpixel() ow=math.floor(ow*ogvz) oh=math.floor(oh*ogvz) local len if(obj.check0)then len=math.floor(ow/t0) else len=math.floor(oh/t0) end local ang0=(360*t2)/len local lmt if(obj.check0)then lmt=ow else lmt=oh end if(obj.num>1)then ang1=ang1*obj.index end for i=0,len do if((i+1)*t0<=lmt)then ang=ang0*i+obj.time*t3+ang1 if(chk2==1)then ang=-ang end r=math.rad(ang) yure=math.sin(r) if(chk1==1)then dst=t1*(i/len-yokuhosei/100) else dst=t1 end if(chk3==0)then alp=1 else if(chk4==0)then alp=i/len+alp0/100 else alp=1-i/len+alp0/100 end end if(alp<0)then alp=0 end if(alp>1)then alp=1 end if(obj.check0)then xx0,yy0=ow*i/len,0 xx1,yy1=ow*(i+1)/len,yy0 xx2,yy2=xx1,oh xx3,yy3=xx0,yy2 x0,y0,z0=i*t0-ow/2,-oh/2,dst*yure x1,y1,z1=(i+1)*t0-ow/2,y0,dst*yure x2,y2,z2=x1,oh/2,dst*yure x3,y3,z3=x0,y2,dst*yure else xx0,yy0=0,oh*i/len xx1,yy1=ow,yy0 xx2,yy2=xx1,oh*(i+1)/len xx3,yy3=xx0,yy2 x0,y0,z0=-ow/2,i*t0-oh/2,dst*yure x1,y1,z1=ow/2,y0,dst*yure x2,y2,z2=x1,(i+1)*t0-oh/2,dst*yure x3,y3,z3=x0,y2,dst*yure end obj.drawpoly(x0,y0,z0,x1,y1,z1,x2,y2,z2,x3,y3,z3,xx0,yy0,xx1,yy1,xx2,yy2,xx3,yy3,alp) end end --[[http://madeinpc.blog50.fc2.com/]]--