I’d appreciate any MakeCode staff help with this project where I’m attempting to access numbers representing x and y positions inside of a multidemensional array inside of my ‘spawn_enemy’ function.
I receive the following error thrown when attempting to access these array items:
‘e.findIdx is not a function’
I’ve added console logs in my project to demonstrate that it seems im able to access the individual items inside the function where the multidimensional array is created. Elsewhere the array is returned from the initial function and stored in a variable but now inside this variable I can no longer access individual items. Any idea why this may be?
Project is below: