Feedback: 'Else' condition

Discussion and feedback on Construct 2

Post » Tue Apr 10, 2012 4:29 pm

Can you save SoL in local variables?
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Tue Apr 10, 2012 4:33 pm

No, but I'm not clear why it needs to?
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,574

Post » Tue Apr 10, 2012 4:39 pm

Sometimes we need to do actions on different subsets of objects. We could do that with separate events and conditions for each subset, but altering one subset may consequently alter the total object SoL for the next event. That may not be desirable.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Tue Apr 10, 2012 5:19 pm

An else if would be good. Also visually I think the else statement has to be indented. Either that or the entire else's background should be a different color.

I think from an organizational standpoint there should be something visual to separate the if else statement.
B
69
S
11
G
6
Posts: 324
Reputation: 8,321

Post » Tue Apr 10, 2012 5:46 pm

Hmm, having thought on this some more I think I'm persuaded by the "keep it simple" argument.

Initially I'll release it as a logic-only "last event did not run". We'll see how things pan out there.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,574

Post » Tue Apr 10, 2012 8:32 pm

[QUOTE=Ashley] Hmm, having thought on this some more I think I'm persuaded by the "keep it simple" argument.

Initially I'll release it as a logic-only "last event did not run". We'll see how things pan out there.[/QUOTE]
Yes, but it won't be a simple condition, right? That way lies madness.
B
35
S
8
G
8
Posts: 532
Reputation: 6,868

Post » Tue Apr 10, 2012 9:13 pm

I will just repeat myself because I think my idea is very good:

For PICKING conditions, the ELSE should reverse the picking, i.e. the ELSE should pick all instances that were not picked by the IF, REGARDLESS of what happens in the actions (i.e. if in the actions you alter some variable that would cause an instance to match the inverted condition, the ELSE should still not pick it, because the original IF picked it already).

The picking ELSE should think in these terms: was this instance picked the first time? Yes - drop it. No - pick it.

For picking, it should be "instance-wise else".

I have spoken.
B
14
S
5
G
7
Posts: 235
Reputation: 5,175

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 18 guests