How do I Search an Array

Get help using Construct 2

Post » Thu Jul 13, 2017 2:32 am

My best guess at answering my own question follows: (it doesn't work and seeking guidance)

Array, 400 width / 30 height / 1 depth
Text Box

Condition -
Array compare at XY: value at (loopindex,0) =8 and Array compare at XY: value at (loopindex,11) =Dog

Action -
set text to str(loopindex,15)

I'm not sure loopindex is the right way to go...especially in the text ??str(array.curx,15)??

Suggestions appreciated.
B
11
S
2
Posts: 33
Reputation: 651

Post » Thu Jul 13, 2017 3:10 am

Solved:

The above conditions were fine (first time I've used loopindex).
The action needed to be str(array.at(array.curx,15))...likely don't need the str()

The rest of the issues were all me, per the norm ;)
B
11
S
2
Posts: 33
Reputation: 651


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], JackTYGA, JMTook and 34 guests