User Tag List

Results 1 to 9 of 9

Thread: Understanding Events

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS 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)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Understanding Events

    Hi

    I want to understand whats happening here ( 2 Events, 3 Conditions, 3 Actions ).
    Can someone try to explain pleace?

    https://dl.dropboxusercontent.com/u/...dingEvents.mfa

  2. #2
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,015
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    What do you want to know or understand here?

    The first event won't fire because your detecting a collision so the value isn't spread as they start overlapped. The collision is detected when the masks aren't overlapping at the start, hence the immediate condition.
    Want to learn Clickteam Fusion 2.5?




  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS 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)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The first event won't fire because your detecting a collision so the value isn't spread as they start overlapped
    What?
    Event nr 1 clearly does fire, it fires 4 times to be exact ( in fact both Events fire 4 times each ).
    Is there something im missing or not understanding here?

    The collision is detected when the masks aren't overlapping at the start, hence the immediate condition.
    That doest make sense, this confuses me.
    Danny, maybe there is some sort of typing error ^ which is confusing me?

    What do you want to know or understand here?
    For starters...

    A
    Do all Events starting with a 'Red Condition' count as 'Immediate Events', with no discrimination?

    B
    Are 'Immediate Events' checked by MMF2 in the order they are placed in the Event Editor?
    I mean, if all i have is 5 identical 'Immediate Events'...
    In what order are they checked?

  4. #4
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,015
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    I did have a big write up here which didn't autosave. Yeah the first event is firing, my apologies, for some reason it's constantly firing. Maybe it's because it's Sunday.

    If you spread the value at start of frame then change event 3 to Diamond is overlapping Red Active instead of collision and don't spread value in the collision you will see it works fine...

    The error here is because as I said, you're asking the runtime to detect a collision which happens at the start of the frame so I can only assume it's getting confused. I have attached a modified MFA with the same conditions but again without detecting a constant collision for you to see how it does work logically.
    Attached files Attached files

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS 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)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Danny View Post
    I did have a big write up here which didn't autosave. Yeah the first event is firing, my apologies, for some reason it's constantly firing. Maybe it's because it's Sunday.
    It is not fireing constantly at all, like i said they both fire 4 times each, no more no less.
    There may be something about Sundays yes.

    ...
    I am not trying to solve ANY kind of specific problem here, and this is not a disguiced bug repport, i am trying to understand what is going and how Events work.
    The example i gave in the original post would be a nice start.

    If this is too broad a question or to vague, theese question will also help:

    A
    Do all Events starting with a 'Red Condition' count as 'Immediate Events', with no discrimination?

    B
    Are 'Immediate Events' checked by MMF2 in the order they are placed in the Event Editor?
    I mean, if all i have is 5 identical 'Immediate Events'...
    In what order are they checked?

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS 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)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In this modified example, the events are checked whenever you want, and not nessesariy at start of frame.
    So this time MMF2 surely cant be confused.
    https://dl.dropboxusercontent.com/u/...ingEvents2.mfa

    What is happening here?
    ( Also questions A and B above )

    EDIT: Updated the example

  7. #7
    No Products Registered

    Join Date
    Apr 2013
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A) Yes, no exception
    B) From Top to Bottom
    By "What is happening here?" are you referring to value of the counter? It's 404 and I assume you expect 101?

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS 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)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ahhh, i think understand whats happening here.

    ...
    'Imediate Events' do internal loops if multiple Instances match the criteria(s).



    ( Event#1 checks for collision. 4 collisions detected )

    EVENT#1
    ---> ( internal loop )
    IntLoop#1 - Instace 1 collides with Block - Spread value 0 in Instance 1
    IntLoop#2 - Instace 2 collides with Block - Spread value 0 in Instance 2
    IntLoop#3 - Instace 3 collides with Block - Spread value 0 in Instance 3
    IntLoop#4 - Instace 4 collides with Block - Spread value 0 in Instance 4
    ( It seems like the Internal Loops selects each instance, 1 at a time, and applies the Events Action to it. Maning the Event spreads the value 0 through each Instance individually, not through all 4 instances at the same time, which just sets the AltVal of each Instance to 0 for each IntLoop itteration )

    Well, the next Event now is totally logical, since all Instances hav AlValu = 0.

    EVENT#1
    ---> ( internal loop )
    IntLoop#1 - Instace 1 AltVal = 0 - Apply Actions
    IntLoop#2 - Instace 2 AltVal = 0 - Apply Actions
    IntLoop#3 - Instace 3 AltVal = 0 - Apply Actions
    IntLoop#4 - Instace 4 AltVal = 0 - Apply Actions

  9. #9
    No Products Registered

    Join Date
    Apr 2013
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's not ignoring it, it's taking it into consideration and it is "true", altV A is 0 for all of them. The spread value action does not spread 0,1,2,3 in the actives because the object selection of condition "Collision between A and B". Most(maybe even all, can't think of any that does not) Immediate Events conditions, that take objects as one of the parameters, selects only one instance of that object. Immediate conditions are different in that for normal conditions. Also normal conditions are evaluated once once per frame, Immediate conditions can be called multiple times per frame. That is why the counter is 404, it triggers the conditions 4 times, for each active that is colliding with the big red box->one call.

Similar Threads

  1. Understanding Object Overlap
    By TheFieryPlumber in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 24th May 2013, 04:08 PM
  2. Understanding variables/flags?
    By Thrawn in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 25th January 2011, 05:40 PM
  3. help understanding the sprite editor
    By willow in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 25th April 2010, 02:26 AM
  4. Understanding the BUILD thing in MMF2
    By OldGuy in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 15th September 2008, 06:54 PM
  5. Need help understanding how to read an array
    By TripletDad in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 1st April 2008, 07:54 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
  •