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
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
I would like to populate all instances of my "gamePiece Animation Initial frame" Property from an array. The array holds 5 possible color frames 0 - 4. The gamePiece has also 5 frames in its animation.
So far I am able to update the "gamePiece" object Initial frame but all instances are always the same color dependent upon the first element in the array. The loop is running through the entire array.
Works perfect. It just all happens in less then 1 tick.
If I correctly understood..you don't need a loop...
LoadArray = ["0", "1", "2","3",0","4"];
On "setupLayout".....set gamePiece animation frame to int(LoadArray.At(gamePiece.IID))
Develop games in your browser. Powerful, performant & highly capable.
The problem is the array values are something like: 10 2 1 0 1 1 2 2 1 1 0 1 2 0 1
All of the instances are just getting changed to the last value in the loop. Not changing each instance to a value corresponding to the place in the array.
Korbaach, brilliant. That did the trick. I made it way too complicated. Thanks for the help