User Tag List

Results 1 to 6 of 6

Thread: plus-or-minus

  1. #1
    No Products Registered

    Join Date
    May 2008
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    plus-or-minus

    Hey all, I'm trying to see if a character is within a particular range of another characters Y value. Is there a specific function for 'CharacterA Y = CharacterB Y plus-or-minus 256'?

    Or do I simply have to create two separate conditions for checking a 'greater than' and 'lower than' value?

    Thanks!

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: plus-or-minus

    I believe you might just have to make two conditions, but I've been with MMF2 for about 2 years now

    It would look like this I think:

    *YPlayer < YOther Player + 128
    *YPlayer > YOther Player - 128

  3. #3
    No Products Registered

    Join Date
    May 2008
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: plus-or-minus

    Thanks Ricky. Yeah that's what I was using, but thought a "±" would clean it up a bit and didn't know if it could be done.


  4. #4
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: plus-or-minus

    I'm not sure of your situation, but couldn't you simply use absolute value? It would just be Abs(Yplayer - YOther player) is less than (<) 256.

  5. #5
    No Products Registered

    Join Date
    May 2008
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: plus-or-minus

    That is right. That should work, and is basically the same thing. Thanks for thinking of that!

  6. #6
    Clicker Fusion 2.5

    Join Date
    Jun 2006
    Location
    Stockholm, Sweden
    Posts
    1,529
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: plus-or-minus

    Yeah I was wondering that too when I first saw the thread.
    Absolute value should do the job.

Similar Threads

  1. How do you minus a percentage of objects speed?
    By WhatPixelYouOn in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 27th March 2013, 09:32 PM
  2. send a string to a text object minus first 7 chars
    By BrashMonkey in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 18th October 2009, 07:36 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
  •