Advertisement
zebadeee

Random time & motion

Oct 29th, 2019
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pct = .1;
  2.  
  3. f = timeToFrames(time);
  4. while (f >= 0){
  5.   seedRandom(f,true);
  6.   if (random() <= pct)break;
  7.   f--;
  8. }
  9. wiggle(10,202,1,50,framesToTime(Math.max(f,0)));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement