Author Topic: SPRITE over another SPRITE  (Read 56 times)

Nasa

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 0
    • View Profile
SPRITE over another SPRITE
« on: December 06, 2017, 06:35:09 AM »
Hello!

How to check if one specific sprite over another specific sprite?

Thanks for your attention!

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,765
    • View Profile
Re: SPRITE over another SPRITE
« Reply #1 on: December 14, 2017, 10:40:55 AM »
Do you mean if they are overlapping in screen space? then you can compare the sprite.worldCorners and see if there's an overlap.

If you also mean depth-wise, you'll have to check the sprite depth, panel depth, and potentially camera layer to see if it is drawn on top of the other sprite.


Does that help you?