How do I pick a random array?

Get help using Construct 2

Post » Thu Jun 09, 2016 5:23 pm

Hi

Is it possible to pick from 2 different arrays at random?

For example I have array1 and array2. Is there some sort of expression I could use to randomly pick one of those two arrays?

Thanks :)
B
19
S
7
G
10
Posts: 82
Reputation: 4,996

Post » Thu Jun 09, 2016 6:39 pm

You could use Pick by UID choose(uid1,uid2), where uid1 & uid2 are the actual UIDs of your two arrays.
ImageImageImage
B
71
S
22
G
240
Posts: 3,732
Reputation: 133,990

Post » Thu Jun 09, 2016 7:54 pm

or use Pick random instance
B
18
S
7
G
1
Posts: 56
Reputation: 3,000

Post » Thu Jun 09, 2016 9:24 pm

:!: Good point.
ImageImageImage
B
71
S
22
G
240
Posts: 3,732
Reputation: 133,990


Return to How do I....?

Who is online

Users browsing this forum: kellehk and 30 guests