How do I create a next button.

Get help using Construct 2

Post » Wed Sep 23, 2015 2:52 pm

Hi guys,

I was trying to make something as simple as it sounds, a Next button.

I have some pieces of text that I want to be shown but one by one, like instructions for example.
So when the layout starts, blabla1 is shown.
Then pressing a Next button (sprite), the next piece of text (blabla 2) is being shown.
I have this working with "set text to blabla2", not a problem.

However when I add another piece of text like blabla3, then the button is not following a timeline, but it's showing blabla1 followed by blabla3. Not blabla2. Only when I add a wait action in between, it will show so many seconds. But I want the Next button to do it.

I have tried a pause button as well, but I get to the same problem.
Could anyone please give me a hint, it must be the easiest thing but I can't get my head around it.

Thanks.
Queueon
B
5
Posts: 4
Reputation: 233

Post » Wed Sep 23, 2015 3:15 pm

You could solve this by using else statements attached to your conditions..

But maybe using the button to add to a variable and setting the text based on the variable would be even easier..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Sep 23, 2015 3:22 pm

Image
B
65
S
23
G
7
Posts: 1,505
Reputation: 10,896

Post » Wed Sep 23, 2015 5:34 pm

Hi guys,

I am mind-blown.
This function was exactly what I was looking for.
I would never be able to get to this point myself as a newbie.

Thanks so much and I will decode it to be able to learn from it.
5 star!
B
5
Posts: 4
Reputation: 233


Return to How do I....?

Who is online

Users browsing this forum: evillair, NumberOne and 5 guests