#46501 - wiz - Sun Jun 26, 2005 10:37 am
Hello once again,
I have been thinking of methods to display text and numbers on screen using sprites. So far everything is going really well.
In the past, on the PC, to display a number I would convert it to a string and loop through it getting the character value of each character.
But wouldn't this be rather slow on the GBA? I'm trying to think up a way to display a number (lets say 12345) but I cant see how to get each number in order (as it would need to be split up like 1 then 2 then 3 then 4 then 5)
Maybe the conversion to string is the best method afterall?
I have been thinking of methods to display text and numbers on screen using sprites. So far everything is going really well.
In the past, on the PC, to display a number I would convert it to a string and loop through it getting the character value of each character.
But wouldn't this be rather slow on the GBA? I'm trying to think up a way to display a number (lets say 12345) but I cant see how to get each number in order (as it would need to be split up like 1 then 2 then 3 then 4 then 5)
Maybe the conversion to string is the best method afterall?