For reference, I am trying to create a simple slot machine in Construct 3 by utilizing an array to generate a 3x3x1 Array of integer values, each of which will be assigned their meaning elsewhere in the project. I do this using the Array object in runtime, and would like to access its values using javascript.
When the user runs the slot machine, the following code should execute:
for(let i=1; i<4; i++){
for(let j=1; j<4; j++){
runtime.objects.Array.At(i,j,1) = Math.random(1,5);
}
}
Every time I run this code, the build fails, giving the error message "Assigning to rvalue 3:2".
I'm sure this is a newbie mistake but if anyone can help me fix this code I would greatly appreciate.