User Tag List

Results 1 to 6 of 6

Thread: Comment tracer une ligne d'une actif un autre ?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Apr 2015
    Posts
    172
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Comment tracer une ligne d'une actif un autre ?

    Bonjour,

    Comment faire pour tracer une ligne d'un actif un autre en sachant qu'un des 2 actifs peut se dplacer (evidement la ligne doit le suivre, sinon c'est pas drle).

    Merci

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Apr 2015
    Posts
    172
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    C'est bon, j'ai trouv.
    C'est une ligne droite mais ca va faire le taf ^^
    Pour info :
    (actif, petit rectangle noir) Toujours
    Fixer l'echelle en X > Sqr(( ( X( "origine" ) - X( "destination" ) ) pow 2 ) + ( ( Y( "origine" ) - Y( "destination" ) ) pow 2 ))
    Fixer l'angle > ATan2(Y( "origine" ) - Y( "destination" ), X( "destination" ) - X( "origine" ))

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)
    Linky's Avatar
    Join Date
    Mar 2020
    Location
    Egypt
    Posts
    258
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just to add: doing distance this way is very precise, but can be somewhat overkill for this situation
    to save a little bit of processing power and make the calculation simpler, just use the built in Distance with a point expression
    Code:
    ODistance( "Active", >X of point<, >Y of point< )
    You can find it under the position section of objects expressions, it takes 2 parameters, of which are the target X and Y positions

    There is also a built-in Angle of a vector expression (found in the same section)
    Code:
    OAngle( "Active", >X of point<, >Y of point<)
    but its integer based so it wil be jittery and not very accurate, not very suitable for situations like this

    try replacing the distance calculation with the built in one and see if there is any noticeable difference, if not then just use the built in one

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Apr 2015
    Posts
    172
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi, can you give an example .mfa ? i don't get why to use them for drawing a line.

  5. #5
    Clicker Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)
    Linky's Avatar
    Join Date
    Mar 2020
    Location
    Egypt
    Posts
    258
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    • Click and drag the points to move them
    • Use the Checkboxes to change the rotation/resize method of the line

    Example: Line.mfa
    Line.png

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Apr 2015
    Posts
    172
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice, the second method is less precise but greatly more easy to use. thanks for the example.

Similar Threads

  1. Replies: 1
    Last Post: 13th April 2016, 09:37 AM
  2. Passage d'un Actif d'une scne l'autre
    By B0b in forum File Archive
    Replies: 7
    Last Post: 3rd February 2011, 10:38 PM
  3. [Flash] Comment enregistrer un score en ligne
    By Monos in forum SWF/Flash Export Module Version 2.0
    Replies: 11
    Last Post: 23rd December 2010, 01:40 AM
  4. Comment sauter une ligne dans un fichier .txt ??
    By BackStaged in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 1st August 2010, 03:41 AM
  5. Remplacement objet actif par un autre
    By floflo in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 3rd January 2009, 11:51 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
  •