Robot Series: Using Unity Script to Create a NPC Talk System
-
Download Files
You must be a citizen to download the source files.
- Register to Favorite
-
Like This Post
- Tweet This Post
Using Unity Script to Create an NPC Talk System
In this third part of our robot unity tutorial series we’ll be creating a talk system that allows NPC characters such as our Holobot to talk to us by displaying text on the screen through a GUIText object. The player can then iterate through this text using a key defined in the Input Settings.
We’ll start off with a static variant where the lines of text just appear and disappear. We’ll then build on top of that to create a “scroll-in” effect for the text, similar to how some of the older games did it.

Leave Comment
Discussion
One Response to “Robot Series: Using Unity Script to Create a NPC Talk System”Leave a Comment
You must be logged in to post a comment.
Cant help but be a math nazi but the % line from level manager should read:
var edgeMargin:int=Screen.width*edgeMarginPercentage/100;
because percent when turned into a “number” moves decimal two places to the left ie.
10% = .1
that will give you the true percent times screen width. but otherwise thanks for the great tutorial