Toggling Events with an Else branch

New releases and general discussions.

Post » Fri Jan 23, 2009 7:18 pm

I just noticed something:

When you toggle an event with an else branch (something like the example below) it only toggles the first event. So it leaves you hanging with an untoggled else branch. Then when you try to run Construct complains about the hanging else branch.

+ variable lower than 3
- increment variable
+ else
- increment variable

So maybe when you toggle an event the else branch would also be toggled. I guess this logic would apply to any type branch that Construct doesn't want left by itself.

I hope that made sense.
B
3
S
2
G
4
Posts: 271
Reputation: 2,017

Post » Fri Jan 23, 2009 7:22 pm

Makes sense, otherwise the Else, at runtime, attaches itself to the event above the toggled event as well!

Best log it on the tracker as a bug so we don't forget.
Scirra Founder
B
359
S
214
G
72
Posts: 22,951
Reputation: 178,578

Post » Sat Jan 24, 2009 10:03 am

Maybe toggling an event shouldn't so much remove the event but just remove all the actions and conditions?
B
4
S
2
G
5
Posts: 641
Reputation: 3,011


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 4 guests