Help with FMG Custom Font

Fodder76Fodder76 Member Posts: 154
edited November -1 in Working with GS (Mac)
Hey there,

I'm trying to implement Fire Maple Games' Custom Font feature into my game, and for the life of me I'm not able to get it to work.

At first I thought it was related to the fact that I have a number going down to two decimal points, but I've since been testing it with integers with no success.

Its always coming up with image not found. I've made absolutely certain that the images are named correctly, so I can only assume that the numbers generated are not turning out as whole numbers for some reason.

One thing I don't understand, in the code, hes using the word floor.

"score_"..floor(( etc etc ))..".png

I'm hoping thats some sort of attribute somewhere that I'm not able to find, but its more likely some sort of math / programming term that I'm not aware of. Can anyone enlighten me on that?

I consider myself a fairly sharp guy, so I'm a little feeling a little silly that I can't this to work even when I'm directly copy/pasting it.

Any help would be much appreciated. Thanks.

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    Hey fodder, copying/pasting is most likely the issue. You need to select all of the attributes from the dropdown menus.
  • Rob2Rob2 Member Posts: 2,402
    .. is the concatenation operator which is used to join strings together so "score".."22"..".png" would become score22.png
  • Fodder76Fodder76 Member Posts: 154
    Hey all, thanks for the help.

    I did select the attribs from the drop down menus. I had to, since I had them named differently.

    I'm completely at a loss here.

    Could someone describe what floor does here? I'm just worried that its not jiving with someone else that I'm doing. Thanks everyone.
  • Fodder76Fodder76 Member Posts: 154
    Well I got it working. I honestly can't tell you what I was doing wrong, but I started over from scratch and did everything very carefully, and all is now good.

    Perhaps I'm a bit more dull than I originally thought. :)

    Thanks!!
  • Fodder76Fodder76 Member Posts: 154
    Hey there again,

    So, I'm trying to implement this in a different part of my game. This time rather than displaying a preset score, I want it to update and display a timer on the top of the screen.

    I'm getting really strange behavior that I can't figure out. The custom font works fine displaying the initial set of numbers, but once the values start updating, the image representing the number will not change.

    As a simple test, I'll have the timer set to 5. When I run the app, the image is indeed displaying a 5, but a second later the value increases to 6, but the image continues to display a 5.

    Anyone have a guess as to what could be causing this?

    Thanks very much!
  • Fodder76Fodder76 Member Posts: 154
    I probably shouldn't post important (to me) questions at 2:30 AM when many are unlikely to see them.

    Bumping in the hopes that someone has an idea for me.

    Thanks very much!
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    you are prob using a change attribute instead of a constrain.

    that would be my guess any way if that doesn't fix it you can shoot me an email

    tenrdrmer(at)yahoo.com

    ___________________________________________________________________________________
    Project Help from Tenrdrmer Click Here

    GS BubbleBall Template HERE!!
    Stacks Level Selection Template HERE!!
    Expanding Option Menu Template HERE!!
    Tenrdrmer's Menu # 3 HERE!!
    Menu #4 - Level Banners HERE!!
    AppSolute Entertainment on Facebook
    AppSolute Entertainment on iTunes
  • Fodder76Fodder76 Member Posts: 154
    I am! You just made my xmas list! Thanks very much.
  • gamedivisiongamedivision Member Posts: 807
    im using this as well and it shows up on gs when im testing fine but soon as i test on my iphone the numbers are white blocks
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    gamedivisionuk said:
    im using this as well and it shows up on gs when im testing fine but soon as i test on my iphone the numbers are white blocks

    look at your image file names. If there a capitals on the name but in your expression use lower case it will not find it when you are playing on the device and give a white block instead. when using expressions to call for an image you must use files named EXACTLY the same as what your expression will call for.

    ___________________________________________________________________________________
    Project Help from Tenrdrmer Click Here

    GS BubbleBall Template HERE!!
    Stacks Level Selection Template HERE!!
    Expanding Option Menu Template HERE!!
    Tenrdrmer's Menu # 3 HERE!!
    Menu #4 - Level Banners HERE!!
    AppSolute Entertainment on Facebook
    AppSolute Entertainment on iTunes
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    @fodder76
    I'm glad it worked for you.
    Let us know if you have any other issues with this.
  • Fodder76Fodder76 Member Posts: 154
    I should say, I haven't tried it yet. I'm anxious to when I get home. But I'm pretty sure that's the issue.

    Thanks very much!
Sign In or Register to comment.