3 samples request: Dialog System, font support?, 2 player?
by Chok Wei Tat · in Torque Game Builder · 10/03/2006 (5:30 pm) · 4 replies
Hi, i wonder whether there an example for me so i dint need to code blindly
Can TGB can actually perform these?
1. http://www.gamerankings.com/screens3/3784/6.jpg
A dialog system with a small box beneath
2. font support
Using some kinda techneque which like
%gameFont = load("/comicFont.jpg");
then once i echo it, it will using the font style and not the default alphabet in TGB
echo "i love this font";
3. Is there a 2 player game example build in TGB?
Thanks for your time
Can TGB can actually perform these?
1. http://www.gamerankings.com/screens3/3784/6.jpg
A dialog system with a small box beneath
2. font support
Using some kinda techneque which like
%gameFont = load("/comicFont.jpg");
then once i echo it, it will using the font style and not the default alphabet in TGB
echo "i love this font";
3. Is there a 2 player game example build in TGB?
Thanks for your time
#2
Thanks for the reply ;p
10/05/2006 (5:07 pm)
Oh, that one comes with network feat, i jz hope can get the idea which concern on 2 player in one PC, like Contral, or other console shooting gamesThanks for the reply ;p
#3
You can use any font that is installed on your system. You can set it into GUI components just like any other normal font (like Arial) would be set. At the time the game runs, TGB creates a font cache which is redistributable- meaning the end user player does not need to have the same fonts on their system!
Just try creating some GUI designs and setting whatever font names you want. Take a look at profiles.cs that is where the fonts are setup I believe.
There is also a great resource t2dTextObject which turns a t2dSceneObject into a text display object you can use with any font.
[edited for spelling]
10/05/2006 (6:01 pm)
Chok Wei, personally I am not sure how to get Unicode working in TGB, but aside from that, I think the font system in TGB is really good.. You can use any font that is installed on your system. You can set it into GUI components just like any other normal font (like Arial) would be set. At the time the game runs, TGB creates a font cache which is redistributable- meaning the end user player does not need to have the same fonts on their system!
Just try creating some GUI designs and setting whatever font names you want. Take a look at profiles.cs that is where the fonts are setup I believe.
There is also a great resource t2dTextObject which turns a t2dSceneObject into a text display object you can use with any font.
[edited for spelling]
#4
10/05/2006 (6:33 pm)
Thanks, i gona try it out!
Torque Owner Chris Frankie