User Tag List

Results 1 to 4 of 4

Thread: Simple Pairing by IDs ... but it is not working ((

  1. #1
    Clicker
    anatol's Avatar
    Join Date
    Jun 2016
    Posts
    70
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Simple Pairing by IDs ... but it is not working ((

    I tried to pair my objects by IDs.
    So i copy ID from Object1 to Object2. Now both of my object have similar IDs..
    Then if :

    Id of Ob1 = ID of Ob2
    > PosX of Ob1 = PosX of Ob2

    But this is not working as i expect In some frames Ob2 falls off from Ob1 and stand still on screen.
    What i'm do wrong ?
    Attached files Attached files

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)

    Join Date
    Sep 2017
    Location
    Milano, Italy
    Posts
    108
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You need a loop to search all the parent-children couple or you are looking only on the last one.
    To fix this I added a "Children" qualifier to the red square active, and check with a foreach loop on the green circle where is the match between the Circle ID and the Children ID.

    I used this method massively in a labirinth like game to pairing all the monsters position (sprite-sensor parent-child)

    Take a look at your modified example
    Attached files Attached files

  3. #3
    Clicker
    anatol's Avatar
    Join Date
    Jun 2016
    Posts
    70
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thank you !!I appreciate your help

  4. #4
    Clickteam Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleInstall Creator Pro
    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)
    BartekB's Avatar
    Join Date
    Aug 2013
    Posts
    609
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I've made this example a long time ago showcasing a "Parent & Child" system people can use in their games, it's rather simple: ForEach Child To Parent Example.mfa

    If you just want to see a barebones system at work (without all the spinning maths, etc): ForEach ParentChild System.mfa
    - BartekB, a.k.a Uppernate
    Join the Click Converse Discord! - https://discord.gg/7RNXFrC
    Dungeon Raiders! - Link soon™

Similar Threads

  1. Conditional Object Pairing broken?
    By PotatoMerchantz5 in forum Fusion 2.5
    Replies: 4
    Last Post: 15th June 2016, 11:11 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. Pairing nearest objects
    By K_Tetsu in forum Fusion 2.5
    Replies: 9
    Last Post: 2nd September 2014, 04:30 PM
  4. Launching a program not working - hopefully simple!
    By Redsquirrel in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 19th November 2013, 07:27 AM
  5. Automatic pairing?
    By arsdigita in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 14th April 2011, 03:04 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
  •