DIV ARENA FORUMS

Coding a conversation

steffen87 - 10-4-2022 at 08:59 AM

Hi ppl!
As the title suggests, I'm trying to add some converstations to my adventure game (which you might have seen in the screenshots-section).
How'd you do it?

The idea is, that when the main character is walked toward another character, a small mouth-icon appears which indicates a possible conversation when pressed the action-key. I want a frame i which the text appears and the possibility to give an answer. To distinguish between the different conversations I'd give them a number, like...

PROCESS text_frame(text_number)

And it should like this

Hello, bla bla...

[1] answer 1
[2] answer 2

So, how would you code it? I don't want super complicated conversations, more like yes-no answer, or "where can I find the shop"-questions, because an adventure game is complicated enough. :D

steffen87 - 10-4-2022 at 11:16 AM

Little update:
As you can see on the screenshot, there is a small mouth icon.

After pressing CTRL this small frame opens.


First step done!:cool:

This small quest is also a tutorial, to teach the player which keys to use. The rest of the world is locked until the player finds the keys.