User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Run this event once VS Start of frame

  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)

    Run this event once VS Start of frame

    I have an Event ( doesnt really matter what the event is, well it setts Objects AltValues and repositions the Object ). The Event has 1 Condition only.

    I notice that when i swich the Condition from 'Start Of Frame' to 'Run this Event once', the results are different ( the Objects resulting possition is noticably different ) although the Actions remain exactly the the same!

    ...
    Why is this happening?
    How does the Conditions 'Start Of Frame' and 'Run this Event once' work exactly?

  2. #2
    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)
    I found the problem.
    It seems 'Start Of Frame' Conditions allways run first, regardless of where they are placed in the Event Editor.

  3. #3
    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)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    Killeen, TEXAS
    Posts
    1,041
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    so wheres the actual problem apart from you not understanding how this all works?

  4. #4
    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)
    Well there was no actuall problem i guess, i just didnt realize Start Of Frame Conditions allways ran first ( regardless or placement in the Event Editor )

    EDIT: Specifically, i had a Group Of Events called "CHECK SETTING" wich loaded the setting values into the Start Menu. This "CHECK SETTING" group was placed at the top of the Event Editor befor the Start Of Frame Condition.
    I was under the Impression that the "CHECK SETTING" Conditions would run before the Start Of Frame Condition.

  5. #5
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,309
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Any conditions colored red in the event editor are "immediate conditions", and are always handled as soon as they are met, regardless of their position in the event list.
    "Start of Frame" is written in red...

  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)
    I didnt know that.
    Thanks for the info MuddyMole

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    paobrasil's Avatar
    Join Date
    Apr 2012
    Location
    Rio de Janeiro, Brazil
    Posts
    1,149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    "Any conditions colored red in the event editor are "immediate conditions", and are always handled as soon as they are met, regardless of their position in the event list."

    I didnt know that too...thanks for the information man!

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Yes, the Start of frame events are called before the first game loop. Run event once are called with the rest of the events, within the game loop.

  9. #9
    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)
    I just want to understanding this correctly.

    MuddyMole says that the Red Events are are always handled "as soon as they are met".
    ( Meaning the Red Events can get priority at any time during the Event Editor reading process "as soon as the Condition is met", if thats even possible )

    While Francois says that Start of frame events ( im guessig this applies to all Red Events as well ) are called "before the first game loop".
    In other words, the Red Events are handeled first, before the rest of the Event Editor.

    So... Wich explanation is true/ correct?

  10. #10
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,309
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Both are correct.
    "Start of frame" happens as soon as that condition is met - ie. at the start of the frame, before the first game loop.
    Other immediate (red) conditions happen as soon as they are met (in theory). That's how fastloops work - the "on loop" condition is an immediate (red) condition, so it is always handled immediately as soon as a "start fastloop" action triggers it, regardless of where it's placed in the event list.
    However, due to the fact that most immediate conditions relate to things like built-in movements/animations/keyboard input/etc which MMF2 handles separately from other events, they're often not actually handled until the start of the next frame after they are met (but before the other events).

    For example:

    1. Always
    -> Destroy Active

    2. Always
    -> Set Counter_1 to 1

    3. Last Active has been destroyed
    -> Set Counter_2 to value("Counter_1")

    Logically, this should set set counter_2 to the initial value (0) of counter_1 because the "last active has been destroyed" condition should be handled immediately after line #1 - but in practice, both counters will read "1".

    Note also, that if you have multiple conditions in one event, the immediate condition must come first, or it will turn into a normal condition (you'll notice it turns black) and will be handled according to its position in the event list.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. 1 event in first frame activate an event in another frame? Sub-Application Tool
    By CloudExSolider in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th October 2013, 12:23 AM
  2. Using repeat with Start of Frame.
    By GregC in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 17th July 2011, 01:12 AM
  3. basic: player presses switch to start event
    By Peter_Traylor in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 17th October 2007, 05:21 PM
  4. [Bug] Start of frame
    By dingdong in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th September 2007, 03:40 PM
  5. Fade in effect and Start of frame event
    By haora in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 22nd September 2007, 06:20 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
  •