Very annoying feature :(

Discussion and feedback on Construct 2

Post » Wed May 01, 2013 4:01 am

I spent an hour trying to trace a bug today. (Not helped by lack of debugger.)

Of course it was a very bizarre "bug"

It turns out that Deactivating a group "MyGroup" will deactivate all groups of the same name in all event sheets, not just the Event Sheet that does the activation/deactivation.

It really highlights the fact that C2 needs to have some code analytics.

1. Groups with same name
2. unused objects
3. unused variable names

etc etc
czar2013-05-01 04:02:38
B
31
S
8
G
5
Posts: 436
Reputation: 5,836

Post » Wed May 01, 2013 7:41 am

Are all the event sheets linked with include?

I remember having a similar issue a long time ago. I came to the conclusion that its much better to be extremely specific when naming groups (especially if you will be working on it for a long time).

You do get used to working without a proper debugger but it would be nice to have I agree.
ImageImage
B
74
S
17
G
6
Posts: 1,039
Reputation: 10,605

Post » Wed May 01, 2013 8:20 am

@GenkiGenga

The deactivate works on all event sheets, they don't have to be included. The problem I was having was that one layout was deactivating code belonging to another event sheet.
B
31
S
8
G
5
Posts: 436
Reputation: 5,836

Post » Wed May 01, 2013 3:48 pm

Check out the Chrome Console plugin for debugging.
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Wed May 01, 2013 4:33 pm

[QUOTE=czar] It turns out that Deactivating a group "MyGroup" will deactivate all groups of the same name in all event sheets, not just the Event Sheet that does the activation/deactivation.[/QUOTE]

1: http://www.scirra.com/FORUM/same-group-names-on-different-sheets_topic49258.html?KW=group

2: http://www.scirra.com/FORUM/r80-set-group-activated_topic49634.html?KW=my+fault
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Wed May 01, 2013 6:45 pm

I don't find the feature very annoying at all. I'm very grateful for it. I'm rather reliant that the disable/enable group is cross event sheet. Makes a lot of sense. Let's me divy up my groups across sheets rather than cluttering different factors into 1 sheet.

keep in mind that C2 is not an Object based language. It's event and string based. Since Group names are a string and not memory reference then all groups by that string name will be effected.
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 9 guests