As the topic says, I want to know how to get the ID of an active colliding entity.
My Player Entity is called with
Crafty.e("Player") Please notice, that I do not want the ID of my Player Entity. I want the ID of the Collision element
Do you want the id of the entity your player collided with?
var mobs = this.hit('Mob'); if (mobs) { // mobs is an array, could be more than one var collidingMob = mobs[0].obj; // if you still want the crafty id of this entity var mobId = collidingMob[0]; }