How do I wait 1 tick?

  • guys how do I wait 1 tick in my code?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Either you could do: Wait dt seconds

    But since dt can vary you would want to use: Wait 0,0167 Seconds

    Since 1/60 = 0,01666666666666666666666666666667

    1 = Seconds

    60 = Ticks/FPS

    Hope i could help

    • Conti
  • Thanks a lot man! I really didn't think about that! XD

  • Waiting 0 seconds will run at the end of the current tick, which may be good enough for what you are doing. Waiting for 'dt' will wait possibly two ticks due to imperfect timer accuracy.

  • Waiting 0 seconds will run at the end of the current tick, which may be good enough for what you are doing. Waiting for 'dt' will wait possibly two ticks due to imperfect timer accuracy.

    Ashley, please read my How do I post, I'm very keen to get this fixed, please reply to it D:

  • > Waiting 0 seconds will run at the end of the current tick, which may be good enough for what you are doing. Waiting for 'dt' will wait possibly two ticks due to imperfect timer accuracy.

    >

    Ashley, please read my How do I post, I'm very keen to get this fixed, please reply to it D:

    Please don't post in unrelated threads about your problem. Also, you need to have more patience. It's only been a few hours since you posted. If no one has replied in 24 hours, feel free to bump your thread, but don't expect an instantaneous answer. Some people are sleeping, some people are busy doing other things. Patience.

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