add multiple "Array.At" values in same expression

Get help using Construct 2

Post » Thu Jul 09, 2015 1:57 am

Image
this is what im trying to do.

the expression does the first "Array.At" and then stops, ignoring all 5 other "Array.At".

any ideas?
Image
B
23
S
5
G
2
Posts: 65
Reputation: 1,754

Post » Thu Jul 09, 2015 3:09 am

Are the values in a_items strings?
Learning other engines, but C2 still rocks. Image Image Image Image
B
81
S
22
G
96
Posts: 2,468
Reputation: 58,353

Post » Thu Jul 09, 2015 12:33 pm

@colludium nope. small int values.

if I convert each Array.At into a separate variable first, and then add all these variables it works.

so it seems like some kind of multiple Array.At/expression limitation.
Image
B
23
S
5
G
2
Posts: 65
Reputation: 1,754

Post » Thu Jul 09, 2015 2:00 pm

I've also experienced something like this before - and ended up using the same work-around that you've already found. I think it is a limitation of the c2 engine, although I've never seen any documentation to confirm that view...
Learning other engines, but C2 still rocks. Image Image Image Image
B
81
S
22
G
96
Posts: 2,468
Reputation: 58,353

Post » Thu Jul 09, 2015 2:42 pm

Tried encasing the Array.At() in int() functions ? Maybe that'll force the calculation on numbers.
B
81
S
33
G
27
Posts: 1,029
Reputation: 21,143


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 1 guest