User Tag List

Results 1 to 9 of 9

Thread: Global Events Example

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Sparckman's Avatar
    Join Date
    Feb 2011
    Location
    Planet of the Kangaroos
    Posts
    1,423
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Global Events Example

    Global events are events that show up in every frame. You can use global events for events that are repetitive.
    Here is an example, the events are done only once but they apply in every frame.




    global_events.mfa

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Volnaiskra's Avatar
    Join Date
    Jan 2014
    Location
    www.sprykegame.com
    Posts
    2,124
    Mentioned
    76 Post(s)
    Tagged
    0 Thread(s)
    wait, so can we do all of our programming in global events? Would this negate the need for a level editor?

  3. #3
    Clicker Fusion 2.5Android Export Module
    chickenlump's Avatar
    Join Date
    Feb 2014
    Location
    Lake Havasu City
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I hate to bring this sei-old thread up, but not enough to not do it anyway.

    I loe the idea of Global Events and am just learning to use them. Yet, I constantly see advice to stay far away from using or relying on them. I don't see any reasons accompanying that logic though. So, what do people think of Global Events? If stay away, then why? It SOUNDS really useful, like a way to not copy over and duplicate code across frames.

  4. #4
    Clicker Fusion 2.5Android Export Module

    Join Date
    Sep 2010
    Posts
    536
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I use global events and it works perfect for me

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module

    Join Date
    Dec 2008
    Location
    Italy
    Posts
    404
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    > So, what do people think of Global Events? If stay away, then why? It SOUNDS really useful, like a way to not copy over and duplicate code across frames.

    One thing I know for sure is that within Global Events you cannot use qualifiers. I don't know if there are other drawbacks connected to them.
    Some time ago I tried to test (1) an application with events only in Global Events and (2) an events in each frame, I remember there was not at all a substantial difference. Anyway, I would also be interested in potential advantages of Global Events instead of common 'events in all frames' approach (which I also use).

  6. #6
    Clicker

    Fusion 2.5Android Export Module

    Join Date
    Jan 2007
    Posts
    258
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    No qualifiers = deal breaker. You can bypass this using switches/flags , but switches impose a 1 frame delay, at the very least.

    For example:
    Global Events:
    Player right sensor collides with active object 1 > Set Flag 0 ON

    Regular Events:
    Flag 0 Is on
    - Perform Action

    The action will activate 1 frame later than if you would have just coded it in the regular event editor.

    I tried to make a full-fledged custom platform engine with global events and it just isn't made for that kind of stuff. I'd keep my global events as simple as possible if I were you.

  7. #7
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    MEHRDAD's Avatar
    Join Date
    Jan 2009
    Location
    Iran
    Posts
    465
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When you use Global Events you haven't access to Groups in Frames . You can not use qualifiers as faber said. Behaviors have same problem too.So unfortunately only way is make Level Editor.

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,112
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    alterable values also lose their names in global events.. which make it hard to keep things organised.

  9. #9
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    MEHRDAD's Avatar
    Join Date
    Jan 2009
    Location
    Iran
    Posts
    465
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah....your right.I see now. Another big issue in Fusion. I don't know that.

Similar Threads

  1. Performance of behavior events vs frame events
    By Ryan in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 4th July 2013, 05:24 AM
  2. Too many events?
    By FlinkGigitty in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 20th August 2010, 06:12 PM
  3. Global events or Frame events first?
    By Digitalic in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 25th June 2010, 08:18 PM
  4. Group of events & global events - performance?
    By Leander in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 9th June 2010, 03:00 PM
  5. Events
    By Nate in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 1st February 2008, 06:12 PM

Tags for this Thread

Posting Permissions

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