User Tag List

Results 1 to 3 of 3

Thread: Active Object Coordinate math help.

  1. #1
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,138
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Active Object Coordinate math help.

    I have an active object which has different vertical sizing and action points/hot spots depending on it's animation frame. I'd like to use the Easing Object to make sure the "Y Bottom" of the active is always eased into the same coordinate. Basically, the bottom of the Active always touches a specific point, though its eased into that point.

    How can I accomplish this? This is an area where my math skills are really cutting me short. I just can't figure it out.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS 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)
    PlasmaVoid's Avatar
    Join Date
    Jan 2015
    Location
    SoCal
    Posts
    85
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If Y Position Of Bottom Edge("Object") > Target Bottom Y
    -Set Y Position("Object") To (Y Position("Object") - 1)

    If Y Position Of Bottom Edge("Object") < Target Bottom Y
    -Set Y Position("Object") To (Y Position("Object") + 1)

  3. #3
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,540
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Does the difference between the bottom of the active and the hot spot change throughout animations, or is it static?
    If its static, you need only replace the "X" in any formula with "X-N", where N is the difference between the bottom edge and the hotspot
    So if you had something like:

    Set Y position of object to:
    >Coordinate + (Y position of object - Coordinate)*0.9

    making it always line up with a bottom edge of +8 distance would simply be:

    Set Y position of object to:
    >(Coordinate + ((Y position of object + 8) - Coordinate)*0.9) - 8

    You could calculate that offset dynamically if it changes, but it might looks wonky if its changing by large amounts, the other trick is to have your object's animation resolve to something static in the time it takes to ease in, and then just use that as the static offset even if it wouldn't sync up with the previous frames.

Similar Threads

  1. save coordinate clone object. Very important
    By daniele in forum File Archive
    Replies: 6
    Last Post: 8th August 2011, 02:27 AM
  2. Save coordinate x-y for more clone object
    By daniele in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 7th August 2011, 08:34 PM
  3. Move an active object towards another using math.
    By keokeo in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 23rd December 2010, 06:12 PM
  4. Look at Coordinate without having an object
    By IY5 in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 2nd February 2010, 03:32 AM
  5. Check if x/y-coordinate is overlapping an object?
    By the_raven in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 5th April 2009, 12:09 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
  •