How to scramble array values???

Get help using Construct 2

Post » Thu Jan 12, 2017 12:08 pm

Hey guys, I have a few questions about arrays.
I finally figured out how to use the .CurX thing but now I want to SCRAMBLE the values within the 100x1x1 Array.
Maybe you could also create the array to begin with to contain 1-100 such that NO VALUES ARE THE SAME.

Here's what I've done so far. I'd really appreciate if someone could edit the capx. : (
Thank you, guys!

http://s000.tinyupload.com/?file_id=684 ... 1934327323
Image Image Image
B
31
S
11
G
27
Posts: 748
Reputation: 17,093

Post » Thu Jan 12, 2017 1:05 pm

https://drive.google.com/open?id=0Bwizs ... 2FXaGlNbWc

Here you go!

For those of you who don't want to download the capx for the solve:

Image
The LEVEL GENERATOR TOOLKIT



24 functions dedicated to producing randomly generated terrain for all kinds of games.
B
25
S
7
Posts: 242
Reputation: 2,306

Post » Thu Jan 12, 2017 1:07 pm

This is admittedly simple, and broad, and you will want to adjust the 'Array.Width*2' factor. To improve on this, see if you can force it to only select items that haven't been sorted yet!
The LEVEL GENERATOR TOOLKIT



24 functions dedicated to producing randomly generated terrain for all kinds of games.
B
25
S
7
Posts: 242
Reputation: 2,306

Post » Thu Jan 12, 2017 1:22 pm

Will check it out when I get home. Thank you.
Image Image Image
B
31
S
11
G
27
Posts: 748
Reputation: 17,093

Post » Thu Jan 12, 2017 1:47 pm

ImageImageImage
B
71
S
22
G
241
Posts: 3,734
Reputation: 134,494

Post » Sat Jan 14, 2017 8:00 am

Will try that one too thanks. :D
Image Image Image
B
31
S
11
G
27
Posts: 748
Reputation: 17,093


Return to How do I....?

Who is online

Users browsing this forum: jbr190, ratboy3 and 27 guests