View Single Post
Old 17th June 2013, 18:20   #6
z33m
Junior Member
 
Join Date: Jun 2013
Posts: 22
I think value of 'v' maintains the last assigned value. ie. 'v' in frame section will be equal to last 'v' from the point section ie. when i = 1. I tried the following code

code:
init: n=800

frame: t=t-v*0.5;
reg01 = if(equal(reg00, v), 1, 0);

beat: t=t+0.3;n=100+rand(900);

point: d=D/n;r=(i-(t*3));
x=(atan(r+d-t)*cos(r+d-t+i));
y=((i+cos(d+v*1.2))-1.5)*1.7;
z=-(cos(t+i)+log(v)*cos(r*3))*3;
red=cos(r)+1;
blue=sin(r);
green=sin(i)/2
reg00 = v;



and reg01 shows up as 1 in the debug window.
z33m is offline   Reply With Quote