User Tag List

Results 1 to 2 of 2

Thread: Advanced Question: Fancy Spinning Arrow

  1. #1
    No Products Registered

    Join Date
    Dec 2006
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Advanced Question: Fancy Spinning Arrow

    Okay, so rather than the traditional "Look at goal (0,0)" for making an arrow that points to where you have to go, I'm trying to incorporate changing the angle to improve the aesthetics and make it looks nicer.

    I've made a lot of progress so far, though I've come across a glitch that I can't figure out how to fix. But first, let me explain what I have so far.

    My arrow object has two alterable values: aAngle and Direct. I have these represent what the angle is and what the arrow's direction is.

    Then I have:
    Always -> set angle to aAngle of Arrow (Quality = 0), Set Direct to Dir("Arrow"), Look at (0,0) from Goal

    After that, I figured out a formula to convert directions to angles. (It's Angle = 11.25 * Direction)

    I have two conditions that actually make the arrow spin smoothly:

    aAngle of Arrow > 11.25*Direct("Arrow") -> Sub 2 from aAngle

    aAngle of Arrow < 11.25*Direct("Arrow") -> Sub -2 from aAngle

    I'm actually surprised how well this works. I got mostly the results I wanted, but the only problem with it is when the arrow changes directly from direction 31 to 0 or vice versa, it has to make a full 360 spin the other way. In other words, it can't go directly from 359 degrees to 0 degrees. Looking at the debugger, I managed to figure out why it's doing it, but I have no clue how to fix it. Anyone know how to resolve this?

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Advanced Question: Fancy Spinning Arrow

    If you want t to rotate twoard an angle, just use the Advanced Direction Object's rotate expression.

    If you want it to always snap-point in the right angle, use the Advanced Direction Object's direction expressions.
    Working as fast as I can on Fusion 3

Similar Threads

  1. Spinning gears?
    By Warmachine in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 21st December 2012, 05:28 PM
  2. Left and right arrow question! Test your might! :)
    By Aloan in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 20th April 2011, 02:53 AM
  3. looking for examples for fancy lazers
    By BrashMonkey in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 26th January 2009, 07:57 PM
  4. Spinning Wheel
    By Rick in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 4th December 2007, 12:12 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
  •