(solved) How do I Clear Array for one ROW?

Get help using Construct 2

Post » Fri Jun 17, 2016 8:17 am

I have 2D array, i want to erase, delete, or reset to value 0 just one row. exmple;

Code: Select all
0 0 0 0 0 0
0 0 1 1 1 1
1 1 1 1 1 0
0 0 0 0 0 0


and i want to reset the value of row number 3 (Y 2), how to do this? so the array can become;
Code: Select all
0 0 0 0 0 0
0 0 1 1 1 1
0 0 0 0 0 0
0 0 0 0 0 0


Please help me.
Last edited by oko4 on Tue Jun 21, 2016 9:01 am, edited 1 time in total.
B
12
S
4
G
2
Posts: 10
Reputation: 1,812

Post » Fri Jun 17, 2016 8:53 am

array for each x element:------array set at xy--X: (array.curx) Y: 2 = 0
B
86
S
43
G
71
Posts: 601
Reputation: 43,619

Post » Tue Jun 21, 2016 4:50 am

Thanks for your help and worked fine
B
12
S
4
G
2
Posts: 10
Reputation: 1,812


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 1 guest