Jump to content

Detect when a Sprite "hits" the bounds


fatcat
 Share

Recommended Posts

Hi,

 

I was going through the docs searching for a "smart way" or built in method to detect when a Sprite "collides" with the game world's bounds ...

I saw that there was the 

game.physics.collide

method (as far as I saw in the examples it works with Sprite and I'm probably wrong) but I don't have a Sprite on the "bottom/floor" of my game.
Is that possible or should I just check the Sprite's position.y value to do that (or is there a callback)?

Thanks

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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