User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Set font size

  1. #1
    No Products Registered

    Join Date
    Aug 2007
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Set font size

    Hello

    I'm making this silly little game where I want the score to be the same font size as the score amount - that is, if I have 100 score I want the score counter to have 100 in font size. Using the action set font size, I was hoping to be able to do this, but the font size seems to be random. When the score is an even number, the score counter has one size, and when it's an odd number, it's another size, but it seems to be the same size for each odd number, and another size for each even number. When the score is 20 the font is just as large as when the score is 40. The score counter's font size (as it appears on the screen) seems to be alternating between the first value and the second - when assigning it a value the third time, it goes back to the first size regardless of what the third is, and when assigned the fourth value, it goes back to the second size, etc. ad inf.

    I've tried using both border 0 and border 1, and the size of the score counter (in the frame editor) is much larger than the numbers in it.

    I've also set up a control counter which is instructed to always set itself to the score counter's font size (so it's showing the score counter's font size in numbers). It shows an consistently higher number each time the score goes up, but the score counter is not growing in size, but keeps alternating as described above.

  2. #2
    No Products Registered

    Join Date
    Aug 2007
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Set font size

    Help meee... if I'm not being clear enough, please tell me.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Set font size

    Perhaps you could ensure that it is an odd number before changing-

    Score Mod 2 = 0 -- Set font size of Counter to Score

  4. #4
    No Products Registered

    Join Date
    Aug 2007
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Set font size

    Wouldn't Mod 2 = 0 mean the score is an even number though? If I set the font size to always equal the score*2, then the font size should always be an even number. If I set it to always be equal to (the score*2)-1, then I get a number that's always odd. Neither of these solutions work.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Set font size

    Shows how good I am at maths I'm not quite sure then, but I will put together an example if I get a spare minute.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Set font size

    It seems the score object has a bug- insert a string object and

    Always - Set alterable string to Str$(score( "Player 1" ))

    and then set the font size of the string object, and you should be fine I can still make an example if you want.

  7. #7
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeå, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Set font size

    Quote Originally Posted by Jam
    It seems the score object has a bug- insert a string object and

    Always - Set alterable string to Str$(score( "Player 1" ))

    and then set the font size of the string object, and you should be fine I can still make an example if you want.
    I toyed around with this a few weeks ago, and after a few minutes of random scores on my screen, the size somehow got "broken".. it would set the wrong sizes and so on... :\
    I hope that issue was just a one time thing... Also, I think that was build 245...

  8. #8
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Set font size

    I have an example for you [Dafydd] then.. hold on.

  9. #9
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Set font size

    Here- http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=55636

  10. #10
    No Products Registered

    Join Date
    Aug 2007
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Set font size

    Ok, it does work using the string object, but it didn't work using the counter object or the score object. Thanks for the tip!


Page 1 of 2 1 2 LastLast

Similar Threads

  1. String Font Size Border 0/1 Issue!
    By Bipolar_Games in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 18th October 2013, 08:14 PM
  2. Font Size in iOS Button
    By cajujoe in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 8th August 2011, 04:37 AM
  3. Edit Obj : Font Size : Won't Increase?
    By Annie in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 13th August 2008, 03:34 PM
  4. Font colors and size
    By TrayC in forum Install Creator and Patch Maker
    Replies: 5
    Last Post: 7th March 2007, 06:59 PM
  5. ASB Font size bug?
    By Flava in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 8th September 2006, 08:10 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
  •