User Tag List

Results 1 to 2 of 2

Thread: How to reference clone object using For Loop index

  1. #1
    Clicker Fusion 2.5

    Join Date
    Jul 2016
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question How to reference clone object using For Loop index

    Hello, I am building an inventory screen and have a clone object for each inventory slot: invSlot, invSlot 2, etc... During my For Loop which checks a condition for each invSlot object, can I reference each object using the Loop's index rather than having to create dozens of hard written conditions for each clone?

    Thanks

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Since they are clones I assume you've put a qualifier in them to launch the Foreach loop, correct?

    You can "mark" them directly from the frame editor, in their alterable values,
    you can name an alt. value "slot_no" and give it an incremental ID,
    then you can reference the specific slot by filtering its ID

    user click on (group slots)
    >>> set "slot_picked" counter to "slot_no(group slots)"

    (just a generic example, to display in a counter the slot number you picked when you click on a slot)

Similar Threads

  1. Built-in Foreach Loop Index
    By casleziro in forum Fusion 2.5
    Replies: 5
    Last Post: 8th July 2015, 05:11 AM
  2. An example for Keli reference button index questio
    By BaconUk in forum File Archive
    Replies: 0
    Last Post: 31st December 2010, 09:12 AM
  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. Bug with comparing a var to a loop index
    By mobichan in forum File Archive
    Replies: 2
    Last Post: 6th January 2010, 03:45 PM
  5. Loop Index?
    By Leric in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 25th July 2006, 08:40 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
  •