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
42
S
17
G
17
Posts: 2,247
Reputation: 17,461

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
94
S
33
G
33
Posts: 3,006
Reputation: 27,749

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
108
S
26
G
266
Posts: 4,455
Reputation: 149,245

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
147
S
74
G
20
Posts: 1,786
Reputation: 22,527

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
108
S
26
G
266
Posts: 4,455
Reputation: 149,245

Post » Tue Jan 10, 2012 7:34 am

I meant what what did you mean by the spam comment?
Moderator
B
94
S
33
G
33
Posts: 3,006
Reputation: 27,749

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
395
S
231
G
88
Posts: 24,367
Reputation: 193,684

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 15 guests