User Tag List

Results 1 to 3 of 3

Thread: Floating point numbers don't work.

  1. #1
    No Products Registered

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

    Floating point numbers don't work.

    I have two counters. One is set to the other divided by 10, and governs the Scale of an object.

    It doesn't work. It's either a 1 or 0. This makes using the scale function for sizes smaller than 1.0 or in intervals smaller than 1 impossible.

    What is wrong?

    I can't do ANYTHING without FP numbers.

  2. #2
    Clicker Fusion 2.5 Developer

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

    Re: Floating point numbers don't work.

    I think you need to add .0 to the end of one of the numbers for MMF2 to use floats. For example, do:

    Set Counter to value("Counter")/10.0

    A quick search for "floats" would have told you this.

    Hope that helps!
    Robbie.

  3. #3
    No Products Registered

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

    Re: Floating point numbers don't work.

    Ah cool! Kinda like in C++ gotcha.

Similar Threads

  1. [BUG] floating point rotation
    By SolarB in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 2nd December 2012, 01:40 AM
  2. Generating random floating point numbers
    By Greasy in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 7th January 2012, 06:12 AM
  3. Floating Point Rotations
    By Quinto in forum SWF/Flash Export Module Version 2.0
    Replies: 0
    Last Post: 22nd June 2011, 03:16 PM
  4. Don't know how to use floating point values
    By garciafigueres in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 4th January 2007, 07:30 AM
  5. Floating Point Numbers
    By killacam in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 5th October 2006, 06:37 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
  •