User Tag List

Results 1 to 5 of 5

Thread: Trouble With Loops and Getting Values

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    redpandagames's Avatar
    Join Date
    Dec 2011
    Posts
    378
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Trouble With Loops and Getting Values

    (Frustrated!) I know exactly what I need to do, I just can't find what to click on.

    I want to assign the same action with a fast loop to all of my objects (I have over 250).

    If object's x value is less than 200,

    then object's x value is equal to 0.

    Basically, I want all objects to snap into the same position once they've reached an x-coordinate of less than 200.

    I want to use a fast loop, but I can't figure out what value I need to retrieve and what value I need to set to apply the expression to all objects.

    Thanks in advance.

  2. #2
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    If you want to use a fast loop, then you need add all of your objects to the same group, then make events:

    Always -> Spread Value 0 in Alterable Value A of (object group)
    Always -> run fast loop "loop" for number of objects in (object group)
    then do the fast loop condition:

    On fast loop "loop"
    +alterable value of object group object = loopindex("loop")-1
    +obj

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    redpandagames's Avatar
    Join Date
    Dec 2011
    Posts
    378
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Konidias View Post
    If you want to use a fast loop, then you need add all of your objects to the same group, then make events:

    Always -> Spread Value 0 in Alterable Value A of (object group)
    Always -> run fast loop "loop" for number of objects in (object group)
    then do the fast loop condition:

    On fast loop "loop"
    +alterable value of object group object = loopindex("loop")-1
    +obj

    @ snail - It doesn't matter how far to the left of the screen the object goes. It must always return to 0. I want to use a loop because I don't want to assign the same action to over 200 objects.

    @ Konidias - Thanks for your help, but I'm still not sure what to do. I'm not really sure how to assign the objects to a group unless it's just the "Pick All Objects in a Zone" crystal thing, but I still can't assign a name to it.

    I know that this seems easy. The problem is that I can't find WHAT to click on to find things like "spread value", etc.

    Also, do I really need a group? It seems like a loop should be able to run through all active objects without having to assign them to a group...

    If someone can upload a sample project, I think it will be easier and faster than trying to explain it.

  4. #4
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Here ya go... By "group" I mean "qualifier group".

    You can find that by clicking on an object in the frame editor and going to the Events tab.

    Also... the reason you can't just do "all the objects" is because you need to be able to specify one object to check it's alterable value. So that is why you put them into a qualifier as this way you can use that qualifier to represent all the objects that have it.

    Are the 250 objects unique or just instances of a few objects?
    Attached files Attached files

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    redpandagames's Avatar
    Join Date
    Dec 2011
    Posts
    378
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Konidias View Post
    Here ya go... By "group" I mean "qualifier group".

    You can find that by clicking on an object in the frame editor and going to the Events tab.

    Also... the reason you can't just do "all the objects" is because you need to be able to specify one object to check it's alterable value. So that is why you put them into a qualifier as this way you can use that qualifier to represent all the objects that have it.

    Are the 250 objects unique or just instances of a few objects?
    Thank you! Yeah, all of the objects are unique. I think I can figure this out now. If not, I'll be cutting and pasting a lot of line items.

Similar Threads

  1. Fast Loops vs Grouped Fast Loops vs ForEach
    By Ryan in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 6th August 2010, 12:22 PM
  2. Having trouble spreading values on detectors
    By ionside in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 25th March 2009, 01:42 PM
  3. General Question of Loops and Shared Values
    By artician in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 14th June 2008, 02:04 AM
  4. Loops, spread values and other advanced concepts
    By Jinks in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 8th May 2008, 09:57 AM
  5. little confused abouts loops inside loops!
    By Gibbon in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 30th January 2007, 06: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
  •