I'm trying to make myself familiar with Construct 2 so I tried to clone the game DiveKick. It feels pretty easy at first and I've run onto some bugs with but I sorted them through reading posts on the "How do I...".

Now here's the issue I've run into. Let's say Player A successfully divekicks Player B. Instead of counting the counting the score for Player A, it adds to Player B. It's having trouble determining which sprite actually hits the other sprite.

What I did first is compare the "Y" axis. It works fine for this specific game. But what if I'm to build a real fighting game. Does collision detection have something to do with zorder?

Any idea how to let the code know which sprite is actually doing the hit?Let me know if it sounds confusing.

Collisions are only concerned with whether the object collision polygons are overlapping. They are not affected by Z order or anything else.

In a fighting game you'd need to apply your own logic to collision events, such as: if colliding and player A is attacking and player B is not blocking, hurt player B; else if player B is attacking and player A is not blocking, hurt player A, etc.