@luke2125 wrote:
Hi,
I'm using the simple method for colliding between objects in my game, like the following:
properties: {
zombiecolliderobjects:{
default:[],
type: [cc.Prefab]
},
},
onCollisionEnter:function(other,self){
this.node.color = cc.Color.RED;
this.touchingNumber ++;
if(cc.rectIntersectsRect(this.node.getBoundingBox(),this.zombiecolliderobjects[0]))
{this.ZombieBulletLeftHit()}However, how can I use tag for colliding objects? The tag that's in the box collider component? Or is it possible? Would appreciate any help.......Thanks and God Bless....
Sincerely,
Sunday
Posts: 2
Participants: 2