Hey guys;
Do you know how can I do this? I have an array with one column changing it's values often; I must store the sum of the values in this column and store them in a variable.
To explain further, I have a layout with some sprites for the player to select, each sprite has a price. When one sprite is selected I upload it's price to an Array. So I do: For each Sprite, if is selected, Array: Set value at (4, loopindex, 0) to Sprite.price. So I fill one column of the Array with the values of the selected sprites, and when a sprite is not selected I do Array: Set value at (4, loopindex, 0) to 0, letting the 4th column of the array filled only with the values of the selected sprites.
What I need to do is show in the screen the sum of this array column, and this is being tricky. Here's a screenshot of my code: