Game Development Community

Hello I have a beginner question

by programerblizz · in Torque 3D Beginner · 12/26/2015 (4:43 pm) · 5 replies

How would I make a basic npc talk?

#1
12/27/2015 (6:20 am)
You would play the sound upon an event (triggers) :O)

Here is the trigger link tutorial:
http://www.garagegames.com/products/torque-3d/fps#/3-scripting/#Make_Something_Happen

Here is how to play a sound:
Put in this:

sfxPlayOnce (AudioMusicLoop2D, "art/sound/your sound or dialog file");

in myTriggerTests.cs from that small tutorial. Then you should be ready to be more creative and work on from that with more smart solutions and methods :O)
#2
12/27/2015 (3:56 pm)
Thanks but what about having text on screen. Would I do it the same way just with out the sound?
#3
12/28/2015 (5:29 am)
Text on screen you would need to learn the GUI system first(I am assuming that you would like that text to appear in some nice boxes like in a dialog menu as in something like Final fantasy or Baldurs Gate.... am I right?).

You could go through this tutorial first:
Go to:
http://www.garagegames.com/products/torque-3d/guides

Then click Creating a new GUI. Pay attention to the part where it says "Dynamic Text" :O)

Of course you would need to change the view and look of the GUI later on to give it a more unique feel to your game :O)

Some useful tutorials to get you started here:
Simple Inventory(with icons!)

Simple HUD tutorial

There are many more under "hidden" on this site. Do some searches on it :O)

Torque 3D MIT is a very flexible tool as you learn it. The better you know it the more creative you get and the more you start to play with the many options and possibilities it offers.


#4
12/29/2015 (12:40 pm)
Thanks for all your help, here is a image of the dialog I made :)

s28.postimg.org/vm9t47iel/Untitled.png
#5
12/29/2015 (2:08 pm)
Cool!!! :O)

Oh and you are welcome!

Happy New Year!