--track0:時間,0.01,100,0.50,0.01 --track1:ズレ間隔,0,1000,0.50,0.01 --track2:距離,0,9999,0,0.01 --track3:角度,-360,360,0,0.01 --check0:透明度,1 --dialog:IN/chk,chk1=1;OUT/chk,chk2=1;回転X,local rx=0;回転Y,local ry=0;回転Z,local rz=360;拡大率/chk,chk3=0;拡規制[0-1],local zmc=1; ------------------------------------set local t0=obj.track0 local t1=obj.track1 local t2=obj.track2 local t3=obj.track3 local sw=obj.screen_w local sh=obj.screen_h local oi=obj.index+1 local on=obj.num ------------------------------------set2 if(oi==1)then if(moji==null)then moji={} end end moji[oi]={obj.w,obj.ox,obj.oy,obj.rx,obj.ry,obj.rz} local num=(oi-1)*t1 local ent=1-obj.time/t0+num if(ent<=0)then ent=0 end num=(on-oi+1)*t1 local ext=1-(obj.totaltime-obj.time)/t0+num if(ext<=0)then ext=0 end ------------------------------------script local dst=t2 local ang=t3 local r=math.rad(ang-90) local cs=math.cos(r) local sn=math.sin(r) if(ent>0 and chk1==1)then obj.ox=moji[oi][2]+dst*cs*ent obj.oy=moji[oi][3]+dst*sn*ent obj.rx=moji[oi][4]+rx*ent obj.ry=moji[oi][5]+ry*ent obj.rz=moji[oi][6]+rz*ent if(chk3==1)then obj.zoom=obj.zoom-ent if(zmc==1)then if(obj.zoom<=0)then obj.zoom=0 end end end if(obj.check0)then obj.alpha=obj.alpha-ent if(obj.alpha<=0)then obj.alpha=0 end end elseif(ext>0 and chk2==1)then obj.ox=moji[oi][2]+dst*cs*ext obj.oy=moji[oi][3]+dst*sn*ext obj.rx=moji[oi][4]+rx*ext obj.ry=moji[oi][5]+ry*ext obj.rz=moji[oi][6]+rz*ext if(chk3==1)then obj.zoom=obj.zoom-ext if(zmc==1)then if(obj.zoom<=0)then obj.zoom=0 end end end if(obj.check0)then obj.alpha=obj.alpha-ext if(obj.alpha<=0)then obj.alpha=0 end end end --[[http://madeinpc.blog50.fc2.com/]]--