User Tag List

Results 1 to 5 of 5

Thread: Lines connecting multiple objects

  1. #1
    Clicker Multimedia Fusion 2Android Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)iOS Export Module (Steam)
    Mr_A's Avatar
    Join Date
    Sep 2014
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lines connecting multiple objects

    I'm trying to make a "match X gems" game, and I would like to make a line that connects each selected gem to the next one.

    gem-segment.jpg

    I'm working with the clever example posted by Popcorn here , that stretches and rotates a square active object using the calculations of Clickteam Movement Controller and the fixed values of the two balls to connect.
    The issue is that I have to connect more than two gems and they're basically the same object (they have the same qualifier/group), so I'm having a hard time telling Fusion which fixed value it should use.


    So far I managed to create a "segment" for each "gem". The idea was to set the alterable value A of segment to the fixed value of its gem, and then to do
    if segment's alterable value A = gem's fixed value => set position of segment to position of gem
    For some reason it's not working, when I move the gems around the segments stay where they are.

    I also managed to increment a counter of 1 unit every time the mouse moves on a new gem, and set the selected gem's alterable value N to this counter value. This way I've got the "selection order" of the gems (the first clicked gem has 1, the second has 2 and so on).
    Then I need to pass this value to that gem's segment, but since the condition above is not working I can't.

    My masterplan was to do something like
    If segment's alterable value N = selected gem's alterable value N -1 => scale segment's X to distance between segment and selected gem etc...


    Do you guys have any better idea, or do you know what I'm doing wrong?
    Attached files Attached files

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Sparckman's Avatar
    Join Date
    Feb 2011
    Location
    Planet of the Kangaroos
    Posts
    1,396
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    how about using actual images of lines in different angles - if they are overlapping 3 gems they blow up.

  3. #3
    Clicker Multimedia Fusion 2Android Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)iOS Export Module (Steam)
    Mr_A's Avatar
    Join Date
    Sep 2014
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually I've got no problem blowing the gems up, what I want to achieve is a similar effect to the first image.
    Also I can't have the lines already drawn because my gems won't be positioned in a grid, so the angles won't be necessarly 90 or 45°.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Hey, it seems to me like what you're doing might work if you attach a ForEach loop to it!
    I do have several examples of attaching multiple objects, but they all are at my main computer and I am at holidays now.
    I can mock up a general example for you if needed.

  5. #5
    Clicker Multimedia Fusion 2Android Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)iOS Export Module (Steam)
    Mr_A's Avatar
    Join Date
    Sep 2014
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It would be awesome to have something to look at, thank you.

Similar Threads

  1. Radio button: multiple lines?
    By Literswater in forum Fusion 2.5
    Replies: 2
    Last Post: 17th February 2015, 08:41 PM
  2. Chart Object, multiple lines?
    By Gibbon in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 21st August 2012, 10:09 AM
  3. Adding multiple lines at once
    By weka in forum SWF/Flash Export Module Version 2.0
    Replies: 6
    Last Post: 10th May 2010, 10:17 PM
  4. Phizix: Multiple Lines in Body
    By Jaffob in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 12th November 2008, 09:21 AM
  5. program for adding multiple lines in a config
    By Extrabine in forum Install Creator and Patch Maker
    Replies: 2
    Last Post: 13th August 2006, 10:43 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
  •