How do I use "Every n seconds" with "Repeat"

0 favourites
  • 3 posts
From the Asset Store
Like tourists, Travel around the world as fast as you can!
  • Hello,

    I am trying to mix the use of "Every n seconds" & "Repeat" but it isn't work as expected. What I want to do is:

    1. use a dictionary to store the key and the repeat interval. e.g. (a:1, b:5, c:10)

    2. append the keys to a text every n(value) second.

    I expected the text to be like:

    a in the 1st second,

    aa in the 2nd second,

    aaa

    aaaa

    aaaaab

    ...

    aaaaabaaaaabc

    ...

    What i got is appending an "a" every seconds without "b" and "c".

    init dic

    repeat

    I also tried to use for each key for dictionary, but it won't work.

    If called "every n second" separately it works as expected. but the it would be not dynamic.

  • I don't recommend using "Every n seconds", it's difficult to control and may not be accurate if you swap layouts. Use Timer behavior instead:

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thank you dop2000, it worked with timer.

    though I don't know why "Every n seconds" won't work, it is good enough to have a workaround.

    Thanks again.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)