i made 3 superscopes... 2 rotating rings (if the one rotates one time, the other rotates 4 times) what i want to do,is, that when they are in one line (horizontal) the rotation should stop, til the small SSC in the middle falls out... the next stop, it should fall back from above, and then, if it's back in the middle, the rings will begin to rotate again
can you help me, how to do?
Thanx
GreatWho
sinchonize superscope: how can i do?
5 posts
You should try a counter method, ie. count=(count+1)%maxcounts
Then just do a if(equal(count,x),do1,do2)
Then just do a if(equal(count,x),do1,do2)
That's pretty much how I'd do it. If you want to change how long it takes each time, whip up a pseudo random number generator and toss it in all three scopes, then use that value to determine how long the gount should be.
i think he's asking how he should go about doing that sort of thing...i've thought about this sort of thing before as well, but i just haven't been able to find a solution
Here's one I used. for a star field.
per frame:You could do something like this.
xs=17;
per pixel:
xs=(296*xs+123)%500;
x1=xs/500*2-2;
init:or something like that.
counts=5;
per frame:
counts=if(equal(count,0),(296*xs+123)%500,counts);
count=if(equal(count,0),counts/500*range+minvalue,count-1);