Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
this is what im trying to do.
the expression does the first "Array.At" and then stops, ignoring all 5 other "Array.At".
Are the values in a_items strings?
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.
Develop games in your browser. Powerful, performant & highly capable.
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...
Tried encasing the Array.At() in int() functions ? Maybe that'll force the calculation on numbers.