I'm unable to call a boolean and make it perform its required function for 2D arrays. Upon calling true ideally there is an image that would be found. The length of the findme variable should match the length of isFound. I am not sure how to do that. The findme variable should change the value of talent.isFound but I'm unable to change its value. Below is what I've tried.
var talent[
[{
PosX: 300,
PosY: 600,
isFound: false
} {
PosX: 500,
PosY: 800,
isFound: false
} {
PosX: 200,
PosY: 600,
isFound: false
}
]
[{
PosX: 100,
PosY: 200,
isFound: false
} {
PosX: 300,
PosY: 400,
isFound: false
} {
PosX: 100,
PosY: 700,
isFound: false
}]
]
var findme = [true, false, true, false, false, true]
for (var i = 0; i < talent.length; i++) {
for (var j = 0; j < talent[i].length; j++) {
talent[i][j].isFound = findme[[i][j]]
}
}