How can I copy all the contents of just one row of an array and put it into another array?
for array1.height - array2 set at X,Y (row, loopindex), value array1.at(row,loopindex)
Thanks for the reply, but I don't understand where I have to put it, I'm not too familiar with arrays
No nothing to do I did not understand lol
Develop games in your browser. Powerful, performant & highly capable.
It's just a for loop, and the action is using the array object set at XY
Yesterday I did this, but the maximum I got was copying a single cell, I've done several tests now but I keep doing something wrong
sendspace.com/file/rh92zs
Ya but what about my example? Yours is set at xy (1,1) to array.at(0, loopindex-1). Instead use what I mentioned above set at xy (1, loopindex) to array.at(0, loopindex)
You're right it's different but this is because if I insert (1, loopindex) in the X field and in the y (1, loopindex) it doesn't let me continue, it says that there is an error, if I write array2.at before the parenthesis it lets me continue but it still doesn't work
Look at what you have in the action already, X=1, Y=1. Change Y to loopindex, keep X as 1. Change the value field to array.at(0, loopindex) instead of array.at(0, loopindex-1). When I write set at xy (1, loopindex) I mean x is 1 and y is loopindex.
Thanks now it copied fine, I had some trials changing the values but still the wrong way XD
I need to understand arrays a little better!
Yeah for some reason people get scared of arrays but they are very simple and useful. If you try and make events in a blind trial and error kind of way it won't work, better you understand what the events are doing. If you understand the event we discussed here then you are on your way.