User Tag List

Results 1 to 5 of 5

Thread: Using many event groups

  1. #1
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Yima's Avatar
    Join Date
    Feb 2008
    Location
    Sweden
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using many event groups

    I am wondering if there are any disadvantages to using a lot of event groups. For example, I got a fast loop called "Place detectors", which triggers five different events. I wonder if it is a good idea to put the "Place detectors" events in a group called "Detection", just to make it possible to "minimize" the group and thus reducing editor clutter?

    I also use groups to be able to disable certain events (such as disabling keyboard controls if a gamepad is selected), and I guess that is what the event groups are really for. It's the usage of event groups to create "event folders" that I am unsure if it is a good idea

    Thanks for any answers!

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    As far as I know,
    there are no disadvantages in using groups "only" for clean and readable code structuring,
    I've always heard using groups for this matter is considered a "good practice"
    and I can see no back-issues in this.

    My own experience also confirms,
    grouping makes my testing easier, and helps a lot finding what I need,
    I never had any kind of problem adding/nesting groups.

    So I'd say: go grouping at your will!

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleMac Export Module
    dsilvers's Avatar
    Join Date
    Jun 2008
    Location
    Boston, MA
    Posts
    660
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Activating/Deactivating groups when you need to works great. I use that function for a fade-in time on my levels in my current project, as well as an easy way to bring up a Pause overlay! It would also work great for an in-game menu (though I know there are some Sub-Application Evangelists here).

    The only problem with groups comes when you are copy/pasting code across frames, and have activate/deactivate functions included. You'll need to either clear out all your code first, remake your frames, or go through and manually reset the activate/deactivate functions, as they will paste with the original Group names, and not update to the "(2)" versions that have pasted. This means when you delete the old code, even if you then rename the groups, it won't find the ones you're referencing.

  4. #4
    Clicker Fusion 2.5 Developer
    PBarwick's Avatar
    Join Date
    Jul 2014
    Posts
    390
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I think it's worth mentioning that if you change the order of your events to put them into themed groups, remember that changing the order of events means that they get executed in a different sequence. This could make your application behave differently of you are not careful!

    Otherwise, this is definitely a good idea, anything that helps keep your code structured and organised is a.good thing!

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I recall seeing a thread a while back where someone had run into a GoE-limit. I think it was at over a thousand so it'd be quite an effort to reach it but still.

    GoEs are incredibly useful I think. I only wish there was an option to color them

Similar Threads

  1. Global event groups
    By DistantJ in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 22nd November 2019, 05:20 PM
  2. Replies: 2
    Last Post: 23rd January 2014, 08:22 PM
  3. Event Editor Sub-groups
    By Asholay in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 15th February 2010, 01:31 PM
  4. Power ups and/or Event Groups
    By Henderman312 in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 11th March 2009, 11:58 PM
  5. Global event groups?
    By Dafydd in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 31st August 2007, 01:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •