Game Development Community

Need help on two things: Splash screen and Talking to NPCs

by Ammon Mills · in Torque 3D Beginner · 03/15/2011 (9:01 am) · 10 replies

I have two problems/questions:
Are there tutorials or guides on how to make a splash screen for torque 3d? Is there a guide on how to talk to NPCs (or how to make npcs in general? I know how to make a static bot, or static shapes that are people, but how do I get them to talk?)? I know there used to be a 'yackpack' but cannot find it anymore.

Thanks in advance for the help.

#1
03/15/2011 (9:08 am)
Quote:how do I get them to talk?

The first half of the answer to this is in your game design- how do you want it to occur? Since you mentioned Yack Pack, then I assume you mean the usual click-on-npc-to-get-wall-of-text like most RPGs use?

If so, then you want to break that down into two parts:
1) How to interact with the NPC: I recommend looking up object selection resources and then porting the one that matches what you want the best to T3D.
2) How to display the information: Basically, it's a GUI, so you want to think of what features it has (buttons, hyperlinks, etc), and where it gets its information from. It's much easier than it sounds.

For the splash screen, you mean a non-full-screen one? You can create a GUI, push it when the game starts, and cover it with an invisible button that, when clicked, pops the dialog.
#2
03/15/2011 (9:17 am)
I will search object selection resources, thanks.

I'm pretty new to this all, but to push it when the game starts, I would exec a file, right? I'll have to read the gui tutorials more.
#3
03/15/2011 (9:20 am)
No, an exec() will simply execute the file, which makes its contents available for use, basically. For example, all GUI scripts are exec'd pretty much at once, but you push and pop them when you need to. To push a GUI, you generally want to call Canvas.pushDialog(<GUI>), and popping it requires popDialog(<GUI>).

There are some tutorials on the site that can help walk you through some of this stuff. Check the Support area.
#4
03/15/2011 (9:26 am)
Thanks for the fast responses. Would you happen to know where the object selection resources are? Having trouble locating it.
#5
03/15/2011 (9:30 am)
Not the actual links, but the problem there is that they require source code. Take a look at the docs in Support > Docs > Online Documentation and look at the Scripting > Advanced > RTS Prototype section, where there's some stuff on mouse selection, I believe.
#6
03/15/2011 (9:43 am)
Found that, thanks.

I went through the GUI section and cannot find how to actually put them in game (the push). Sorry for the beginner questions, but I do greatly thank you for your help, Ted.
#7
03/15/2011 (9:47 am)
That's why I mentioned tutorials, to help you get used to how things work. Also, you should look at the demos and see how they do it.

Torsion is a great app to have and worth the money to work with Torque projects. I use it all day, every day.
#8
03/15/2011 (10:06 am)
Does Torsion have a tutorial? I have 30days with it, but haven't used it yet.

Where can I find the demos? Are you just talking about the offline documentation?
#9
03/15/2011 (2:06 pm)
Ammon - search the resources ... there was a writeup on simple splash screen setup for T3D
#10
03/16/2011 (11:54 am)
I tried several different key words, and can only find a splash screen setup for 2d. It contains .t2d files, so I don't think it would work for 3d, correct?