Is there a way to do a collision by a certain collision mask. I would like my player character to hurt the enemy when in collision with for example the enemies head but get hurt themselves if collision is anywhere other than the enemy head.
At the moment I am using a separate object connected to the enemy as the head hitbox. This works fine but just interested if it can be achieved by choosing which collision mask is being collision with.
With that you could use it to jump on head
While use inverted condition of point check and collision check to inflict damage in any other way
For example if player is falling and point is inside of enemy and player is in collision with enemy you inflict damage to enemy
IF one of these condition is not true you inflict damage to player