Jump to content

Overlapping hitboxes


Recommended Posts

Hello all,


so let's say I have two Sprites with hitboxes that overlap each other, let's just say by 50% for now (so sort of like a venn diagram). Is there a way to detect if my mouse is in the overlapping area of the hitboxes, or does the first hitbox prevent any sort of event propagation? Im essentially trying to figure out how to determine if the mouse is in overlapping hitboxes, without having to iterate through every sprite and mathematically checking if their hitboxes overlap.



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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