Jump to content

Check if group is out of bounds


Recommended Posts

I'm trying to check if a whole group is outside of the visible bounds, so i can process it for cleaning up memory.


I've got my world bounds set to this:

var w = window.innerWidth, h = window.innerHeight;game.world.setBounds(0, 0, w, h);

I've tried a few things, but i guess what i'm looking for is something like "group.events.onOutOfBounds()" I realise this doesn't exist, but is there anything that would do the job?


Is it possible to check if a group is out of bounds, or do i have to check everything in the group individually?



Link to comment
Share on other sites


  • Recently Browsing   0 members

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