Groups with same name on different event sheets

0 favourites
  • 7 posts
From the Asset Store
Adjusting the game screen for different resolutions (Letterbox scale)
  • Link to .capx file (required!):

    dl.dropboxusercontent.com/u/2383513/linkedOUT/groupbug.capx

    Steps to reproduce:

    1. Create 2 event sheets with the same group name

    2. Have one group with "active at start" on, and the other off

    Observed result:

    All the groups with the same name become active, even if the event sheet with the active group isn't referenced anywhere.

    Expected result:

    C2 shouldn't allow me to make groups with the same name in different sheets.

    Browsers affected:

    All of them

    Operating system & service pack:

    Win8 x64

    Construct 2 version:

    r143

  • interesting, I always avoided that instinctively, good to know, bad it�s a bug...

  • I'm not sure it's even a bug, but since you can't reference which event sheet you're talking about when using groups actions, I think that it's better to send out an error or something.. I accidentally created two "debug" groups on different sheets and everything got messed up.

    In any case if you wanted to have the same group in multiple event sheets you can create another event sheet, put the group on it and reference it wherever you want.

  • I'm not sure we can fix this. The 'set group active' action identifies a group by its name. So using that action you could not set either group individually active or inactive. The same happens with the initially active state. And if we then disallow naming two groups the same, what about existing projects that already do it?

  • Ashley - previously, when disallowing groups to be named the same was first implemented, I seem to recall opening a project saved in an earlier version that had multiple groups named the same and c2 acted like nothing happened - it only prevented naming groups the same from then on. I recommend doing the same if you are going to change this, then previous projects would not be broken and new ones would work properly as well.

  • Ashley, you could make newly created group names include the event sheet name, but filter it to not show that part of the name. It wouldn't change existing projects.

    However "This group already exists" sounds perfectly logical to me. I would only expect to be able to use the same name if my intention was to create the conflicts on purpose.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Closing since r153 now enforces all group names to be unique.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)