NPC: Scrolling dialog and audio

What do we see here:

As I mentioned this in the previous ‘Gameplay’ blog-post: I would be creating scrolling dialog triggered by clicking on a character’s name, as well as audio triggering for NPCs based on proximity. So that is what I implemented.

You setup a character by adding a name and a portrait which is automatically sent to the dialog box. You also setup ‘lines’ which are cycled when you go near the character.

What’s next?

I will be adding clicking on the NPC to trigger the same behavior, but also adding more options, like ‘Trade’, which will bring up the ‘Merchant’ and ‘Inventory’ windows.

Also loading dialogs from files and according to language to be ready for ‘localization’.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.