hi there ive got a problem which is annoying lol.
im new to arrays but i thought id start using them in my project as its important to learn arrays. so i started off with something simple which follows.
on object clicked - push "Barracks" on x axis (((array)))
set value at (array.curx , 1) to globalvarible * 120 (((360)))
so this adds an array of Barracks,360
which works out perfect, so the next bit of code i want to happen is every 1 second subtract 1 from the 360 until it reaches 0 so i used code
for each x element
every 1 second - set value at (array.curx , 1) to array.curvalue - 1
timer = true
the reason ive done the code like this is i plan to add several more items to the array each with its own timer in Y, so i constantly want it to subract 1 from each Y until it hits 0 but the code just sets the array to (barracks,barracks) so im not sure what im doing wrong. i hope this makes sense.
im sorry havent provided a .capx file as its a secret project also a screenshot would be hard as the codes are all under seperate categorys on different pages which would mean alot of copy and pasting