-
Adding a frame rate to random() function
I’m using the random(12) function to power my animation.
It’s working great, but I want to make it go slower.Without using wiggler how would I update values every 5 frames?
I thought I could do something like my code below, but I think it needs refinement.
t = Math.round(time*30)%5;if(t=0){
r=random(12);
}else{
r=0;
}Prepare for today and you’ll survive, prepare for tomorrow and you will thrive.