Tuesday, March 7, 2017

Day 22: Dialogue System Continued

To start, I made a script that will help control what specific NPCs say.

Now I have this thing in the NPC script component in the NPC object. It allows me to simply type whatever into the boxes, and the NPC will say it. I can also set the name.

I added a lot more script (which would take a while to explain)...

And this is what I ended up with in the end. Unfortunately, the dialogue seems to be running through twice, which I'll have to fix. I'll also have to fix the size of the text, since it sometimes goes past the edges of the box.

To fix the double-dialogue, I simply needed to delete these lines. For some reason, the guy in the tutorial said to put them in, yet it works without them.

And after tweaking the size of the boxes a bit...

It's still messed up.

Next class I will first try to fix the dialogue box, then I will continue the tutorial.










No comments:

Post a Comment