Create tick box of text

Get help using Construct 2

Post » Fri Mar 23, 2012 11:52 pm

Hi guys,

I'm killing my brain and not getting to anything that i can use...

How do i get an Text object to show me a text like if i was telling a story

Example would be one of those thinking Clouds with text inside, i need it to keep changing, like if the char would be thinking....

I have tried to use an Array and write my text in 10 parts... however i'm having issues with the loops

It only shows me the last array value...

For example

array[10] i'm doing for each X set text to curvalue (currentvalue)

This if i run the layout always shows the position array[9] skipping the others....


What is missing here?

B
28
S
2
Posts: 69
Reputation: 1,491

Post » Sat Mar 24, 2012 2:29 am

Use a loop only if you want to repeat many events in ONE tick.
Using a one-dimensional array is a good start.
I would do this: add an instance variable to the text box perhaps. Then whenever you want to change a thought (perhaps every X seconds), add one to variable.
Every tick: set text to array.at(variable)
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sat Mar 24, 2012 8:17 am

thank you!

@ Ashley

Maybe the values in an array could be defined on the object setting in the future? It would spare initialization actions
rgros2012-03-24 08:35:36
B
28
S
2
Posts: 69
Reputation: 1,491


Return to How do I....?

Who is online

Users browsing this forum: mercuryus and 15 guests