why have not sub-events else/elseif?

Discussion and feedback on Construct 2

Post » Mon Jan 09, 2012 8:50 pm

why have not sub-events else/elseif?

i think it's will useble.
B
25
S
7
G
3
Posts: 32
Reputation: 2,868

Post » Mon Jan 09, 2012 11:25 pm

I think that its a work in progress
No need to ask
it is automatically on developpers to-do list
(i hope) ! )
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Tue Jan 10, 2012 4:57 am

[QUOTE=kbdmaster] I think that its a work in progress
No need to ask
it is automatically on developpers to-do list
(i hope) ! )[/QUOTE]

please mark as spam
B
25
S
7
G
3
Posts: 32
Reputation: 2,868

Post » Tue Jan 10, 2012 5:00 am

What?
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Tue Jan 10, 2012 6:06 am

i ask why have not sub-events
else/elseif?
B
25
S
7
G
3
Posts: 32
Reputation: 2,868

Post » Tue Jan 10, 2012 6:12 am

Try this unoffical plugin --Branch.
B
97
S
22
G
178
Posts: 4,120
Reputation: 104,047

Post » Tue Jan 10, 2012 6:40 am

That plugin seems redundant to me? Subevents can already do all that? Maybe if there was a better example I'd understand its use.

To do an "if" all it takes me is to add a "local variable":

B
134
S
65
G
16
Posts: 1,766
Reputation: 19,190

Post » Tue Jan 10, 2012 6:57 am

@alspal

That's right.
Branch plugin only to save the time of creating local variables and the value setting and make the event sheet shorter.rexrainbow2012-01-10 07:00:57
B
97
S
22
G
178
Posts: 4,120
Reputation: 104,047

Post » Tue Jan 10, 2012 7:34 am

I meant what what did you mean by the spam comment?
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Tue Jan 10, 2012 9:44 am

A built in 'else' condition has been on the todo list for a while, it's just got a low priority because it's easy to work around (copy the event and invert it) and the implementation is actually quite tricky (it must use the exact opposite picked objects from the previous event).
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests