Jump to content

checkWorldBounds after entering world


lukaMis
 Share

Recommended Posts

Hi

 

I have a question about checkWorldBounds.

My sprites will start out of world bounds and enter game world from random location / angle itd. 

Sprites will than hang inside world bounds for a while and be optionally killed by player or go out world bounds again. 

Than i need them killed for object pooling.

 

What is best approach for my sprites to checkWorldBounds only after they enter in world not at start (when the are out of bounds). 

Should i have a boolean flag or is there any helper for this build in Phaser or anything like that.

 

tnx

Luka

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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