User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 14 of 14

Thread: Loops in events break scope from that point?

  1. #11
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)
    Fastloops are actually a great way to control scoping when dealing with ForEach loops. I often use them to reset any scoping that might exist before running a ForEach.

  2. #12
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)
    elvisish's Avatar
    Join Date
    Oct 2014
    Posts
    824
    Mentioned
    19 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by mobichan View Post
    Fastloops are actually a great way to control scoping when dealing with ForEach loops. I often use them to reset any scoping that might exist before running a ForEach.
    Interesting use of them, I’ll keep that in mind. But why on the second example I posted do the fastloops at the end of the action break the scoping?

  3. #13
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)
    Honestly, I am not sure. I think that double check is probably the cause. But I rarely use "Collision with object" and almost always use "Object is Overlapping" which then triggers a fastloop/forEach loop to do the actual collision check. But that is mostly because I have other things going on that I need the scoping of the loop to handle. I also haven't used child events yet, so I can't really say how that is affecting scoping.

  4. #14
    Clicker

    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
    May 2015
    Posts
    141
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Your second example may actually have something to do with triggering a destroy action in the same event as a fast loop. I think I recall another user having a similar issue once upon a time. As a test, try doing something other than destroying the object and see if scope can be maintained.

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. For Each Loops and Overlap Scope
    By rocketappliances in forum Fusion 2.5
    Replies: 4
    Last Post: 14th April 2015, 05:08 PM
  2. Possible Physics Floating Point or Scope Issue?
    By rocketappliances in forum Fusion 2.5
    Replies: 7
    Last Post: 27th January 2015, 11:58 PM
  3. Replies: 1
    Last Post: 7th November 2014, 07:16 AM
  4. Order of Events for Loops
    By Ethan in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 15th January 2013, 05:33 PM
  5. Stuck on fast loops in floating point movement.
    By N64Mario in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 29th July 2009, 04:54 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
  •