groups in event sheet

This forum is currently in read-only mode.
From the Asset Store
Very simple code without excess options (15 events for server and 11 events for client)
  • my code is getting lengthy , and I was wondering what the best way of keeping it tidy.

    I can't figure out how groups work - is there some kind of folder like structure for displaying / undisplaying sections of code? do groups even work like this?

    thanks yet again

  • Right-click in the event editor and make a new group. Then right click that new group and make a new event of anything. Hit the + to show the event and drag any other events you want in that group into this area.

    Afterwards delete the event you made to show it.

    That's how I see to add previous events to a new group without remaking them.

  • is there some kind of folder like structure for displaying / undisplaying sections of code?

    Yeah, basically. Any events you put into a group can be collapsed down to just one line in your event sheet.

    Another benefit of groups is that you can activate/deactivate them at runtime. Say you have a bunch of events that you only want to run at a certain time, like inventory menu controls or something. You can have them deactivated most of the time, but when you open your inventory menu you disable your play control group and enable your menu control group.

    Another good way of sorting your code is by including separate event sheets. This is what my main event sheet looks like:

    <img src="http://xs124.xs.to/xs124/08065/event_sheet411.jpg">

    There are no events... just includes to other event sheets. Each sheet has a specific purpose. This keeps things tidy and modular... for instance, if a level doesn't have the shotgun enemy in it, you can just leave the "Enemy - Shotgun" event sheet out. If a level has moving platforms in it, just include the sheet that runs your platforms, etc.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • A PM was sent to me a while ago that I just now noticed, asking how to rename your event sheets. When you click on Manage Event Sheets in the app properties or the project ribbon, click once to highlight the event sheet name you want to rename, then click again on the name to bring up the edit box. It's not a double-click, more of a "soft" click, like click-pause-click.

    (Hey Ash... perhaps an edit button in the dialog box would make renaming sheets easier on folks, like the one in the global variables dialog. Just a suggestion )

    Anyway, sorry for the late response and double-post.

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