User Tag List

Results 1 to 8 of 8

Thread: bit of a maths help if anyone can?

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    bit of a maths help if anyone can?

    Hi, im after a bit of help.

    Basically, imagine a line thats 250px long

    and i have a slider bar that the range is set to 0 - 100, i want to be able to move the slide and it changes the size of the line, slider at 0 makes the line 0px and slider at 100 makes the line 250px.

    how do i go about this?

    Thanks
    Andy

  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: bit of a maths help if anyone can?

    Hi. First of all, change the slider bar's range to 0-250?
    If you don't want to, just use value("slider")*250.0/max("slider")
    I'm not sure what you mean by line. An active, a picture, an overlay? Please be more specific.

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: bit of a maths help if anyone can?

    Well.. neither, i just used it as a easy example to explain the values i needed.

    And unfortunatly i changing the slider range isnt an option as its a percentage

    Thanks, ill try what you have suggested.

    Andy

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: bit of a maths help if anyone can?

    Hmm that works, but only for making the line (or 250 value) go down, if i move the slider back up, the line value keeps on decreasing.

    Any more ideas?

    Thanks
    Andy

  5. #5
    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: bit of a maths help if anyone can?

    Ouch. I kind of skipped the 'imagine' part. :blush:
    It can't be the formula's fault! Maybe the line updating code is faulty.

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: bit of a maths help if anyone can?

    No probs.. Hmm cant see that...


    + set line height to
    - value("slider")*250.0/max("slider")

    When you move the slider down the line value will go down, move it back up and the line value keeps going down...

    Thanks
    Andy

  7. #7
    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: bit of a maths help if anyone can?

    Seems like you are modifying one of these slider values while updating. There's no way it's the formula!

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: bit of a maths help if anyone can?

    You right, i aplogise, sorted it. Thanks for the help pal.

    Andy

Similar Threads

  1. maths help expression
    By Bigfoot in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 8th March 2011, 02:51 PM
  2. parabolla maths example in MMF
    By arfa in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 8th November 2010, 08:33 PM
  3. Maths Equation
    By Dynamite in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 17th March 2010, 11:16 PM
  4. Decimals and Maths
    By IsaacBoy in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 8th November 2006, 02:03 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
  •