Posted January 14, 2019 by Onyon
#system
Hey there!
Since AZBH is mainly an RPG, character interactions take a huge part in unveiling the story of the game. Since the most basic form of communication between the characters is talking - a dialogue system seems to be a must.
I will go a little bit in-depth into the dialogue system I have prototyped for AZBH. Before I started coding the system and getting the UI art ready, I thought about a few things that I want to focus on:
ad.1 - I made the 'battle-adventure' GUI fade out when you enter a dialogue and added black bars at the top and bottom of the screen to get player's attention
ad.2 - Different characters can have different fonts and font colors.
ad.3 - Dialogue options box below the message box. Works like a charm, 10 minutes of work.
ad.4 - The currently talking character's portrait and name is displayed on the message box (possible face animations later?)
Here's how it looks so far (forgot to disable mouse-on-events, so there's a sword description for like half a second under the dialogue box lol):
So here's the boring part aka how does it work:
Confusing? I guess. I know my code is not too optimized, but I can read it and it works.
Any thoughts? Leave me a comment!
Thank you for reading!
onyon