User Tag List

Results 1 to 4 of 4

Thread: Problem returning a Negative Numbers

  1. #1
    Clicker Fusion 2.5Android Export Module

    Join Date
    Apr 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem returning a Negative Numbers

    How can i return a negitive numer ill explain.

    box2d wants a -5 for asserting force to the left.

    i want to make this happen from an expression, so my express would be.

    set velocity of body(??) to -(speed"??")/5

    this fails how do i convert the speed from a positive numer to a negative, or am i doing somthing wrong with my expression in the first place.


  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem returning a Negative Numbers

    0-(speed"??")/5
    -1*(speed"??")/5

  3. #3
    Clicker Fusion 2.5Android Export Module

    Join Date
    Apr 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem returning a Negative Numbers

    that was so simple realy was'nt it.

    thank you MuddyMole, and by all means give me a virtual slap around the head for that.

  4. #4
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem returning a Negative Numbers

    If you want it for sure to be negative, you can use 0-abs(Speed( "??" ))

Similar Threads

  1. Negative Numbers bug
    By ffomega in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 5th November 2010, 12:20 AM
  2. converting negative numbers to 1
    By Aikikame in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 30th October 2010, 05:38 PM
  3. how to make masked edit support negative numbers?
    By BrashMonkey in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 3rd March 2010, 10:22 AM
  4. how to make masked edit allow negative numbers?
    By BrashMonkey in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 10th February 2010, 05:02 PM
  5. Binary Object: Byte returning negative number
    By aidmm in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 19th April 2008, 10:46 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
  •