How can I make two same entity not hit each other?
I have my code below but they two created new balls still collide to each other. some advice please...
function bounce_off()
{
if (you) // collided with another entity?
{
if( (you._ball!=10) && (me._ball!=10))
{
set(my,ENABLE_IMPACT | ENABLE_ENTITY | ENABLE_DETECT);
effect(particle_ball,maxv(1,40*time_step),my.x,vector(0,0,5));
vec_to_angle(my.pan, bounce);
my.pan += 5 - random(10);
my.tilt = 0;
my.roll = 0;
my.z = 0;
}else if( (me._ball==10) && (you._ball==10))
{
set(you,IGNORE_YOU);
set(me,IGNORE_ME);
}
}
}