Game Development Community

A very basic "how to" question

by Keith Goddard · in Torque Game Builder · 11/01/2011 (4:37 am) · 3 replies

I've read in several places that the best way to start game programming is to start with a simple project, the idea being that a completed simple project is mor useful than an uncompleted big project. With that in mind, I'm attempting to make a very simple platform game for my young niece. I've got the Platform Starter Kit, but my issues right now are related more to TGB itself than the PSK, so I'm posting in this forum.

I'm using the PSK to make an "educational platformer", so at various points I'd like to force the player to answer some simple maths questions. For example, upon picking up an item, I'd like to have a little window or speech bubble (or something) appear, which poses the question of what 12x7 equals. If the player gets the answer correct, they get double the "points" that would normally be associated with that item. The general idea is to have a fun game which allows my niece to learn basic math without it seeming like homework.

It seems a simple idea... but I've go no idea how to go about making a window/speech bubble/whatever appear which allows user interaction with it. I've implemented some basic tests where I can popup a MessageBox, but this doesn't quite provde the functionality I need (plus it looks rubbish).

Any suggestions on what I should be exploring?

#1
11/01/2011 (12:22 pm)
I'd think using a GUI control for this would be a good fit. There's already controls for text entry boxes, text labels, floating windows and buttons.
#2
11/01/2011 (1:48 pm)
Thank you, Simon. I guess I'm going to have to fight my way through figuring the GUI controls out.
#3
11/09/2011 (8:12 pm)
This is a bit old, but I thought you would like to know about the $timeScale variable. You can "freeze" the game while displaying questions by setting it to 0. 1 is the normal speed.