User Tag List

Results 1 to 3 of 3

Thread: Chain of objects

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Chain of objects

    I'm trying to create a chain of objects that are tied to each other . Here's what I do:

    Ten of these objects are created, each given a unique value for loops, 0 to 9. Each object is supposed to be tied to the object just above it in "rank".

    Here's how I've tried to do it (and failed):

    I've given this object a qualifier, and the code looks like this:
    * on loop "chain"
    + object alt. value a = LoopIndex("chain")
    + object alt. value a <> 9
    + qualifier-object alt. value a = object alt. value a +1

    = set object position to qualifier-object position

    But this loop doesn't seem to execute at all because of the last condition. What am I doing wrong?

  2. #2
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Chain of objects

    The problem is that the qualifier is just a convenient group, it can't be selected individually. MMF just sees "object alt. value a = object alt. value a +1"

    The solution is to use a "proxy" object. Loop through objects 0-8. Set the position of the proxy object to the position of the object with that ID. (Seperate line) Set position of object with the next ID (ID+1) to the position of the proxy.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Chain of objects

    Clever!

    Thanks for your help!

Similar Threads

  1. Physics Chain
    By Tiger in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 20th August 2011, 01:47 AM
  2. A Chain of Events
    By Gimbabwe in forum Multimedia Fusion 2 - Technical Support
    Replies: 17
    Last Post: 3rd August 2011, 09:13 PM
  3. Spring-Chain II :)
    By UltimateWalrus in forum File Archive
    Replies: 39
    Last Post: 19th October 2009, 09:36 PM
  4. Chain...
    By Attan in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 11th October 2007, 01:40 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
  •