User Tag List

Results 1 to 3 of 3

Thread: [problem] Creating, pairing and positioning through loop

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Vilhjalmr's Avatar
    Join Date
    Mar 2014
    Location
    Sweden
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [problem] Creating, pairing and positioning through loop

    I have a weird problem trying to position objects that have been created and paired through loops.

    I have managed to create a dog owner and three markers that serve as invisible reference points for his dogs. First I create the owner and run the loop for creating the markers 3 times in the same event. In this loop another loop is run to increment the marker's ID for positioning. Then, from the first event, I fire (after 1/100s) the forEach to create three dogs and pair them with each marker.

    Three dogs are created and they have "stayMarker" paired with the markers' fixed value. But when I try to have them positioned at the markers it only works for one dog even though they all are paired.

    position.png

    position2.png

    Any help very much appreciated!

  2. #2
    Clicker

    Fusion 2.5Android Export Module

    Join Date
    Jan 2007
    Posts
    278
    Mentioned
    8 Post(s)
    Tagged
    1 Thread(s)
    Can you post a mfa of the isolated code please?

    What happens if you change this on line 273?

    Stay Marker = Fixed
    to
    Fixed = Stay Marker

    Also . . . do you really need the foreach loop? Try deleting condition #2 on line 273 and changing the "For Each" loop condition to "Always"

    I've attached a MFA. You can see in the MFA that fusion pairs the dogs to the sit points automatically. No need for fixed value linking or for-each loops for positioning.
    Attached files Attached files

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Vilhjalmr's Avatar
    Join Date
    Mar 2014
    Location
    Sweden
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    "Stay Marker = Fixed
    to
    Fixed = Stay Marker"

    That did it, thanks!
    When I remove the for each they all stack upon the last marker. My dogs are created on the correct place but I need them to follow the markers when they move in relation to the owner.

Similar Threads

  1. For each loop pairing with object
    By AndyBazooka in forum Fusion 2.5
    Replies: 8
    Last Post: 24th May 2018, 10:54 PM
  2. Pretty simple multi-instance pairing problem
    By FlipSwitchX in forum Fusion 2.5
    Replies: 4
    Last Post: 14th September 2015, 02:27 AM
  3. Positioning Windows control object positioning based on resolution?
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 21st August 2013, 03:32 PM
  4. Sync bug when creating/positioning an object?
    By JoKa in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 24th July 2010, 10:24 AM
  5. Dynamically creating and positioning edit boxes
    By shotymac in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 27th November 2007, 01:24 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
  •