Delay without stopping
in
Programming Questions
•
2 years ago
How can I delay a function call for a certain time without stopping the program (which the delay() function would do)
My case: Ich have a cloud object which is raining drops objects. I call a cloud.rain() function in the draw loop. Thereby it is called on every frame. This is too much for me. I want to call the rain function in a lower frequency (without stopping the movement of other drops already falling).
Is there a solution for this?
1