Force the game to periodically update in the background.
did you manage to trigger audio with this plugin? i am building a meditation app and need to trigger "x second" events for sounds/music. i am trying to understand the wallclocktime - lastTime >= X seconds" logic but i do not know what the lastTime variable refers to.
would appreciate the help
Hey man, I did. The basis to what I did is as follows:
First I created a Variable named "clock" and every tick set it to wallclocktime % 2.
This way "clock" will aways count from 0 to 2.
If you put wallclocktime % 3, it will aways count from 0 to 3 and so on.
Then, I just did comparisons like if "clock" >= 1.0, make a sound.
If clock < 1.0, do another sound.
And to prevent Audio Play action from being called all the time while this comparison is true, I created a flag variable to control the audio play. If flag = 0 and audio play, set it to 1 to prevent undesired repetitions.
It probably isn't the best way to do it, but was following this logic that I got to play a list of audios with names like voice_1, voice_2, and so on. Hope this helps!