dt vs secs

Get help using Construct 2

Post » Wed Oct 12, 2016 12:25 pm

When you're setting deltaTime (dt) in events, says Ashley in some blog or tuto that it should not be used for the Wait X Seconds condition, as it would only make that event dt dependent again. But what about the Wait action? Should it go in dt or secs?
B
23
S
11
G
6
Posts: 181
Reputation: 5,010

Post » Wed Oct 12, 2016 3:43 pm

The 'wait' action is the same as 'wait x seconds'—you don't see two separate actions, correct?

I believe theonly other action with 'wait' in the wording is 'wait for signal' which is completely different.
ImageImageImage
B
43
S
26
G
11
Posts: 516
Reputation: 10,473

Post » Wed Oct 12, 2016 3:57 pm

badmoodtaylor wrote:The 'wait' action is the same as 'wait x seconds'—you don't see two separate actions, correct?

Wait is an Action, Wait X Seconds is a Condition.

megalocrator wrote:When you're setting deltaTime (dt) in events, says Ashley in some blog or tuto that it should not be used for the Wait X Seconds condition, as it would only make that event dt dependent again. But what about the Wait action? Should it go in dt or secs?


Same logic applies to Wait as to Wait X Seconds, use seconds.
Find all the Construct 2 games that were on Steam Greenlight here
B
35
S
9
G
7
Posts: 467
Reputation: 6,864

Post » Wed Oct 12, 2016 4:05 pm

OddConfection wrote:Wait X Seconds is a Condition.


Do you mean 'Every X Seconds'? Not sure 'waiting' as a condition sounds logical...

But yes, the same logic would apply
ImageImageImage
B
43
S
26
G
11
Posts: 516
Reputation: 10,473

Post » Wed Oct 12, 2016 4:40 pm

@badmoodtaylor

@OddConfection

Right yes, my bad! Not Wait X secs but Every X secs. Hell I've been 5 mins quite perplex myself haha.

Thanks guys :D
B
23
S
11
G
6
Posts: 181
Reputation: 5,010

Post » Wed Oct 12, 2016 8:32 pm

badmoodtaylor wrote:
OddConfection wrote:Wait X Seconds is a Condition.


Do you mean 'Every X Seconds'? Not sure 'waiting' as a condition sounds logical...

But yes, the same logic would apply


Yes, that's the one. Was going by the OP's naming of the condition rather than checking but knew which one he meant. You're right about 'waiting' not sounding very conditional, I should have picked up on that..
Find all the Construct 2 games that were on Steam Greenlight here
B
35
S
9
G
7
Posts: 467
Reputation: 6,864

Post » Thu Oct 13, 2016 11:10 am

The point of dt is to handle different framerates at the same real-world speed.

If something already uses seconds instead of frames, e.g. "Wait X seconds", "Every X seconds" etc, then it already works at the same real-world speed, because 1 second is still 1 second regardless of your framerate. So if you add dt it is simply wrong.

I think asking this question is a sign you don't quite understand what dt is for yet...
Scirra Founder
B
399
S
236
G
89
Posts: 24,519
Reputation: 195,361

Post » Thu Oct 13, 2016 2:18 pm

@Ashley yeah I was mildly aware the answer would most likely be some kind of obvious syllogism... Maybe you're right about me and dt -- i was thinking i was just plainly not clever enough XD In these cases, empiric tryout is what we hv left, but sometimes (often!) that's inconclusive. Anyway, it's clear now. Thnks everybody :)
B
23
S
11
G
6
Posts: 181
Reputation: 5,010


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, kainrazial and 8 guests