User Tag List

Results 1 to 4 of 4

Thread: INI - Scale Value

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    May 2010
    Location
    Luxembourg
    Posts
    102
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    INI - Scale Value

    Hi,
    saving scale value of an active in an INI File always returns "1".
    Is there a workaround for this?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    MJK's Avatar
    Join Date
    Jun 2006
    Location
    Espoo, Finland
    Posts
    1,162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: INI - Scale Value

    Do you mean that when you save a value with decimals, let's say 1.1, to INI and load it in the application it returns 1 instead of 1.1?

    If that is the case, an easy workaround would be to save it as value 11 and load it as "load value/10.0" or save it as string "1.1" and load as Val(load string).

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    May 2010
    Location
    Luxembourg
    Posts
    102
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: INI - Scale Value

    Yes, that's exactly what I mean, I try your workaround as soon as possible, thanks for your help.

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

    Re: INI - Scale Value

    I think it is a limitation of the old INI object (which only supports integers).

    For now the easiest workaround is storing it as text as MJK suggested:
    Store the text Str$(3.1415) into the INI object and you get it back with decimals and everything by using Val(<the string from the ini object here>)

Similar Threads

  1. Setting the Scale of an Object to the Scale of the Object it was Created From
    By Corlen in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 26th July 2013, 07:53 PM
  2. Scale Example
    By Captain_Harris in forum File Archive
    Replies: 1
    Last Post: 3rd April 2012, 02:39 AM
  3. Scale Bug
    By Viewtiful in forum SWF/Flash Export Module Version 2.0
    Replies: 0
    Last Post: 19th June 2010, 07:36 PM
  4. scale example
    By Clicktastic in forum File Archive
    Replies: 1
    Last Post: 3rd August 2006, 05:08 PM
  5. scale help.
    By Clicktastic in forum Multimedia Fusion 2 - Technical Support
    Replies: 13
    Last Post: 1st July 2006, 08:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •