hey guys, is it possible to code an score which uses images as counting numbers? l already drew numbers from 1 to 9 and zero.
You are looking for something called “Bitmap Fonts”. You can do a forum search on the topic. There are several options out there to help you do this.
If you want to do it by hand, you have to take your score and divide by 10, by 100, by 1000, etc. to get each digit’s value, look up the image for it and create a display.newImageRect() for the digit and then draw them at the right place. These existing bitmap font libraries do a lot of that work for you.
Rob
It is very easy ; there are several libraries including mine https://github.com/autismuk/Font-Manager which is free as in free free, though you will need some sort of bitmap font file or creator program, there are two very good ones but they cost money :(
You are looking for something called “Bitmap Fonts”. You can do a forum search on the topic. There are several options out there to help you do this.
If you want to do it by hand, you have to take your score and divide by 10, by 100, by 1000, etc. to get each digit’s value, look up the image for it and create a display.newImageRect() for the digit and then draw them at the right place. These existing bitmap font libraries do a lot of that work for you.
Rob
It is very easy ; there are several libraries including mine https://github.com/autismuk/Font-Manager which is free as in free free, though you will need some sort of bitmap font file or creator program, there are two very good ones but they cost money :(