User Tag List

Results 1 to 3 of 3

Thread: Turn counter value to integers?

  1. #1
    No Products Registered

    Join Date
    Sep 2006
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Turn counter value to integers?

    I use a counter to calculate the distance between two objects, but I need to translate the value to scale of integers between 60-100 (don't ask why...).
    Uhm. There isn't an option to get rid of the decimals in the counter properties. How do I do it?
    I tried to use a mod condition, but it didn't work since the counter seldom actually displays the integers.

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    Merseyside, UK
    Posts
    398
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Turn counter value to integers?

    When setting the counter value use: int(number + 0.5)
    The 0.5 just ensures correct rounding.

  3. #3
    No Products Registered

    Join Date
    Sep 2006
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Turn counter value to integers?

    Ah, thank you!

Similar Threads

  1. How to use the same key to turn something on and off.
    By LemonyLime in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 3rd January 2012, 11:16 PM
  2. Adding Half a Counter's Value to Another Counter
    By soloman in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 28th June 2010, 10:30 AM
  3. Global Only Accepts Integers?
    By grimmy in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 16th April 2009, 05:29 PM
  4. Restore a counter to integers?
    By Pixelthief in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 12th March 2009, 01:35 AM
  5. Random Integers.
    By Almightyzentaco in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 24th February 2009, 01:15 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
  •