MoteOne Posted August 13, 2019 Share Posted August 13, 2019 Hi everybody, i'm trying to get a random value every nth frame. For example on Frame 5, 10, 15 etc it should change but in between it should remain static. i tried: int t = int(@Frame%5); float random=0; if(t == 4){ random = rand(@Frame); } f@random = random; and i just tested if I could append a random value to an array if @Frame%5, but it alwys removes that value after the condition is met. 2nd question would be how to implement a timer? for example over the next 5 Frames add a value to a variable. Any advice would be awesome. Thx in advance Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.