IF "Ashley can answer please..." = true

Discussion and feedback on Construct 2

Post » Tue Oct 04, 2016 4:17 pm

Hi,

I have a question about the internal process solving combined cases (if).

Image

Is the complex (combined) comparement faster or slower (or both the same) ?

or How is a combined comparement processed:
- all compares are solved and build the result
- each compare is solved until the first gets false (like the decades)

thank you...

mercuryus
Image Image Image
B
43
S
22
G
15
Posts: 387
Reputation: 12,270

Post » Tue Oct 04, 2016 5:03 pm

Answer your own performance quesitons with measurements

You will probably just be wasting your time, though.

Both cases exit on the first false condition, FWIW.
Scirra Founder
B
406
S
240
G
91
Posts: 24,771
Reputation: 197,558

Post » Tue Oct 04, 2016 5:12 pm

Thank you.
Image Image Image
B
43
S
22
G
15
Posts: 387
Reputation: 12,270

Post » Tue Oct 04, 2016 7:30 pm

btw...

why global boolean are not available?
Image Image Image
B
43
S
22
G
15
Posts: 387
Reputation: 12,270

Post » Wed Oct 05, 2016 7:41 am

it's an oversight that did not get resolved yet due to it's low priority IIRC

EDIT: why-no-local-or-global-boolean-variables_t163602
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
54
S
22
G
18
Posts: 2,123
Reputation: 17,150


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 0 guests