text conversation between player and other objects

Get help using Construct 2

Post » Fri Jun 22, 2012 12:04 am

how can i create a text conversation between player and other objects?
when i press a button i want to change what is written in the text box but, i don't know how should i do.
thanks for the help
B
9
S
1
Posts: 18
Reputation: 1,147

Post » Fri Jun 22, 2012 2:34 am

There are so many ways to implement a dialog system.

At the simplest level you need to:

1) Trigger the conversation by some event, like clicking on a sprite or one object colliding with another.
2) In response to the event, use the set text action of a text object to set the text to the desired text.

This simple project shows a sprite saying different things when it collides with another sprite.

simpleDialog.capx

If you want something more involved, my "port" of Mikey's adventure part 2 also has a little bit of dialogs. For example, here is the section dealing with Mikey's conversation with an NPC called Jill. Maybe not the best model to copy, but hey, it was a learning experience!



There are also links to several threads in kyatric's (How Do I...) Frequently Asked Questions thread. under the RPG genre section that discuss a more full fledged dialog system.

kittiewan2012-06-22 02:35:47
B
29
S
11
G
12
Posts: 281
Reputation: 11,888

Post » Fri Jun 29, 2012 8:07 pm

thank you! i'll try to do something. if i will need more help i'll update this post
B
9
S
1
Posts: 18
Reputation: 1,147


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 21 guests