Hi everyone!
I run the game on android device fine but on IOS browser I get this error:
TypeError: world.getChildren(topRow).forEach is not a function. (In 'world.getChildren(topRow).forEach(function (childBlock) {
blockInTopRow = childBlock;
})', ‘world.getChildren(topRow).forEach’ is undefined)
BlockController.ts:44:36
My code
…
const topRow = BlockRows[BlockRows.length - 1]
let blockInTopRow
world.getChildren(topRow).forEach((childBlock) => {
blockInTopRow = childBlock
…
})
It seems world.getChildren(topRow) does not return an array on IOS browser?. How to solve it?