User Tag List

Results 1 to 8 of 8

Thread: attaching objects

  1. #1
    No Products Registered

    Join Date
    Dec 2006
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    attaching objects

    I'm trying to attach arms to my (platform)character, but I have no clue how to go about it. I have the two active objects but I don't know how to group them.

    I need the arms to move with body.

    I have the arms (with weapons in them) and the body seperate so I can change weapons.

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: attaching objects

    It's as simple as:

    Always -> Set position of "arms" to (x, y) from "body".

    This will make the arms always follow the body around. Depending on the build you're using and how you're doing the actual movement of your character, there may be a small amount of lag between the objects...

  3. #3
    No Products Registered

    Join Date
    Nov 2006
    Location
    San Francisco, USA
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: attaching objects

    I've used that method to attach two objects before, but it does have lag when the parent object moves too fast like DavidN said. is there any way to avoid this? can fastloops once again save the day?

  4. #4
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: attaching objects

    This is because the standard movements are handled after the event list - so objects that have their position set to others will still be a little behind by the time the screen updates. I think that this was fixed in build 243, but I haven't tested it too extensively.

    If you're using a movement that's handled entirely by events, just put the "Set position" event further down the event list than any action that moves the first object.

  5. #5
    No Products Registered

    Join Date
    Dec 2006
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: attaching objects

    Thanks for the answers.

    It worked, though it does however lag a little, plus when I walk into walls the arms carry on a few pixels further than the body.
    Another issue I have, is that the arms are jittering??? Looks like they are moving by one pixel very quickly. Very strange... I even removed their animation and they still judder.

    Any ideas?

    Thanks

  6. #6
    No Products Registered

    Join Date
    Jul 2006
    Posts
    375
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: attaching objects

    the "jitter" might be the way your animation(s) are set up... Do the arms move (swap) with the body? You might want to set anim frame to the torso's frame... (and same anim...stopped, moving, etc... and dir as well...)
    You may see less lag if you play with things like instead of

    "Always", try "Is Torso Visible?" --- set arm position...

    I made a game once with cars, an dthe body was made of 9 pieces, they would lag using "always", but won't if I used something else, like "is car frame's Flag "on"?"


  7. #7
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: attaching objects

    To get rid of jitter you could make all of the linked visible objects actually set their position to an invisible object.
    .:::.Joshtek.:::.

  8. #8
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2006
    Location
    Hampshire, UK
    Posts
    963
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: attaching objects

    The lag occurs due to you setting the "set position" event BEFORE the "move character event. Therefor the position it is set to is the position before the character moves.

Similar Threads

  1. Attaching several objects to several objects?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 17th March 2012, 03:37 PM
  2. Attaching shadows to active objects
    By Cybert9 in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 22nd January 2012, 07:08 PM
  3. Attaching Health to Bad Guy
    By cchapeton in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 23rd June 2010, 02:05 AM
  4. Attaching multiple active objects
    By artician in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 2nd February 2009, 12:56 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
  •