Dialog function with message table

Get help using Construct 2

Post » Sat Aug 02, 2014 1:40 pm

I'm looking to creating a simple dialog system that when approaching an NPC it displays a icon that indicates to press a button to talk. When doing so, I want the screen to pause until the dialog is finished and the user presses the key again.

Would like to create it as a function so that I can have different NPCs call it with a message ID and assuming a message table to contain the message text.

Can anyone recommend a simple way to do this or recommend a tutorial? I seem to struggle with finding tutorial that meet my needs.

Thanks!
B
12
S
3
G
1
Posts: 35
Reputation: 838

Post » Sun Aug 03, 2014 9:24 am

You could store all your NPC messages in an array. Then its just a case of selecting which message to display.
B
48
S
16
G
9
Posts: 1,097
Reputation: 11,195


Return to How do I....?

Who is online

Users browsing this forum: DiabloOvermind, mr6dante6 and 12 guests