Community
Message Board

Chat room - users
Game Over
( 394431 downloads)
Work In Progress
( 523201 downloads)
Links

Code Exchange
Downloads
Tutorials
Add to Favourites

Submit news

DIV ARENA FORUMS
Not logged in [Login - Register]
Go To Bottom

Printable Version  
Author: Subject: Coding a conversation
steffen87
DIV Junior
**




Posts: 32
Registered: 4-4-2022
Location: Germany
Member Is Offline


[*] posted on 10-4-2022 at 08:59 AM
Coding a conversation


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
View user's profile View All Posts By User
steffen87
DIV Junior
**




Posts: 32
Registered: 4-4-2022
Location: Germany
Member Is Offline


[*] posted on 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.
View user's profile View All Posts By User

  Go To Top

Powered by XMB
XMB Forum Software © 2001-2012 The XMB Group
[Queries: 18]