forums

TNT Basic Forums > Programming Q&A
Okay newbie problem. input text.
< Last Thread     Next Thread >
Author
Thread        Post A Reply

08-01-2003 21:17

Posted by:
Carl PokéthulhuMasta

Location:
Norway

Click Here to Email Carl PokéthulhuMasta   Find more posts by Carl PokéthulhuMasta

Hey! I've only been using TNT for a day or so, but I already came up with a problem I can't solve. I've been looking everywhere but can't seem to find it.
My question is: When I run the game, how do I code it so that the player can type in text?
I know this is really easy, but hey! I've never done programming before.

08-02-2003 07:29

Posted by:
eekaydee

Location:
CA, USA

Click Here to Email eekaydee   Find more posts by eekaydee

Not easy

In many basic languages, there is an "input" command to do that. However, TNT doesn't have any such command. You must code it all, and it might be a lot of work. Some of DanLabs' games (like Crazy Golf) allow the user to type in text fields. I think you have to read the keyboard using the "pressed(key)", add the appropiate letter to a string, and display that string.

08-02-2003 07:33

Posted by:
eekaydee

Location:
CA, USA

Click Here to Email eekaydee   Find more posts by eekaydee

quote:
I've never done programming before

If you're new, you might want to check out the learning section, which has tutorials and the "Game-in-60" examples.

08-02-2003 09:57

Posted by:
Carl PokéthulhuMasta

Location:
Norway

Click Here to Email Carl PokéthulhuMasta   Find more posts by Carl PokéthulhuMasta

Well I'm doing great progress.
I've already made pong. though it kind of doesn't work in osx.
And I've started on my first own game: Dragon's breath

08-02-2003 14:41

Posted by:
someone

Location:
Quebec ( Canada )

Click Here to Email someone   Find more posts by someone

The input thing is the biggest flaw of TNT I can see right now. It should be fixed as soon as possible!

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.