Is there a science to when collision detection is... detected?
Say you have an object that, when reaching a certain animation or end of animation, it creates a second invisible detector object that flashes instantly and then destroys itself maybe a frame or two after. When objects that are considered enemies touch this detector, they'll be destroyed. Making this work is not a problem.
But sometimes, the timing is off. Objects that are enemies being touched at the detector object's creation are destroyed... but often times not in that instant they're colliding or overlapping. It's a frame off, or sometimes even two or three. Is this a known problem with a lot of lines of code or large separations in code? Not sure how to fix or workaround this so that it occurs at the very instant the detector object is create (which would have it already overlapping an enemy object)