custom interval loop in client.js
custom interval loop in client.js
Is it possible (or I should say built in) to create custom interval loops? for instance i want to "randomly" add objects to the graph all at different times ie some at 5s some at 30 etc etc. So can I run that via client js or would i Have to make a custom class to do this?
- coolbloke1324
- Posts: 181
- Joined: Mon Jan 23, 2012 5:20 pm
Re: custom interval loop in client.js
You can either create a custom class or just use a JavaScript setTimeout call. The method it calls can then schedule another call at a different timeout giving the illusion of random events.dnasello wrote:Is it possible (or I should say built in) to create custom interval loops? for instance i want to "randomly" add objects to the graph all at different times ie some at 5s some at 30 etc etc. So can I run that via client js or would i Have to make a custom class to do this?
Re: custom interval loop in client.js
that is exactly what i had done. Great, thank you