Quiz Game in T2D
by Gustavo Boni · in Torque Game Builder · 06/26/2006 (6:33 pm) · 5 replies
Hi all,
I was requested last week to develop a Quiz Game. It's basically a game with some (20) questions to be answered.
So, how easy is develop this in T2D? Using the GUI system should be fine?
Maybe an question editor would be needed, how can i do this with T2D?
And about the database for the questions? Should i do this for a text file?
Thanks in Advance,
Gustavo
I was requested last week to develop a Quiz Game. It's basically a game with some (20) questions to be answered.
So, how easy is develop this in T2D? Using the GUI system should be fine?
Maybe an question editor would be needed, how can i do this with T2D?
And about the database for the questions? Should i do this for a text file?
Thanks in Advance,
Gustavo
#2
I'll follow your advice, nice way to do this. It's exactly what i need. =)
Are you using just the GUI Editor?
Thanks,
Gustavo.
06/27/2006 (5:17 am)
Thanks to reply Lennart.I'll follow your advice, nice way to do this. It's exactly what i need. =)
Are you using just the GUI Editor?
Thanks,
Gustavo.
#3
Well, to be honest, I basically use them because it seems to work and the tutorials have more examples with sprites ;)
I think you could do the same (using sprites for your quiz screen and using the mouse events) and then use a text renderer to place your text on top of the sprites.
On the other hand, I'm pretty sure that this is not the "clean" way to do it ;)
06/27/2006 (5:30 am)
Well, my choices are basically bitmaps, so I decided to use static and animate sprites and use their mouse events to do my own gui. This works well because I need mainly buttons.Well, to be honest, I basically use them because it seems to work and the tutorials have more examples with sprites ;)
I think you could do the same (using sprites for your quiz screen and using the mouse events) and then use a text renderer to place your text on top of the sprites.
On the other hand, I'm pretty sure that this is not the "clean" way to do it ;)
#4
Do you know if there's any tutorial explaining how render text on top of sprites?
If it's easy, i'll do like you ^^
Thanks
06/27/2006 (5:44 am)
Hehe, this should be nice. I think it's better than use the standard GUI too, the final result might be better.Do you know if there's any tutorial explaining how render text on top of sprites?
If it's easy, i'll do like you ^^
Thanks
#5
Check the Whack-A-Mole tutorial (Part 4 - Adding Text).
Basically, you simply add a few GuiTextCtrls to your SceneGraph. That's it.
06/27/2006 (7:14 am)
It is really easy ;)Check the Whack-A-Mole tutorial (Part 4 - Adding Text).
Basically, you simply add a few GuiTextCtrls to your SceneGraph. That's it.
Torque Owner Lennart Steinke
I'm currently working on something similar and had no problems. If you're wanting to do something like "You don't know Jack" you should be up and running in almost no time.
You could simply define the question in a text file: Say you have a multiple choice game, 4 questions each:
Q: Blubb?
A1: Yup
A2: Yap
A3: Yip
A4: Yep
Let's say A1 is always right and you simply randomize the order on screen, this would work well and it will allow you to add questions easily.