Random Text

Get help using Construct 2

Post » Sat Aug 04, 2012 4:49 pm

How to I make a text object at the 3 second point, set its text from a random list?
B
29
S
7
G
3
Posts: 361
Reputation: 6,187

Post » Sat Aug 04, 2012 8:00 pm

3rd second point? If you're talking about imagepoints, then there's an option for that when you use the Set Position to Another Object event, just change the number to the imagepoint id.

For a random list, you could have an array with text value and assign the text using the random function to choose which value in the array to use.

Text set text to Array.At(int(random(ArrayCount)))

That should do the trick, as long as the array only has 1 value.
B
19
S
5
G
1
Posts: 104
Reputation: 2,920

Post » Sat Aug 04, 2012 8:13 pm

I'm not sure exactly what you mean but you could use the expression:
choose(string1,string2,string3,...)
which will randomly return one of the strings
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Sun Aug 05, 2012 6:40 am

Both of those methods work, but I'd go with keepee for simplicity sake :)
B
36
S
10
G
6
Posts: 948
Reputation: 11,101


Return to How do I....?

Who is online

Users browsing this forum: flemmig, Matthew de, semaso, Skebab, Virpoja and 13 guests