User Tag List

Results 1 to 7 of 7

Thread: Maximum value for a counter?

  1. #1
    No Products Registered

    Join Date
    Jun 2006
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Maximum value for a counter?

    Ok so I need the maximum value for a counter to be really high. It seems however, that when I increase the maximum value to 999999999 or greater, the number turns into a random value! Arhhh!

    EDIT: A quick question...Is it possible to make sure the counter always rounds up to a whole number, rather than having a decimal point?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    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)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,367
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: Maximum value for a counter?

    I assume your max number is to high to be handled.. <img src="/center/images/graemlins/smile.gif" alt="" />
    To get rid of decimalpoints, simply put the number within round(), ceil() or floor().

    set counter1 to round(1.6) will set the counter to 2
    set counter1 to floor(1.6) will set the counter to 1
    set counter1 to ceil(1.6) will set the counter to 2

  3. #3
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,457
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Maximum value for a counter?

    or int() <img src="/center/images/graemlins/smile.gif" alt="" />

  4. #4
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    682
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Maximum value for a counter?

    i dunno about that random value, seems to work ok for me.
    to change a decimal to an integer, use Int( 1234.567) and youll get 1234, apparantly rounds down....
    you can use Ceil() and Floor() too.

    ive been beaten

  5. #5
    No Products Registered

    Join Date
    Jun 2006
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Maximum value for a counter?

    Ok thanks for the help on rounding the number up, that works fine! : )
    I've still got the problem of the maximum value of the counter not being able to into 9 digits. Just try it, I'm sure it gets messed up. It seems fine once I've typed it in, then I click off the object, and then back onto it, and the value is a big weird number.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jun 2006
    Posts
    1,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Maximum value for a counter?

    9 digits is OK. Any more is beyond the maximum possible.

    Perhaps you need two counters - when you reach 999999999 on the first one, set it to zero and add 1 to the second counter.

  7. #7
    No Products Registered

    Join Date
    Jun 2006
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Maximum value for a counter?

    hmm I was afraid I would have to do that. Oh well I guess I have no choice.

Similar Threads

  1. Maximum Value?
    By Corlen in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 11th May 2013, 01:40 AM
  2. 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
  3. 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
  4. Maximum # of Installs
    By TreyM in forum Multimedia Fusion 2 - Technical Support
    Replies: 27
    Last Post: 5th May 2011, 07:14 PM
  5. maximum objects
    By dascribe in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 15th August 2010, 03:30 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
  •