Im very new to Phaser (and JS) so please excuse any me.
I’m building a puzzle game and I need to determine if a sprite is located over a particular zone. I could iterate over all sprites in the scene and all zones and check all boundaries but this would seem overly complicated.
Is there a way to find the zone/s that a sprite is over simply from the sprite object or its position?
No drag/drop involved. These objects are stationary and no interaction at all. I just need to be able to determine if they are positioned over any zones.