# How do I wait 1 tick?

Get help using Construct 2

### » Sun Jun 08, 2014 9:06 am

guys how do I wait 1 tick in my code?
B
5
S
1
Posts: 13
Reputation: 415

### » Sun Jun 08, 2014 9:18 am

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
"It's done when it's done"

B
24
S
10
G
7
Posts: 253
Reputation: 4,941

### » Sun Jun 08, 2014 9:33 am

Thanks a lot man! I really didn't think about that! XD
B
5
S
1
Posts: 13
Reputation: 415

### » Sun Jun 08, 2014 2:54 pm

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.
Scirra Founder
B
414
S
245
G
92
Posts: 25,205
Reputation: 200,351

### » Sun Jun 08, 2014 4:01 pm

Ashley wrote: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.

B
8
S
2
Posts: 41
Reputation: 643

### » Sun Jun 08, 2014 5:23 pm

Alydus wrote:
Ashley wrote: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.

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.
Moderator
B
96
S
34
G
33
Posts: 3,007
Reputation: 27,921