setTimeout() ?

  • Do we have something like setTimeout() function?

    Because I can't use Wait for the Function plugin (in the manual says how it works with functions and in my case it's a problem and local variables doesn't work)

    Now is there a solution to this, because Its doesn't work:

  • Look at the Timer behaviour.

  • Look at the Timer behaviour.

    I have tried Timer but It doesn't work in this case. That picture I showed is part of the "branch" function ("branch" function is a recursive function) and if I want to use Timer then I have to bring all the function's local variables, and that timer is going to happen multiple times for each branch which would stop the previous timers as well as the variables I have to carry to Timer will change for a branch which the change wasn't meant to be

  • Create a new object each time, store any instance variables you may need, use it's timer, destroy the object when the timer expires. You can have as many unique timers as you want.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Create a new object each time, store any instance variables you may need, use it's timer, destroy the object when the timer expires. You can have as many unique timers as you want.

    If I want to do that then the amount of objects in the screen would be way too much (The object is Canvas) and it would affect the performance. I used setTimeout() with the execute Javascript action from Browser and it works perfectly. Thanks for the suggestions.

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