User Tag List

Results 1 to 5 of 5

Thread: ForEach for only objects in window

  1. #1
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ForEach for only objects in window

    Is there any way to run ForEach loops for only objects in the visible window? As it is I only know how to run loops for all objects in the entire frame in question that the loop is made for.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    In the on loop event, add a condition "Object is in the playfield", this should filter out the objects that are out of the frame.

  3. #3
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The main reason I'm asking is because I have to have a ForEach loop for all active objects in the entire frame, which slows down my game immensely on this netbook of mine (which is all I have to use for now) so I was hoping there was a way to cut down on loop iterations.

    This is weird though, I tried that at first and it didn't work, but now it does.

    Only problem now is, for some reason it says there are 9 maximum iterations when nothing is on the screen but my playable character.

  4. #4
    Clicker Fusion 2.5iOS 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)
    SolarB's Avatar
    Join Date
    Feb 2012
    Location
    Melbourne
    Posts
    904
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    maybe try:

    object is < x pixels from edge

  5. #5
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well I figured out why it has the extra iterations, I forgot that some things that are included in the loop which are invisible most of the time are still on screen.

Similar Threads

  1. Understanding ForEach Object and Parent/Child Objects...
    By TheFieryPlumber in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 24th May 2013, 03:19 PM
  2. ForEach Object: Number of objects in group sometimes wrong on iOS device - Beta6
    By AyreGuitar in forum iOS Export Module Version 2.0
    Replies: 6
    Last Post: 11th May 2012, 12:59 PM
  3. Objects in the window
    By Kentronisk in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 14th November 2011, 09:08 AM
  4. Resize Objects that fits window frame bottom
    By DJ_Wild in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 28th March 2009, 02:54 PM
  5. Window shape using objects other than actives?
    By moomoo in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 14th April 2007, 10:09 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
  •