User Tag List

Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 26

Thread: between x and y

  1. #1
    No Products Registered

    Join Date
    Oct 2011
    Location
    Canada
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    between x and y

    Is there a way to say any number between x and y without having a condition for each value?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleInstall CreatorUnicode Add-on

    Join Date
    Jul 2006
    Posts
    1,017
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This code gives you the value from an Alterable Value but 5 if it's lower and 15 if it's higher.
    Max(5, Min(Alterable Value A( "Active" ), 15))

    If you want to know if the Alterable Value is between 5 and 15 use Compare two general values from the Special object:

    Alterable Value A( "Active" ) equal Max(5, Min(Alterable Value A( "Active" ), 15))

    And so on...

  3. #3
    No Products Registered

    Join Date
    Oct 2011
    Location
    Canada
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmm...wish that didn't look so foreign, lol. Here's what I'm trying to do. I've got a global variable for health, and a health bar that shows a state of fullness based on that value...if health is 50 the bars is full, if it's 49 to 44 is shows a little gone, so on and so fourth to 0 = empty, lol.

    one of those expressions you gave me may help, but I don't always speak syntax so well, lol..

    the easiest way I know how to do it is.

    49
    48
    47 - show some gone
    46

    45
    44
    43 - show a little more gone.
    42

    but I figured if there was a better expression it would use less of my valuable mmf2 resource space, lol.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleInstall CreatorUnicode Add-on

    Join Date
    Jul 2006
    Posts
    1,017
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol. ^^

    The easiest way is to use the Counter object. You can use graphics too. It calculates the steps between automatically.

  5. #5
    No Products Registered

    Join Date
    Oct 2011
    Location
    Canada
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, but that's no good if you want a cool custom health bar, lol. Not that it would matter for this project of course, but it would be an issue for my other one, lol.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleInstall CreatorUnicode Add-on

    Join Date
    Jul 2006
    Posts
    1,017
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Then have a look at the Interface Bar object.

    You can still do it by yourself but it's a bit more work...

  7. #7
    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)
    Well... I *did* make a private object just to test if a number is between too other numbers if you want it...

  8. #8
    No Products Registered

    Join Date
    Oct 2011
    Location
    Canada
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    cool, thanks, I'm gonna have a look into that.

  9. #9
    No Products Registered

    Join Date
    Oct 2011
    Location
    Canada
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    awesome...could I use it? see if I can work in into the health bar?

  10. #10
    No Products Registered

    Join Date
    Oct 2011
    Location
    Canada
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmm I like the interface bar, but I don't understand how to change the animations. If you click edit images, only one picture shows up.

Page 1 of 3 1 2 3 LastLast

Posting Permissions

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