Help with FMG Custom Font
Fodder76
Member Posts: 154
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.
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
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.
Perhaps I'm a bit more dull than I originally thought.
Thanks!!
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!
Bumping in the hopes that someone has an idea for me.
Thanks very much!
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
___________________________________________________________________________________
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
I'm glad it worked for you.
Let us know if you have any other issues with this.
Thanks very much!