Counting values in an array

Get help using Construct 2

Post » Sat Feb 15, 2014 12:15 am

I'm using an array with 3 dimension, and am wanting to count how many times a certain value appears in the second Z dimension.

I have currently

For each XYZ element
Contains value "word" >>> Add 1 to GlobalCount

But alas that isn't working at all. Could someone be so kind as to suggest a way to fix this ?
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699

Post » Sat Feb 15, 2014 12:35 am

Use a regular for-loop and use Compare at XYZ with the appropriate indices.
ImageImageImage
B
71
S
21
G
220
Posts: 3,649
Reputation: 123,727


Return to How do I....?

Who is online

Users browsing this forum: blissfulwizard, DevinMurray, wizdigitech and 15 guests