Author Topic: Wait between functions  (Read 876 times)

Is there a way to wait between function calls?
For example:
Code: [Select]
%obj.playAudio(0, StartupSound);
wait(500);  // would wait for 500 ms
%obj.playAudio(0, ShutdownSound);

Code: [Select]
%obj.playAudio(0, StartupSound);
%obj.schedule(500, 0, "playAudio", 0, ShutdownSound);
This should work i believe.

Code: [Select]
%obj.playAudio(0, StartupSound);
%obj.schedule(500, 0, "playAudio", 0, ShutdownSound);
This should work i believe.
Oh that makes sense.  The schedule function I was looking at was calling its surrounding function thus looping it.

More questions yay.

Is there any way to go above 999ms?  Anything over that seems to not play the sound.

Nvm it does.  Got a lot of coding to do it seems.
« Last Edit: January 08, 2017, 10:35:15 PM by DaBlocko »