User Tag List

Results 1 to 8 of 8

Thread: Parent an object?

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Parent an object?

    Hi, is there anyway to set and objects parent so all coordinate and rotation changes made to the parent effec the child?

    Basically, i have an object and i want another that stays slightly offset from it. This is fine, but i want main object to rotate also, and the child object to rotate with it at is offset if you understand what i mean?

    Any ideas?

    Thanks
    Andy

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Captain_Harris's Avatar
    Join Date
    Aug 2011
    Posts
    336
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is this like what you mean ?

    always

    >set angle "object2" to angle object1"

  3. #3
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,016
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    Hey Andy,

    If you create both the objects using the 'Create' actions in the same event then when you reference the parent object the child will automatically allocate to the correct one.

    IE:
    Start of Frame:
    +Create Object1
    +Create Object2

    Always:
    Set Position(Object2) to 0,0 from Object1

    For the child to use the parents rotation, just store the parents rotation in an alterable value of the parent and reference that:

    IE:
    Always: Set (Object1, Alterable Value A): Rotation

    Always: Set (Object2 > Rotation to): Object1(Alterable Value A)
    Want to learn Clickteam Fusion 2.5?




  4. #4
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    I might be mistaken but I think the OP wants something like an anchoring system in many other software applications... where you can parent objects and they move around the parent's anchor as it rotates. Not necessarily just rotating angle with the parent. But also adjusting position so it's always in the same place in relation to where it was parented.

  5. #5
    Clicker Fusion 2.5 Developer
    TheFieryPlumber's Avatar
    Join Date
    Oct 2012
    Location
    Delaware
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's a question....(and it may sound similar)
    What happens if the child object has a movement of its own (say a circular "not rotational" or swaying movement), the parent has a movement (constantly moving left) and they both use their movement at the same time? How to make the child have its own movement while still moving with its parent?

  6. #6
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,016
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by TheFieryPlumber View Post
    Here's a question....(and it may sound similar)
    What happens if the child object has a movement of its own (say a circular "not rotational" or swaying movement), the parent has a movement (constantly moving left) and they both use their movement at the same time? How to make the child have its own movement while still moving with its parent?
    Use the CT Movement object to define it's OriginX and OriginY at the X/Y position of the parent
    Want to learn Clickteam Fusion 2.5?




  7. #7
    Clicker Fusion 2.5 Developer
    TheFieryPlumber's Avatar
    Join Date
    Oct 2012
    Location
    Delaware
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't have the CT Movement Object available. Is there a way to do such commands manually (with Alterable Values, Strings and event commands)?

  8. #8
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,016
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    Sure give the Parent Object two alterable values such as Xpos and Ypos then do this:

    Always:
    Set XPos: XPosition("Parent")
    Set YPos: YPosition("Parent")

    This will store the parents X and Y values all the time then. You can now use these in relation to your child object.

Similar Threads

  1. Understanding ForEach Object and Parent/Child Objects...
    By TheFieryPlumber in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 24th May 2013, 03:19 PM
  2. ID / Parent Child connection, object linking, ones and for all
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 28th October 2012, 09:21 PM
  3. Is there a parent child heirarchy object?
    By turtle in forum Multimedia Fusion 2 - Technical Support
    Replies: 18
    Last Post: 12th July 2010, 04:40 AM
  4. Parent-Child?
    By xhunterko in forum File Archive
    Replies: 2
    Last Post: 6th December 2009, 08:18 PM
  5. Get info from parent object? Not possible?
    By Konidias in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 9th September 2009, 11:18 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
  •