Replacing text with images

Hi, I think my solution may be Text Candy… But,

Is it possible to replace number characters with images? I’d like the scoring system on my game to look more appealing - when a score flashes up on the screen I’d like it to be more than just plain text.

Thank you [import]uid: 125592 topic_id: 24329 reply_id: 324329[/import]

The term you’re looking for is “Bitmap Fonts” and yes its quite doable with Corona. It’s a little extra work, but it can be done with 10 png files (0 - 9) and the movieclip.lua module (or sprite sheets).

You basically have a movieclip for each digit and do a little math to determine the 10’s digit, the 100’s digit, etc. Then tell movieclip to play that one frame.

There should be several posts about it. I’m pretty sure there is a tutorial on Peach’s site to use as an example.

Of course Text Candy will do a lot of that for you. [import]uid: 19626 topic_id: 24329 reply_id: 98268[/import]

Hmm couple of other options…

You could use a custom font.

You could definitely split your score apart and retrieve images for each digit.

In fact this would be a great exercise to learn the new imageSheets with - Create your graphical digits 0-9, pack them up in an image sheet and retrieve them for your score needs.
Good luck!
Croisened [import]uid: 48203 topic_id: 24329 reply_id: 98272[/import]

Do have a look at Peach’s tutorial

http://techority.com/2011/01/26/how-to-add-a-score-to-your-iphone-app/ [import]uid: 64174 topic_id: 24329 reply_id: 98325[/import]