User Tag List

Results 1 to 4 of 4

Thread: Centering a counter in the frame

  1. #1
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Pineapple's Avatar
    Join Date
    Oct 2010
    Posts
    431
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Centering a counter in the frame

    So, what I want to do is keep a counter centered in the frame.

    As a counter increases, it will add digits to the left, which makes it off center. To counter this, I could always create a group of conditions for counter = 10, 100, 1000, ect. that recenter it at a value, but what I'd really like is a simple formula to do this.

    Any math wizards out there know how to convert >10=1, >100=2, >1000=3 into a formula?

    Any other simple solutions?

    -thanks

  2. #2
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Pineapple's Avatar
    Join Date
    Oct 2010
    Posts
    431
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Browsing the internet I found the answer to my question: convert the counter value to a string & check the length of said string. Len(Str$(value( "Counter" )))

  3. #3
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleXNA Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    gkinfinity's Avatar
    Join Date
    May 2011
    Location
    USA
    Posts
    284
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I created a quick example for you that uses a different (hopefully easier) method
    Attached files Attached files

  4. #4
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Pineapple's Avatar
    Join Date
    Oct 2010
    Posts
    431
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's actually pretty clever using the left/right edges to find the center. I wouldn't have thought of that.

Similar Threads

  1. Counter to next frame
    By Tony555 in forum The Games Factory 2 - Technical Support
    Replies: 3
    Last Post: 15th July 2013, 01:28 AM
  2. Centering Counter Within Column
    By Jaklar in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 14th April 2013, 01:22 PM
  3. What am i doing wrong? Centering a counter
    By Redsquirrel in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 23rd January 2013, 08:20 AM
  4. Generator counter frame movie
    By daniele in forum Multimedia Fusion 2 - Technical Support
    Replies: 14
    Last Post: 31st July 2012, 05:31 PM
  5. counter not following frame
    By ac3raven in forum Multimedia Fusion 2 - Technical Support
    Replies: 13
    Last Post: 17th May 2010, 08:41 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
  •