Run In Background (Construct 3 Plugins)

You're viewing a single comment in a conversation. View all the comments
  • 1 Comments

  • Order by
  • 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!