In this thread from 2017 ( Scripts That Check Multiple Objects ), it was suggested to check collisions against multiple objects with an array. I am trying to do that, but not having much luck. Could anyone spell out to me how I would do that? I have an array set up for ground objects like this:
groundObjs = ;
and then I have each ground object add itself to that array. Everything is working up to that point, and using console.log to list everything in that array is showing that all of the ground objects are being added properly, but now I can’t figure out how I would check for collisions against any/every object in that array.
Any advice for doing this? I’m using the Alpha Editor. Thanks in advance!