User Tag List

Results 1 to 3 of 3

Thread: Creating Line By Resizing? Active Object Sample

  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 Sample

    This file, under the Line group, duplicates the code below. But no line is drawn. How come? Any help appreciated.

    Steve

    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"))
    _________________________
    JacobPariseau
    Attached files Attached files

  2. #2
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,784
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)

    Re: Creating Line By Resizing? Active Object Sample

    Hi,

    the problem is that the line is drawing outside the frame.

    try to do this.

    create event

    Start of Frame-> and set the line object to back (Order)

    in you last line of group Line

    below the Atan2 calculations

    add the following action

    choose active Line, and set position 0,0 relative to pendulum1

    and that is all in the event.

    choose line for the image editor and set the hot spot and action spot to the center bottom.

    this should fix it.

    hope its help
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  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 Sample

    Thanks. It works now! Very usefull idea which saves trying to use the Overlay Redux or Suface object which add many other complications.
    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
    By drnebula in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 4th April 2011, 03:24 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
  •