How do I make text different each time I press a key?

Just started using Construct 2? Post your questions here

Post » Sat Apr 21, 2018 1:35 pm

I am making a game, and one of my layouts has a conversation that keeps changing the text any time a key is pressed. How do I do this?
B
3
Posts: 8
Reputation: 191

Post » Sat Apr 21, 2018 1:47 pm

It picks something at random or it's a predetermined conversation that runs until an end point?
B
53
S
21
G
95
Posts: 2,452
Reputation: 56,119

Post » Sat Apr 21, 2018 2:15 pm

Pre-determined.
B
3
Posts: 8
Reputation: 191

Post » Sat Apr 21, 2018 2:36 pm

You could add the text strings to array and push them through as the conversation goes on, you can keep deleting the top element of the array so (0,0) will show in the text box. You could set up an event that says when a variable is such a value then set text to something, such as 0=show textA, 1=show textB, increase the variable on key press.
B
53
S
21
G
95
Posts: 2,452
Reputation: 56,119

Post » Sat Apr 21, 2018 3:37 pm

Here is something I've been trying, I made it so when I clicked, the text would change to the next line of dialogue, but when I test it out it automatically goes to the last line. How do I fix this?
B
3
Posts: 8
Reputation: 191

Post » Sun Apr 22, 2018 4:18 pm

(bump)
B
3
Posts: 8
Reputation: 191

Post » Mon Apr 23, 2018 2:16 am

Would you mind posting a capx with the logic you’re using? If it’s moving through to the end, likely it isn’t being accurately bound by clicking (or perhaps your variables are repeatedly adding until hitting a limit while you click)
B
82
S
48
G
32
Posts: 468
Reputation: 23,663

Post » Tue May 01, 2018 1:18 pm

Message: RevampedSpider can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Here's the file to the game.Since I can't post links yet you can just copy and paste.

https://sta.sh/04y9obml3du
B
3
Posts: 8
Reputation: 191

Post » Tue May 01, 2018 5:39 pm

Can anyone see my URL posts? (bump)
B
3
Posts: 8
Reputation: 191

Post » Tue May 01, 2018 6:20 pm

Dang, that file is 45MB! Is it possible to maybe just post a screenshot of the relevant events?
Image



Coming soon on Steam!
B
16
S
9
G
3
Posts: 225
Reputation: 3,510

Next

Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests