Using the Array object

Get help using Construct 2

Post » Wed Apr 25, 2012 4:29 pm

Hello,

Is there a way to manipulate the array object to function like RandomArray developed by joe7?

Dave
B
6
S
1
G
1
Posts: 52
Reputation: 829

Post » Thu Apr 26, 2012 2:13 am

As of C2 Release 87 there are two features that make this easy: While loop and a feature to test if a value is in the array. The "Tries" number shows the number of times a random number was generated. If it is bigger than the array width, then there were duplicates among the numbers generated, and so new random numbers were generated. Click the Refresh button a number of times to see the variation in the number of tries it takes to fill the array with unique numbers.

RandomArrayNoDuplicates.capxkittiewan2012-04-26 02:14:31
B
29
S
11
G
12
Posts: 281
Reputation: 11,888


Return to How do I....?

Who is online

Users browsing this forum: farfetchd83, Laurent, makkancs and 26 guests