User Tag List

Results 1 to 2 of 2

Thread: Using variables in exponents

  1. #1
    Clicker The Games Factory 2

    Join Date
    Apr 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using variables in exponents

    Hi, something I'm stuck on just now is that, while the expression editor is fine with exponents that are constants, eg: [152 pow 0.5], it stops working when you try to put an alterable value in, like [152 pow (1/Alterable Value A("eg"))].

    Is there any way around this?

    Thanks, Matthew

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac 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)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I haven't tried it, but I'm guessing it looks like it stops working because it uses integers by default, so if Alterable Value A("eg")>1 then (1/Alterable Value A("eg")) will give 0.
    Try it with (1/(Alterable Value A("eg")+0.0)) or (1/(1.0*Alterable Value A("eg"))) which will force it to use floating point numbers

Similar Threads

  1. [BETA 32] Exponents?
    By Bipolar_Games in forum Android Export Module Version 2.0
    Replies: 6
    Last Post: 6th July 2012, 11:08 AM
  2. PMO's each max and min variables
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 6th August 2011, 04:40 PM
  3. Variables?
    By mitsuki in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 14th July 2010, 07:05 PM
  4. how do I make exponents?
    By Steven_Provost in forum Hardware Accelerated Runtime
    Replies: 2
    Last Post: 30th April 2008, 02:55 PM
  5. Exponents!
    By SergeantBiscuits in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 3rd February 2008, 10:41 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •