Call function after delay - Which delay?

This forum is currently in read-only mode.
From the Asset Store
Voice call plugin based on webrtc protocol for construct 3
  • Hey everyone

    I'm making a new game that's using lots of functions, and I usually need to tie them together.

    David showed me the "Call function after delay", a nice workaround for Construct's way of computing things (I don't remember his explanation, but this is irrelevant to my question anyway ).

    Anyway, I wanted this delay to be as quick as possible, but I'm afraid to use a very small value (like 1ms, for example) and have the risk of skipping the next function... So, is this possible to happen? What would be a minimum safe value for this delay?

  • 20ms is above the TimeDelta-safe zone, so to speak. I recall Ash mentioning long ago than anything less isn't 100% reliable.

  • 'Call function after delay' only checks if the delay has expired at the end of the event list. So if you're running at 100fps, it'll only check to see if the delay has expired every ~10ms, so timings less than that don't make much sense. It's perfectly safe to use smaller values, they'll just still be executed after about 10ms. Generally all timing things in Construct are synchronised to the framerate so your resolution will be about (1000ms / framerate) milliseconds.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Great replies! Thanks guys!

    I was always concerned about this...

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