User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 18

Thread: Fast Loop to position object over empty box

  1. #1
    Clicker Multimedia Fusion 2 Developer
    stillhawk's Avatar
    Join Date
    Jun 2007
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Fast Loop to position object over empty box

    I have been trying to understand fast loops for quite a while. I have studied the tutorial, read extensively through the forum, and experimented. For some reason, I just don't get it. So here is my situation:

    I have an active object duplicated 12 times and spread value from 1-12. These are my "boxes." Then I have items (active objects) that need to be stored in the boxes. When the item is clicked, it should overlap the first "empty" box in the row of 12 boxes. It might be the first box, the last box or any box in between.

    I thought that a fast loop would be the best way to identify the empty box and position the item in it, but I just don't know how to do it.

    Would it be possible for someone to make an example for me that accomplishes this?

    I would be ever so grateful.

    Thanks,
    stillhawk

  2. #2
    Clicker iOS Export Module

    Join Date
    Feb 2010
    Location
    Behind the tree!
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    click on item active > start fastloop "search for empty box" (count number of box active times)

    on loop "search for empty boxs"
    +box active spread val = loopindex"search empty box"
    + active boxs alt val "is box empty?" = 0
    >set xy pos of item to box activexy
    +set "is box empty?" to 1
    +stop fast loop"search for empty box"

    This loops through the boxs, checks for first empty box, when it finds one it sets the alt val of rhe box to not empty (so it's not included in loop next item you click), repositions active item, then it stops the loop.

  3. #3
    Clicker iOS Export Module

    Join Date
    Feb 2010
    Location
    Behind the tree!
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also check out "The Definitive Guide To Fastloops!" video on the tutorials page. Press the space bar to move speed it i up.

  4. #4
    Clicker Multimedia Fusion 2 Developer
    stillhawk's Avatar
    Join Date
    Jun 2007
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Bigfoot View Post
    Also check out "The Definitive Guide To Fastloops!" video on the tutorials page. Press the space bar to move speed it i up.
    As I said, I read this. Sorry I called it the Tutorial. Thanks.
    I am trying to understand your directions.

  5. #5
    Clicker Multimedia Fusion 2 Developer
    stillhawk's Avatar
    Join Date
    Jun 2007
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Bigfoot,
    I am unable to write the loop as you suggest. Again probably due to my lack of understanding.
    Would you create an example for me that I can download.
    Thanks so much for your efforts.

    By the way if anyone else can do what Bigfoot says or has a better idea, I would welcome examples.

    Thanks,
    stillhawk

  6. #6
    Clicker iOS Export Module

    Join Date
    Feb 2010
    Location
    Behind the tree!
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  7. #7
    Clicker Multimedia Fusion 2 Developer
    stillhawk's Avatar
    Join Date
    Jun 2007
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Bigfoot,
    Thanks so much for the example. I can see it works quite well the way you set it up. I am going to test it now the way I need to use it. I so appreciate your help. Check back with you in a little bit.
    stillhawk

  8. #8
    Clicker Multimedia Fusion 2 Developer
    stillhawk's Avatar
    Join Date
    Jun 2007
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Bigfoot,
    In your example, you have created the "items" as duplicates of a single item and then spread the id value. However, in my game the "items" are each unique active objects. I have tried to rewrite your approach, but frankly I am stuck. I tried several things including a qualifier for my active items, but I just can't make it work. Sorry my lack of knowledge in this area is a severe limitation.

    Would you be kind enough to rewrite yours using 6 unique active objects as "items" nstead of the way you did it?

    Thanks so much for all your efforts.
    stillhawk

  9. #9
    Clicker Multimedia Fusion 2 Developer
    stillhawk's Avatar
    Join Date
    Jun 2007
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Bigfoot,
    I have been able to create a modification to your approach which appears to have great promise. I will continue working with it. I want you to know how much I sincerely appreciate your assistance. I would like to give you credit in my game (which I hope to finish sometime in the next year). PM me with your real name so that I can include it in the credits. You are the man!!

    Thanks so very much,
    stillhawk

  10. #10
    Clicker iOS Export Module

    Join Date
    Feb 2010
    Location
    Behind the tree!
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, just group the item clones in a qualifier. It's a bit harder to read because mmf doesn't allow you to edit the names of qualifier al values, but it does the same.

    http://community.clickteam.com/showthread.php?t=69103&p=511913#post511913

Page 1 of 2 1 2 LastLast

Similar Threads

  1. "Caret" problems with the Rich Edit Object/Fast Loop Question
    By Gullyking in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 4th June 2012, 04:41 AM
  2. Pixel object and fast loop
    By Greg in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 4th July 2010, 09:40 PM
  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. Fast Loop Object Question...
    By fawfulfan in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 7th January 2009, 11:46 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
  •