How do I test an Array

Get help using Construct 2

Post » Tue Feb 23, 2016 6:46 pm

How do I test a one dimensional array (to see if all values are set to 1)?
I used if array is not zero using the "Array Contains value 0" (inverted), but I can see in the debugger that my array is all ones, but the condition is not happening.
Last edited by COGames on Tue Feb 23, 2016 7:40 pm, edited 1 time in total.
B
11
S
3
Posts: 52
Reputation: 791

Post » Tue Feb 23, 2016 7:00 pm

http://www.blackhornettechnologies.com/ ... lOnes.capx

It's easier to look for the exception, and stop.

Disable line 3 to see the all-ones case.
ImageImageImage
B
71
S
22
G
240
Posts: 3,732
Reputation: 133,990


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 24 guests