User Tag List

Results 1 to 7 of 7

Thread: Average of X and Y positions (Identical Objects)

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)
    DuckJohnn's Avatar
    Join Date
    Aug 2016
    Posts
    41
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Average of X and Y positions (Identical Objects)

    Hello. How can I get average X and Y coordinates from objects, which are identical (copies of each other).
    Itís easy if each object was unique or if there were always the same number of objects, but I donít know how to do it from copies/clones (which are different number of objects every time.)
    Attached files Attached files

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)

    Join Date
    Apr 2019
    Location
    Earth
    Posts
    18
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    To do it, just clone your object. Right click on an object -> Clone Object -> ...

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)

    Join Date
    Apr 2019
    Location
    Earth
    Posts
    18
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    @DuckJohnn
    As I can see, you are just creating other objects. But you can't actually find a middle X and middle Y due to count of objects. Which objects we should check?

    Sorry.

  4. #4
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)
    DuckJohnn's Avatar
    Join Date
    Aug 2016
    Posts
    41
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    What are you talking about? I'm not that bad at this >:S I've used Clickteam over 5 years xd
    I want to get the average X and Y coordinates from each duplicate object to two counters. X average from every object and Y average from every object. As I said. It's easy if the objects were different, but this time they are duplicates. They should be able to count so that there are a different number of objects each time.

  5. #5
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)

    Join Date
    Apr 2019
    Location
    Earth
    Posts
    18
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    If you want to get average X and Y from TWO objects, then you have to create more strings which will contain that. Because I really have no Idea which objects we should check if there are many of them. Nearest or what? I didn't get it

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLC
    PlayDay's Avatar
    Join Date
    Aug 2018
    Posts
    32
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Hi, Iím still learning a lot, but I think I have a fix for the averages.

    I didnít use counters, but instead used an active to hold the variables. Iím not sure how much math you can do in a counter.
    The ďfor eachĒ loop needs two parts, I added the second part and used it to total the position coordinates, and count objects.
    I zero out all the counters each 1 second when you change all of the coordinates.

    Enjoy. It was fun working on someone elseís problem for a change of pace ()
    Attached files Attached files

  7. #7
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)
    DuckJohnn's Avatar
    Join Date
    Aug 2016
    Posts
    41
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Sorry for the slow response. I was elsewhere. This seems to work perfectly. That's how I wanted it to work. Thanks
    I tried a bit of something similar before, but for some reason I didn’t get it to work.
    I'm new with "foreach" objects, loops and stuff so I thought something else had to be done in it.

Similar Threads

  1. Jointing Two Identical Objects
    By robofish126 in forum Fusion 2.5 Free Version
    Replies: 0
    Last Post: 2nd September 2019, 12:16 AM
  2. comparing values of 2 identical objects
    By djwysiwyg in forum Fusion 2.5
    Replies: 2
    Last Post: 30th July 2017, 07:43 PM
  3. Get average of multiple objects alt.val
    By SolarB in forum Fusion 2.5
    Replies: 2
    Last Post: 26th May 2014, 01:14 PM
  4. Finding the distance between 2 identical objects
    By gkinfinity in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 30th December 2012, 12:08 AM
  5. Activating 1 object out of many identical objects?
    By camelman in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 16th November 2008, 05:42 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
  •