User Tag List

Results 1 to 4 of 4

Thread: Maximum Value?

  1. #1
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Maximum Value?

    Hi. Another math question. I don't know the name for this method so bare with me. So I have a maximum value of 999. A player can increase the value by 25%, 50%, 75% or 100% until it reaches 999. How do I make it so when the value is 500, 50% won't make it go over for example by reducing the amount 50% can generate?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)
    Min(val1,val2) "returns the minimal value of the two given values".

    You can access it via Special Object -> Calculations -> Minimal of Two Values.

    If one of the values is 999 and the other is your calculation, then it will usually go with your calculated number (which will be the lowest), except where your calculated number is over 999 (in which case it will go with 999 as that will be the lowest).

    Alternatively, if you are using a Counter object then you can set its "Maximum Value" under Properties-> Settings.
    .:::.Joshtek.:::.

  3. #3
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I thought that would do what I needed, but it doesn't. If we had 1000 as the max for example and were at 0, I needed 25% to generate 250, 50% to generate 500, 75% to generate 750 and 100% to generate 1000. If your value was 500 instead of 0, I needed it 25% to generate 125, 50% to generate 250, 75% to generate 375 and 100% to generate 500.

  4. #4
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    (Max-Min)*Percent

    In your example this would be

    (1000 - 500) * 0.25 for 25% and would give you 125

Similar Threads

  1. maximum event? / maximum d'événement
    By Sevennemesis in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 21st December 2012, 03:24 PM
  2. Bar Graph Counter: Maximum size not dependent on Maximum value?
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 19th July 2012, 03:39 AM
  3. Maximum # of Installs
    By TreyM in forum Multimedia Fusion 2 - Technical Support
    Replies: 27
    Last Post: 5th May 2011, 07:14 PM
  4. maximum objects
    By dascribe in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 15th August 2010, 03:30 PM
  5. Maximum value for a counter?
    By Mantoid in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 31st July 2006, 04:57 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
  •