Why can't my sprites detect each other?

In my program, one sprite is supposed to repeatedly hit the other. I surrounded the sprite's hand with a red circle, and the other sprite is supposed to get pushed back when it touches that specific color of red. For some reason, however, it doesn't work.

It probably doesn't work since the red circle is so thin. What I would recommend is to create a separate sprite for the red circle, and when the bad guy is doing the punch, to broadcast something or change a variable, telling the red circle to appear. That would work better.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.