User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13

Thread: Hi-Score object (scores dropping by 1?)

  1. #11
    No Products Registered

    Join Date
    Jul 2006
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hi-Score object (scores dropping by 1?)

    I was looking again at Dynasoft's comment earlier in the thread. Can anyone elaborate on this a bit? I'm using a Global Value to track the multiplier (in 10ths). That seems to be working fine when I convert it to a string on the scoring summary screen. Is there a reason why it wouldn't work when I submit scores to the High Scores object? If so, how do I fix it? (Int and Ceil are not working.)


  2. #12
    No Products Registered

    Join Date
    Jul 2006
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hi-Score object (scores dropping by 1?)

    Just a quick followup...

    Since the score seems to be correct when converted to a String I added a String object to my High Scores frame. At the start of the frame I do this:

    String = chr$(playerscore * multiplier)

    Then high scores are added like this:

    Insert val(String)

    That seems to be working so far... (Still not sure why this is necessary, though.)

  3. #13
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hi-Score object (scores dropping by 1?)

    Try using round() instead of ceil() or int(). round() goes to the nearest number. ceil() always goes up, even if the number is 10.0000001 (you'd get 11). int() always goes down, even if the number is 9.9999999 (you'd get 9). Round is probably what the conversion to a string is doing, but the high-scores is doing int().

    You're best picking which behaviour you actually want and using it explicitly. I recommend round().

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Hi-Score Object for single player with multiple scores and text
    By 1234cb in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 9th June 2013, 09:08 AM
  2. [ How to ] open source tuto -> Gradient scores effect / Effet de score gradient
    By Sevennemesis in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th February 2013, 08:42 PM
  3. Mochi Scores: retrieve only #1 score and name
    By MJK in forum SWF/Flash Export Module Version 2.0
    Replies: 0
    Last Post: 9th June 2011, 05:39 PM
  4. Dropping a bouncing object
    By Digitalic in forum Multimedia Fusion 2 - Technical Support
    Replies: 19
    Last Post: 25th May 2010, 01:11 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
  •