Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Diet Estus |
I am trying to check for pixel-perfect overlap between my Player sprite and Enemy sprites.
Because this kind of thing is computationally expensive, I only do it if the bounding boxes of the sprites intersect.
After I check for bounding box intersection, how do I go about checking for sprite overlap?
In Pygame, you can create masks for each sprite and check for overlap using a simple collide_mask() method. Does Godot have something similar? I saw nothing like this in the sprite class.