How do I wait 1 tick?

Get help using Construct 2

Post » 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

Post » 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"

Shadows of War
Buy on Steam ;)
B
24
S
10
G
7
Posts: 253
Reputation: 4,931

Post » 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

Post » 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
398
S
236
G
88
Posts: 24,433
Reputation: 194,635

Post » 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.

Ashley, please read my How do I post, I'm very keen to get this fixed, please reply to it D:
B
8
S
2
Posts: 41
Reputation: 643

Post » 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.

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.
Moderator
B
95
S
34
G
33
Posts: 3,006
Reputation: 27,874


Return to How do I....?

Who is online

Users browsing this forum: Bobbyneal100, Kin, mickclarke, sean080, tinhofiel, TRMG and 40 guests