Jump to content

Test if alive sprites are in a window rectangle?


Recommended Posts

I need to test whether any sprites alive in the world are within a box in the world. It doesn't have to be too accurate. E.g., just testing if the center of the sprite is within a the box is sufficient.


I started coding a loop that tested the position of every sprite, but realized there was probably a collision test or some other, simple, Phaser way to do it?

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...