Game Development Community

Bitmap Fonts

by Gellyware · in Torque Game Builder · 08/24/2006 (5:27 pm) · 2 replies

Are bitmap fonts possible using TGB? If so.... how?

To be more specific, say I want to display the score at the top left corner using a bitmap font such that on screen you would see "Score:" @ playerScore. How would I go about doing this with a pre-made bitmap font?

#1
08/24/2006 (6:09 pm)
Sure. take a look here for some sample script that has text flying around on the screen. It was written for TGE, but I've also used it in TGB. You should be able to grab out the code snippets that you'll need from it to just display static text from bitmaps.

Also, if I remember correctly I used programmer artwork in GuiBitmapCtrl rather than GuiText controls for the first scoring system in Marble Blast before the GG made it look so nice - and it wasn't that difficult to do.
#2
08/24/2006 (6:29 pm)
Thanks Kevin, that looks like what I was after. :)