User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: Advanced Dir Object - Limiting to 8 directions

  1. #1
    Clicker Fusion 2.5

    Join Date
    Sep 2006
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Advanced Dir Object - Limiting to 8 directions

    Is there a way to rotate an object towards another while limiting it to only eight directions to choose from without using Alterable Values? The example file in the MMF2 directory, as simple as it is, just looks like Greek to me.

  2. #2
    No Products Registered

    Join Date
    Oct 2009
    Posts
    480
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Advanced Dir Object - Limiting to 8 directions

    You could use a calculation by diving the angles (of a circle) into eight sectors and say if angle of object is > 10 but < 20, or something like that, in theory that should work.

    -Variant

  3. #3
    Clicker Fusion 2.5

    Join Date
    Sep 2006
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Advanced Dir Object - Limiting to 8 directions

    That's a bit complicated, and it also has problems when rotating towards the nearest direction (like when it's 1 and it's rotating to 31, it'll turn counterclockwise until it gets to 31 as opposed to going the short distance clockwise). ><

  4. #4
    No Products Registered

    Join Date
    Oct 2009
    Posts
    480
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Advanced Dir Object - Limiting to 8 directions

    It's the 360 degrees of the object your taking about right?

    -Variant

  5. #5
    Clicker Fusion 2.5

    Join Date
    Sep 2006
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Advanced Dir Object - Limiting to 8 directions

    It's just how the objects are in general. Without the ADO, it has problems going from 0 to 359 (or 0 to 31).

  6. #6
    No Products Registered

    Join Date
    Oct 2009
    Posts
    480
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Advanced Dir Object - Limiting to 8 directions

    What exactly are you trying to acomplish?

    -Variant

  7. #7
    Clicker Fusion 2.5

    Join Date
    Sep 2006
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Advanced Dir Object - Limiting to 8 directions

    Well, I just said "forget it" and took the code in the example file and modified it to get it to work, even though I have no idea what it is and couldn't reproduce it on my own. I'm just trying to rotate an object towards another object with the ADO but retrict the object to only 8 directions. I just didn't want to use Alterable Values, like the example shows.

  8. #8
    No Products Registered

    Join Date
    Oct 2009
    Posts
    480
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Advanced Dir Object - Limiting to 8 directions

    I think this is what you are trying to accomplish.

    -Variant

  9. #9
    Clicker Fusion 2.5

    Join Date
    Sep 2006
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Advanced Dir Object - Limiting to 8 directions

    Nope. That's way off. x.x

  10. #10
    No Products Registered

    Join Date
    Oct 2009
    Posts
    480
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Advanced Dir Object - Limiting to 8 directions

    What are you applying this to?

    -Variant

Page 1 of 2 1 2 LastLast

Similar Threads

  1. 8 directions: make the object move due to a general event
    By Chokito in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 20th November 2012, 12:27 AM
  2. [Request] Bouncing ball Object with 360 directions
    By Tiles in forum Extension Development
    Replies: 10
    Last Post: 6th January 2012, 03:26 PM
  3. Limiting digits
    By MechatheSlag in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 27th February 2009, 06:20 AM
  4. Object Grouping re:360 Directions
    By JJames19119 in forum Multimedia Fusion 2 - Technical Support
    Replies: 16
    Last Post: 26th June 2007, 09:59 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
  •