TNT Basic Forums > Programming Q&A
Totally lost!
< Last Thread     Next Thread >
Thread        Post A Reply

05-22-2002 18:31

Posted by:

Find more posts by LiveHill

I am totally new to Basic and i downloaded the TNT basic demo to learn some.

I am trying to make a text-based game.
Is there any way to let the players type commands in my game?

Since i have no idea what to start out with i just wrote one thing:

Print "Hello there!"

When i click on run to test it a window pops up and says something about that TNT is out of memory.

When i open some of the example games i can open them in Hieroglyph and run them.

Help a poor little newbie that doesn't know a thing.

05-22-2002 20:25

Posted by:
John Treece-Birch

Find more posts by John Treece-Birch

Text Games


TNT Basic is generally more oriented towards graphics-based games but it's not impossible to do something text-based. TNT Basic can read the keyboard and display text, but it might be easier to use a game building package that is specifically designed for making text-based games instead.

Assuming your program is just...

Print "Hello there!"

..then that should be fine. If that doesn't work then it must be a bug in TNT Basic, although I just tried it and it worked on my machine. Make sure that TNT Basic is already running before hitting run.

Thanks for your interest,

05-23-2002 05:44

Posted by:
Douglas O'Brien

Find more posts by Douglas O'Brien

Well, it isn't impossible..

It isn't impossible to build up your own text engine with the Pressed command and assigning characters to numbers manually. But your new so don't do that.

Will a future version of TNT have and InKey command or something?

05-23-2002 07:26

Posted by:

Find more posts by Carlos

Text Games


You may then want to give Gamemaker or METAL (search Google) a shot. Even Chipmunk BASIC. Now, I haven't studied TNT BASIC's syntax, but to do what you want to do, it would go like this..

print "Hello, what is your name?"
input name$
print "Welcome ";name$;" to my great text adventure"

and so on...

as for your error, please check the memory setting of TNT BASIC in the finder. Also, try throwing out the prefs to see if that helps.


Carlos Camacho

05-23-2002 19:22

Posted by:

Find more posts by LiveHill

Well, i am actually using GameMaker allready.

Maybe i shouldn't use TNT...

( Visit )

05-23-2002 20:48

Posted by:
Mark Tully

Find more posts by Mark Tully

Text input

Hi there,

Our text input and output support is quite limited at the moment, it's really only there for debugging. We've instead focussed our development efforts on the graphics, sounds, maps and music aspects of the language.

Although a simple text game sounds like a good place to start - you may be surprised at how easy it is to make a graphical game in TNT Basic.

Check out the game - in - 60 tutorials in our learning zone for more info.

Good luck!


All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.