User Tag List

Results 1 to 3 of 3

Thread: counters handling decimals

  1. #1
    Clicker Multimedia Fusion 2iOS Export Module

    Join Date
    Jan 2012
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    counters handling decimals

    I am trying to calculate a players accuracy when shooting.
    here are my events

    always set counter to (hits/misses)*100.0

    this works fine when the percentage is 100% but as soon as a shot is missed the counter is set to 0 and never changes. I tried setting the counter to have floating point values but it still doesnt return a number.

    what can i do to set a counter to the percentage of hits to misses?

    thanks

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Try:
    hits*100.0/misses
    To force MMF2 to use decimals before the calculation and not after.
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Multimedia Fusion 2iOS Export Module

    Join Date
    Jan 2012
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    that worked. thanks for the quick reply

Similar Threads

  1. Decimals with .ini files and counters.
    By keokeo in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 13th February 2015, 09:29 PM
  2. Counters: MMF2 No Decimals, but Android Shows
    By Mikegames in forum Android Export Module Version 2.0
    Replies: 1
    Last Post: 3rd June 2013, 01:12 AM
  3. Handling App Orientation???
    By Paul_Boland in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 11th February 2013, 10:35 AM
  4. Best Handling of HiScore
    By cds12345 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 24th November 2011, 07:13 PM
  5. Not handling decimals...
    By Raylax in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 18th December 2008, 06:51 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
  •