Jump to content

game.physics.collide() for world bounds and groups


Recommended Posts

Hey guys. I'm trying to get sprites in a group to scale to its -x equivalent when hitting the left and right world boundaries.


The only implementation I've thought about is to assign each member to an index in an array, and use if's and forEach loops, but that seems a bit resource-intensive and dirty.


Is there a way to use the game.physics.collide() function so I can do this in a cleaner way?

Link to comment
Share on other sites


  • Recently Browsing   0 members

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