1 decade ago by esschul
Hi, I have an entity that I'm jumping on with another entity, and would like to detect whether I hit the head or the body.
In the check-method:
var iHaveHitTheEntitysHead = ?
If (iHaveHitTheEntitysHead ){
spawnCoin
add damage to this.entity
} else {
// I have hit the rest of the body.
add damage to this entity
add damage to the other entity
}
Does anyone have any idea how to do this?
In the check-method:
var iHaveHitTheEntitysHead = ?
If (iHaveHitTheEntitysHead ){
spawnCoin
add damage to this.entity
} else {
// I have hit the rest of the body.
add damage to this entity
add damage to the other entity
}
Does anyone have any idea how to do this?