User Tag List

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

Thread: Extention builder needed...

  1. #1
    No Products Registered

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

    Extention builder needed...

    I need an extention that can do these two things, nothing more.

    Code:
    integer distance(int A, int B)
    {
         int AtoBforw = abs(A-B);
         int AtoBback = abs(A-(B-360));
         if(AtoBforw>AtoBback)
         {
              return AtoBback;
          }else{
             return AtoBforw;
         }
    }
    integer way(int A, int B)
    {
         int AtoBforw = abs(A-B);
         int AtoBback = abs(A-(B-360));
         if(AtoBforw > AtoBback)
         {
              return 1;
          }else if(AtoBforw < AtoBback){
             return -1;
         }else{
              return 0;
          }    
    }
    Sorry if you don't understand it, it is meant to get the distance between two angles and the direction you need to go to get there.

    Also sorry if some of my syntax is wrong, I've never programmed anything in C++ before.

  2. #2
    No Products Registered

    Join Date
    Jun 2006
    Location
    here
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extention builder needed...

    Why not get the free edition of visual studio (found here) and make the extension yourself? It shouldn't be too hard to make such a simple extension (though I speak as one who has never tried to make an extension)

  3. #3
    No Products Registered

    Join Date
    Jun 2006
    Location
    Texas
    Posts
    1,002
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extention builder needed...

    I don't see why you can't use Lua to do this...

  4. #4
    No Products Registered

    Join Date
    Aug 2006
    Location
    Westcountry, UK
    Posts
    862
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extention builder needed...

    looks perfectly possible to use Lua

  5. #5
    No Products Registered

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

    Re: Extention builder needed...

    Response:

    Don't know how to install the SDK (from experiance, installing SDKs is a pain in the neck)

    Don't know how to use LUA.

    :P

  6. #6
    No Products Registered

    Join Date
    Jun 2006
    Location
    Texas
    Posts
    1,002
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extention builder needed...

    Code:
    function distance(a,b)
    forw=math.abs(a-b);
    back=math.abs(a-(b-360));
    if(forw>back) then
    return back;
    else
    return forw;
    end
    end
    
    function way(a,b)
    forw=abs(a-b);
    back=abs(a-(b-360));
    if(fow>back) then
    return 1
    else if(forw<back) then
    return -1
    else
    return 0;
    end
    end
    Should work.

  7. #7
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extention builder needed...

    But... Why use Lua or make an extension to do that ? It's two simple formulas that you can make directly in MMF2... O_o

    If you want to be able to use it with expressions functions, use Power Function object or an equivalent.

  8. #8
    No Products Registered

    Join Date
    Jun 2006
    Location
    Texas
    Posts
    1,002
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extention builder needed...

    MMF 2 doesn't handle if statements very well, and such a thing would be "easier" to do via script.

  9. #9
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperiOS Export ModuleMac Export ModuleSWF Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    JasonDarby's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    4,938
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: Extention builder needed...

    I actually like multiple ways of doing the same thing, thats where MMF really has its power <img src="/center/images/graemlins/laugh.gif" alt="" />.

  10. #10
    Clicker Multimedia Fusion 2 Developer
    Matt's Avatar
    Join Date
    Jun 2006
    Location
    Connecticut
    Posts
    106
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extention builder needed...

    Immediate If might actually be easier than that.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Install Builder Desktop Icon
    By Kracker in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 17th October 2011, 06:44 AM
  2. Flash Builder 4
    By Looki in forum Flash SDK
    Replies: 3
    Last Post: 26th May 2010, 04:28 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
  •