User Tag List

Results 1 to 10 of 10

Thread: Loops Tutorial?

  1. #1
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Apr 2012
    Location
    California, USA
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Loops Tutorial?

    I am searching through the forums and wondering if there is some sort of 'all about loops' tutorial showing the usage and explanation of all the different kinds of loops. There seem to be a lot of examples of loops being used but I am looking for something like "Multimedia Fusion 2 supports For Next, Do While, Do Until loops and here is an example usage/syntax of each." The code I see so far is examples used in a game but of course they also include other things making it a little to big for me; I want to tackle very small, bare bones, specific usage with minimum syntax. Thanks.

  2. #2
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,734
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    There is one here, right before the Advanced Tutorials:

    http://www.clickteam.com/website/usa/tutorials/

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Verbage's Avatar
    Join Date
    Dec 2010
    Location
    Lakewood, CO, USA
    Posts
    233
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Basically, what you need to know is this:

    Loops take priority when MMF2 goes through the event editor item-by-item. Their advantage is that you can get certain tasks done nearly instantly (hence the "fast" name).

    They are initiated through an action: Start Loop "Name"
    The "Name" is the name used to identify that loop for future actions.

    To use a loop, create the "On Loop" event found under the System icon. From there, you can add other conditions to get things to happen.

    Example from my minesweeper game:
    +On Loop "Numbering"
    +Pick one of "Tile"
    +Repeat "Bombs" times
    -Set "Tile" flag 0 ON

    Instead of doing those events each time MMF2 loops through the event editor, fast loops cause them to become instant. Very useful, as without fast loops the mine generation takes ~1-2 seconds... time I can't spare to hold the player back.

    Hope this helps.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid 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)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,350
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Here is a direct link to the tutorial Nivram was talking about: http://www.clickteam.com/website/usa/img/uploads/tutorials/download/The_Clickers_Guide_To_Fastloops.pdf
    I wrote the tutorial long before the ForEach extension came around, so keep in minde some examples might be better/faster using the ForEach extension instead of normal fastloops.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Apr 2012
    Location
    California, USA
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah, thank you everyone. I saw reference to 'fast loops' and thought from all the different examples these were some 'special' type of loops and that there was other types of looping going on that I was missing. I'll look at the ForEach extension also.

  6. #6
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    There are only three kinds of loops in MMF2:
    -The event loop, which loops all your events every frame.
    -Fast loops, which allow you to loop things during the event loop.
    -Action loops, which are performed by MMF2 and essentially perform an action once for each selected object. (these also happen for conditions in order to select objects matching the condition, but not for expressions)

    Action loops are faster than fastloops are faster than the event loop. Both the event loop and action loops are controlled solely by MMF2. You can control fast loops.
    Action loops are special because MMF2 will automagically pair multiple objects that get referenced in the same action loop, so 1<->1, 2<->2, etc.

    I hope this clears things up
    Working as fast as I can on Fusion 3

  7. #7
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Apr 2012
    Location
    California, USA
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you! Much clearer. Looking forward to sitting down Saturday morning and working up some samples to test my understanding.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    TheSynapse's Avatar
    Join Date
    Jun 2011
    Location
    London, UK
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would also suggest doing the custom platform movement tutorial. Personally, I learned alot more about fastloops and loops in MMF2 in general from that than from other sources.

  9. #9
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Apr 2012
    Location
    California, USA
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks very much will review. Also, for the sake of any fellow novices I found the archive forum and found a lot more searchable info so I'll search both in the future.

    Forum Archive: http://www.clickteam.com/epicenter/

  10. #10
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Just so you know, that forum archive is on this forum too and is postable and searchable. That forum archive only lets you search up to five years back, but I think these forums go further
    Working as fast as I can on Fusion 3

Similar Threads

  1. Not using Loops
    By EdibleWare in forum SWF/Flash Export Module Version 2.0
    Replies: 7
    Last Post: 7th February 2011, 07:23 PM
  2. Fast Loops vs Grouped Fast Loops vs ForEach
    By Ryan in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 6th August 2010, 01:22 PM
  3. Loops with SWF
    By Tisnart in forum SWF/Flash Export Module Version 2.0
    Replies: 25
    Last Post: 19th July 2010, 05:13 PM
  4. Fast Loops - What, When And Why?
    By dmcclure in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 6th April 2010, 03:10 PM
  5. little confused abouts loops inside loops!
    By Gibbon in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 30th January 2007, 07:37 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
  •