How do I directly find and change the value of an array?

Just started using Construct 2? Post your questions here

Post » Fri Mar 17, 2017 10:25 am

I have a two dimensional array with width 25 and height 3. The values are randomly assigned. How do I look for the instance of the array when the value is 1,0,0 and replace it with 1,1,0? In the debug display example below the line I need to change is line (IID?) 14.

.
.
12 8,9,0
13 19,10, 0
14 1,0,0
15 22,11,0
16 6,3,0

should be changed into

12 8,9,0
13 19,10, 0
14 1,1,0
15 22,11,0
16 6,3,0

I've been trying in vain. Thanks in advance.
Last edited by nuleaf on Sun Mar 19, 2017 1:46 am, edited 1 time in total.
B
11
S
2
G
1
Posts: 10
Reputation: 1,095

Post » Fri Mar 17, 2017 4:41 pm

Image
Mistakes were made.
B
53
S
27
G
114
Posts: 1,699
Reputation: 64,446

Post » Sat Mar 18, 2017 7:41 am

Thanks, I'll try it.
B
11
S
2
G
1
Posts: 10
Reputation: 1,095


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest