Hey Guys.
Just wanted to ask a question to see if you know what is going on. I am using a custom font to keep the score in my game, when I test the code it the simulator it works well but when I build and test in the device the numbers disappear. Any idea of what is going on ?
Here is my code:
I placed this on the config .lua
settings =
{
iphone =
{
plist =
{
UIAppFonts =
{
“specialfont.otf”
}
},
},
}
And I placed this on the main.lua
score = 0
scoreText = display.newText( " " … score,470, 15, “specialfont”, 60)
local function countUp()
score = score + 1
scoreText.text = " " … score
end
tmrscore = timer.performWithDelay(70, countUp, -1)
Thank you for your suggestions.
[import]uid: 111657 topic_id: 19520 reply_id: 319520[/import]
[import]uid: 52491 topic_id: 19520 reply_id: 75424[/import]