User Tag List

Results 1 to 4 of 4

Thread: Creating Line By Resizing? Active Object

  1. #1
    Clicker Multimedia Fusion 2 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    drnebula's Avatar
    Join Date
    Jul 2006
    Location
    Pennsylvania, USA
    Posts
    908
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Creating Line By Resizing? Active Object

    Quite a while ago, someone posted an example of how one could create a line between two moving active object. They did it by resizing or doing something to an active object that served as the line. Now I can't find that example post. Does anyone have a copy or know how this was done? Any help appreciated.
    Steve

  2. #2
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating Line By Resizing? Active Object

    Likely what they did was make an active with a height of the thickness of your line, and a width of 1px. Then the events

    Always:
    Set Angle to 0
    Set X Scale to sqr((X("Object 2")-X("Object 1")) pow 2+(Y("Object 2")-Y("Object 1")) pow 2)
    Set Angle to atan2(Y("Object 1")-Y("Object 2"), X("Object 2")-X("Object 1"))

  3. #3
    Clicker Multimedia Fusion 2 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    drnebula's Avatar
    Join Date
    Jul 2006
    Location
    Pennsylvania, USA
    Posts
    908
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating Line By Resizing? Active Object

    For some reason, I cannot get the code to work. I am drawing the "line" from a set point to a pendulum that is swinging back and forth. I don't get anything to show up. Any suggestions on what I could be doing wrong?
    Thanks for the idea.

    Steve

  4. #4
    Clicker Multimedia Fusion 2 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    drnebula's Avatar
    Join Date
    Jul 2006
    Location
    Pennsylvania, USA
    Posts
    908
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating Line By Resizing? Active Object

    I am posting a sample problem in the download section. I think I've duplicated the code exactly. The scale is set to the size of the resultant of the two sides of the triangle formed by the two obects. The angle of the line is set by taking the inverse tangent of the opposite side over the adjacent side. Look under the Line group of events and tell me what I am doing wrong. I could use this idea for all kinds of things.
    Thanks for the help.
    Steve

Similar Threads

  1. Resizing an Active Object
    By haora in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 28th January 2018, 11:08 PM
  2. Creating a line between two active points
    By Apex in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 25th November 2011, 06:21 PM
  3. Creating Line By Resizing? Active Object Sample
    By drnebula in forum File Archive
    Replies: 2
    Last Post: 5th April 2011, 07:45 PM
  4. Background/Active System object resizing runtime
    By IXIStreakIXI in forum Extension Development
    Replies: 1
    Last Post: 31st August 2010, 09:36 PM
  5. MMF - Active Picture Object and Cursor Resizing
    By droberson in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 26th September 2007, 05:16 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
  •