User Tag List

Results 1 to 6 of 6

Thread: another stupid question - set look dir to X, Y pos

  1. #1
    No Products Registered

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

    another stupid question - set look dir to X, Y pos

    hi there

    is there any way to set look in direction of X(value), Y(value) without any additional active object? (at runtime) I tought direction calculator was for it but it still rotates toward a fixed direction that is static or related to another object

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: another stupid question - set look dir to X, Y pos

    You can use advanced direction object.
    Set the directions to 32 (standard 360).
    Then change the direction of your active to
    LongDir("Advanced Direction Object",X("Active"),Y("Active")x,y)

    X/Y("Active") = pos of your active that should look to a point.
    x/y = coordinates of the point.

    You find this expression in the expression editor that way:
    "Advanced dir. object" -> "distance and direction between two points" -> "Long values" -> "Direction [...]"


  3. #3
    No Products Registered

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

    Re: another stupid question - set look dir to X, Y pos

    + + + + + great

    *many thanks*

  4. #4
    No Products Registered

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

    Re: another stupid question - set look dir to X, Y

    almost - :p It seems the active keep shaking once it reaches the destination - I've uploaded an example file

    http://rapidshare.com/files/82449844/shakingball.mfa

    I wonder which is the best way to fix that without adding objects

  5. #5
    No Products Registered

    Join Date
    Feb 2007
    Posts
    199
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: another stupid question - set look dir to X, Y

    I havent looked at your example but it's probably because once you reach the destination (standing on the spot) you can't face it anymore can you?

    You could add a condition to check the distance between the ball and it's destination, so it only faces it when it hasent reached it yet.

    LongDist( "Advanced Direction Object", X( "ball" ), Y( "ball" ), destination x, destination y > 0


  6. #6
    No Products Registered

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

    Re: another stupid question - set look dir to X, Y

    oh. it was so simple that I'm now embarrassed. :blush:
    (tried with lame x<x + y<y events) thanks

Similar Threads

  1. May be a stupid question but...
    By WEich1213 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 10th November 2013, 04:38 AM
  2. Maybe a stupid question
    By Outcast in forum Android Export Module Version 2.0
    Replies: 1
    Last Post: 12th October 2013, 04:58 PM
  3. Stupid question
    By Winston in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 8th January 2008, 09:15 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
  •