User Tag List

Results 1 to 6 of 6

Thread: Alterable values

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Location
    USA
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Alterable values

    Has anyone noticed that alterable vlues cannot be decimals? I have a simple event,
    Always->add 0.2 to alterabe value A of active.
    Always->set scale of active to alt A of active.
    This does not work for some reason, but if I replace the alterable value with a counter, it works. Why is this?

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Alterable values

    []Has anyone noticed that alterable vlues cannot be decimals? I have a simple event,
    Always->add 0.2 to alterabe value A of active.
    Always->set scale of active to alt A of active.
    This does not work for some reason, but if I replace the alterable value with a counter, it works. Why is this? [/]

    The solution is very simple. Instead of "scale = alt A", go like "scale = alt A * 0.01". Now the numbers 0 to 100 will set the scale from 0 to 1.

    I guess the reason why alterable values can only be integers, is because integers is faster.

  3. #3
    No Products Registered

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

    Re: Alterable values

    Alterable values can be decimals, but you cannot use the "Add" or "Subtract" actions if you want them to be decimals.

    Just do "Set alterable value A to alterable value A + 0.2" and it should work fine.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Alterable values

    Is that new for MMF2? I was never successfully able to set an MMF1 alterable value to a decimal.

  5. #5
    No Products Registered

    Join Date
    Jul 2006
    Location
    Sweden, Lund
    Posts
    140
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Alterable values

    No. It worked just like stuckboy wrote in MMF1.5.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Alterable values

    Tried it now. It works indeed <img src="/center/images/graemlins/smile.gif" alt="" /> I guess you learn something every day.

Similar Threads

  1. Global Values & Alterable Values with same names
    By Gustav in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 7th November 2012, 06:15 PM
  2. Alterable Strings as Alterable Values?
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 27th March 2012, 07:14 PM
  3. Display values on screen from Alterable Values
    By mikeh in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 13th May 2008, 01:59 PM
  4. Alterable Strings and Alterable Values limit :(
    By Pedro Almeida in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 13th October 2006, 06:38 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
  •