User Tag List

Results 1 to 5 of 5

Thread: Best way to implement for loop (and sub for loop)

  1. #1
    Clicker Fusion 2.5Android 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)
    CrystalNoir's Avatar
    Join Date
    Jan 2008
    Posts
    225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Best way to implement for loop (and sub for loop)

    Hi there !

    I wonder how to implement with Fusion 2.5 this type of code :

    Code:
    for (x=0; x < ah; x=+32) {
      ....some maths
    
      for (y = ah ; y < sh ; y=+32) {
          ....some maths
      }
    
      for (y=sh; y < cursor; y=+ 32) {
          .....some maths
      }
    
    ....some maths
    }
    It seems that implement one fast loop in another make Fusion 2.5 crash. So I don't know how to implements these type of loop with Fusion 2.5. Any idea ?

    Thank's in advance !

    PS : this is just an example to illustrate my question

  2. #2
    Clicker Fusion 2.5Android 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)
    CrystalNoir's Avatar
    Join Date
    Jan 2008
    Posts
    225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nobody ? ^^

    Nobody needs to implement this kind of loop ? snif

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Jul 2013
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Best way to implement for loop (and sub for loop)

    I will try to test it today if I found the time

  4. #4
    Clicker Fusion 2.5Android 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)
    CrystalNoir's Avatar
    Join Date
    Jan 2008
    Posts
    225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It seems that it's complicated ^^ I don't find an easy way to do this kind of loop, may be we should ask clickteam to implement something for that in the future ?

  5. #5
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleUnicode Add-onInstall Creator Pro
    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
    Jul 2006
    Posts
    574
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    If you run too many fast loops it'll crash MMF. but I've found it that it needs to be in the 10's of thousands to cause it to crash.

    What did you try in MMF to cause it to crash and how many loops?

    I assume you want to use X and Y in the math. As long as you aren't adding 32 to the loop index it should be fine to run a loop like that. Just multiply the loop index by 32 to get the value you're after within your math.

Similar Threads

  1. Possible loop bug?
    By Panchos in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 18th December 2013, 05:01 PM
  2. Replies: 7
    Last Post: 25th December 2012, 11:26 AM
  3. fast loop and loop index
    By willow in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 18th May 2010, 01:43 AM
  4. Fast loop within fast loop - platform game
    By Safe in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 16th April 2010, 07:38 AM
  5. Start loop "loop" 'Alterable Value A' times
    By Dynamite in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 9th May 2009, 07:26 AM

Posting Permissions

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