User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 16 of 16

Thread: How can I create an increasing bar counter?

  1. #11
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Oh, if you want to change elapsed time, use this formula:

    single counter solution: set maximum value to 60*total seconds
    three counters solution: (obviously) set each counter's maximum value to (60*total seconds) / 3

  2. #12
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Thanks for checking Snail!
    I generally prefer counters over actives for this kind of jobs due to the built-in gradient effect,
    that gives a sense of "approaching to full/empty",
    to achieve a similar effect within actives you'd have to setup a routine for "cutting" it (-->active picture)
    because scaling would also scale the gradient image.

    @ Emerson3: I woke up this morning with another example in mind already built ,
    and I've now added to the ones above, so here it is:

    counter-1.mfa

    Gives a nice snake/"powder keg" effect,
    and decreasing from full gives a harder tragic sense of panic, rather than increasing from 0 !

    This example also led me to notice that,
    while refreshing every 0.01 seconds the timers/counters keeps on par with real time (and debugger time)
    ---meaning that at 60 fps on each frame real time grows by 1/60=0.01666666... seconds---
    doing so each 1 second causes a noticeable lag between the timer and real time!
    Thus I would assume that every 1 second is not a reliable timing event on the long run?
    (see example)
    Maybe altering fps could fix this, but I've not tested.

    (Emerson you can obviously neglect this issue for your application )

  3. #13
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export Module
    Emerson3's Avatar
    Join Date
    Apr 2014
    Location
    Lafayette, Louisiana
    Posts
    721
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hey Schro,

    I used the one counter example set at 2400 max. I created event "Every 0.3 add 1 to counter. Its working great. I just saw your last message so I'm excited to get home and check out the new example. I'm going to post my MFA file so you can see it in action. Hee-Haw!!!

  4. #14
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)
    I find the active approach to give more flexibility on the visual style of the bar. You can paint your own gradient, which won't get stretched if you make the bar the right thickness from the start. You only scale on one axis, so nothing would be distorted, unless you wanted the gradient to go along the length of the bar. But with an active, you can animate the bar, which allows for flashing or other effects like an animated gradient. But to each his own.

  5. #15
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export Module
    Emerson3's Avatar
    Join Date
    Apr 2014
    Location
    Lafayette, Louisiana
    Posts
    721
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks Snail,

    Ya'll are giving me so many examples! Can't wait to get home and check em out!

  6. #16
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)
    Snail: that was my point about this not working if the gradient followed the length of the active. But another solution could be to just scale an active the same color as the bg of the bar over top of the "bar" that is really just concealing/revealing it. In this case, the bar is just a static image. There are certainly a lot of ways to be clever when dealing with bar counter. Thanks for the example. Although it seems way over the top for my own projects, I never thought to use a subtractive blended object. Always interesting to see how others solve problems.

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. AdMob increasing file size
    By gamer123 in forum Fusion 2.5
    Replies: 3
    Last Post: 11th June 2014, 12:36 PM
  2. Increasing size score example for Dafyd
    By James in forum File Archive
    Replies: 0
    Last Post: 17th September 2007, 08:06 PM
  3. Create object using co-ordinates from a counter?
    By Plutogeezer in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 25th November 2006, 11:43 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
  •