Hello,
I'm trying to create an attack with some splash damage in a 2D sidescroller. Initially, I was going to attach a trigger to each enemy to detect if the projectile (a cannonball) came close to the enemy. I quickly realized this approach had several problems.
I'm guessing it's better to create a trigger when the projectile contacts a target (and thus explodes), but I'm not sure exactly how that would work, how to use that to determine how far an enemy is from the center of the explosion, or if there is an altogether better solution that I'm overlooking. Any advice is very appreciated! Thanks