i got the collision to work eventually but am not sure if this best and fastest way to loop it as i have to make so each card canot be cheked against itself or all cards will be hidden so card 0 canot be checked against when check the array loop of i hence the continue part of each line check so can tell me if this is the most eficient way i have already done
this is the part of code loop:
thank all
//-----------------------------------------------------------------------------------------------
void cardcoll()
{
int i;
for(i=0;i<Imposters;i++){
if( i == 0 ) continue;if(iVectorLength(CardLocation[0]-CardLocation)<10){HideCard(i);}
if( i == 1 ) continue;if(iVectorLength(CardLocation[1]-CardLocation)<10){HideCard(i);}
if( i == 2 ) continue;if(iVectorLength(CardLocation[2]-CardLocation)<10){HideCard(i);}
if( i == 3 ) continue;if(iVectorLength(CardLocation[3]-CardLocation)<10){HideCard(i);}
if( i == 4 ) continue;if(iVectorLength(CardLocation[4]-CardLocation)<10){HideCard(i);}
if( i == 5 ) continue;if(iVectorLength(CardLocation[5]-CardLocation)<10){HideCard(i);}
if( i == 6 ) continue;if(iVectorLength(CardLocation[6]-CardLocation)<10){HideCard(i);}
if( i == 7 ) continue;if(iVectorLength(CardLocation[7]-CardLocation)<10){HideCard(i);}
if( i == 8 ) continue;if(iVectorLength(CardLocation[8]-CardLocation)<10){HideCard(i);}
if( i == 9 ) continue;if(iVectorLength(CardLocation[9]-CardLocation)<10){HideCard(i);}
if( i == 10 ) continue;if(iVectorLength(CardLocation[10]-CardLocation)<10){HideCard(i);}
if( i == 11 ) continue;if(iVectorLength(CardLocation[11]-CardLocation)<10){HideCard(i);}
if( i == 12 ) continue;if(iVectorLength(CardLocation[12]-CardLocation)<10){HideCard(i);}
if( i == 13 ) continue;if(iVectorLength(CardLocation[13]-CardLocation)<10){HideCard(i);}
if( i == 14 ) continue;if(iVectorLength(CardLocation[14]-CardLocation)<10){HideCard(i);}
if( i == 15 ) continue;if(iVectorLength(CardLocation[15]-CardLocation)<10){HideCard(i);}
if( i == 16 ) continue;if(iVectorLength(CardLocation[16]-CardLocation)<10){HideCard(i);}
if( i == 17 ) continue;if(iVectorLength(CardLocation[17]-CardLocation)<10){HideCard(i);}
if( i == 18 ) continue;if(iVectorLength(CardLocation[18]-CardLocation)<10){HideCard(i);}
if( i == 19 ) continue;if(iVectorLength(CardLocation[19]-CardLocation)<10){HideCard(i);}
if( i == 20 ) continue;if(iVectorLength(CardLocation[20]-CardLocation)<10){HideCard(i);}
if( i == 21 ) continue;if(iVectorLength(CardLocation[21]-CardLocation)<10){HideCard(i);}
if( i == 22 ) continue;if(iVectorLength(CardLocation[22]-CardLocation)<10){HideCard(i);}
if( i == 23 ) continue;if(iVectorLength(CardLocation[23]-CardLocation)<10){HideCard(i);}
if( i == 24 ) continue;if(iVectorLength(CardLocation[24]-CardLocation)<10){HideCard(i);}
if( i == 25 ) continue;if(iVectorLength(CardLocation[25]-CardLocation)<10){HideCard(i);}
if( i == 26 ) continue;if(iVectorLength(CardLocation[26]-CardLocation)<10){HideCard(i);}
if( i == 27 ) continue;if(iVectorLength(CardLocation[27]-CardLocation)<10){HideCard(i);}
if( i == 28 ) continue;if(iVectorLength(CardLocation[28]-CardLocation)<10){HideCard(i);}
if( i == 29 ) continue;if(iVectorLength(CardLocation[29]-CardLocation)<10){HideCard(i);}
if( i == 30 ) continue;if(iVectorLength(CardLocation[30]-CardLocation)<10){HideCard(i);}
if( i == 31 ) continue;if(iVectorLength(CardLocation[31]-CardLocation)<10){HideCard(i);}
if( i == 32 ) continue;if(iVectorLength(CardLocation[32]-CardLocation)<10){HideCard(i);}
if( i == 33 ) continue;if(iVectorLength(CardLocation[33]-CardLocation)<10){HideCard(i);}
if( i == 34 ) continue;if(iVectorLength(CardLocation[34]-CardLocation)<10){HideCard(i);}
if( i == 35 ) continue;if(iVectorLength(CardLocation[35]-CardLocation)<10){HideCard(i);}
if( i == 36 ) continue;if(iVectorLength(CardLocation[36]-CardLocation)<10){HideCard(i);}
if( i == 37 ) continue;if(iVectorLength(CardLocation[37]-CardLocation)<10){HideCard(i);}
if( i == 38 ) continue;if(iVectorLength(CardLocation[38]-CardLocation)<10){HideCard(i);}
if( i == 39 ) continue;if(iVectorLength(CardLocation[39]-CardLocation)<10){HideCard(i);}
if( i == 40 ) continue;if(iVectorLength(CardLocation[40]-CardLocation)<10){HideCard(i);}
if( i == 41 ) continue;if(iVectorLength(CardLocation[41]-CardLocation)<10){HideCard(i);}
if( i == 42 ) continue;if(iVectorLength(CardLocation[42]-CardLocation)<10){HideCard(i);}
if( i == 43 ) continue;if(iVectorLength(CardLocation[43]-CardLocation)<10){HideCard(i);}
if( i == 44 ) continue;if(iVectorLength(CardLocation[44]-CardLocation)<10){HideCard(i);}
if( i == 45 ) continue;if(iVectorLength(CardLocation[45]-CardLocation)<10){HideCard(i);}
if( i == 46 ) continue;if(iVectorLength(CardLocation[46]-CardLocation)<10){HideCard(i);}
if( i == 47 ) continue;if(iVectorLength(CardLocation[47]-CardLocation)<10){HideCard(i);}
if( i == 48 ) continue;if(iVectorLength(CardLocation[48]-CardLocation)<10){HideCard(i);}
if( i == 49 ) continue;if(iVectorLength(CardLocation[49]-CardLocation)<10){HideCard(i);}
if( i == 50 ) continue;if(iVectorLength(CardLocation[50]-CardLocation)<10){HideCard(i);}
if( i == 51 ) continue;if(iVectorLength(CardLocation[51]-CardLocation)<10){HideCard(i);}
if( i == 52 ) continue;if(iVectorLength(CardLocation[52]-CardLocation)<10){HideCard(i);}
}
}
this is the part of code loop:
thank all
//-----------------------------------------------------------------------------------------------
void cardcoll()
{
int i;
for(i=0;i<Imposters;i++){
if( i == 0 ) continue;if(iVectorLength(CardLocation[0]-CardLocation)<10){HideCard(i);}
if( i == 1 ) continue;if(iVectorLength(CardLocation[1]-CardLocation)<10){HideCard(i);}
if( i == 2 ) continue;if(iVectorLength(CardLocation[2]-CardLocation)<10){HideCard(i);}
if( i == 3 ) continue;if(iVectorLength(CardLocation[3]-CardLocation)<10){HideCard(i);}
if( i == 4 ) continue;if(iVectorLength(CardLocation[4]-CardLocation)<10){HideCard(i);}
if( i == 5 ) continue;if(iVectorLength(CardLocation[5]-CardLocation)<10){HideCard(i);}
if( i == 6 ) continue;if(iVectorLength(CardLocation[6]-CardLocation)<10){HideCard(i);}
if( i == 7 ) continue;if(iVectorLength(CardLocation[7]-CardLocation)<10){HideCard(i);}
if( i == 8 ) continue;if(iVectorLength(CardLocation[8]-CardLocation)<10){HideCard(i);}
if( i == 9 ) continue;if(iVectorLength(CardLocation[9]-CardLocation)<10){HideCard(i);}
if( i == 10 ) continue;if(iVectorLength(CardLocation[10]-CardLocation)<10){HideCard(i);}
if( i == 11 ) continue;if(iVectorLength(CardLocation[11]-CardLocation)<10){HideCard(i);}
if( i == 12 ) continue;if(iVectorLength(CardLocation[12]-CardLocation)<10){HideCard(i);}
if( i == 13 ) continue;if(iVectorLength(CardLocation[13]-CardLocation)<10){HideCard(i);}
if( i == 14 ) continue;if(iVectorLength(CardLocation[14]-CardLocation)<10){HideCard(i);}
if( i == 15 ) continue;if(iVectorLength(CardLocation[15]-CardLocation)<10){HideCard(i);}
if( i == 16 ) continue;if(iVectorLength(CardLocation[16]-CardLocation)<10){HideCard(i);}
if( i == 17 ) continue;if(iVectorLength(CardLocation[17]-CardLocation)<10){HideCard(i);}
if( i == 18 ) continue;if(iVectorLength(CardLocation[18]-CardLocation)<10){HideCard(i);}
if( i == 19 ) continue;if(iVectorLength(CardLocation[19]-CardLocation)<10){HideCard(i);}
if( i == 20 ) continue;if(iVectorLength(CardLocation[20]-CardLocation)<10){HideCard(i);}
if( i == 21 ) continue;if(iVectorLength(CardLocation[21]-CardLocation)<10){HideCard(i);}
if( i == 22 ) continue;if(iVectorLength(CardLocation[22]-CardLocation)<10){HideCard(i);}
if( i == 23 ) continue;if(iVectorLength(CardLocation[23]-CardLocation)<10){HideCard(i);}
if( i == 24 ) continue;if(iVectorLength(CardLocation[24]-CardLocation)<10){HideCard(i);}
if( i == 25 ) continue;if(iVectorLength(CardLocation[25]-CardLocation)<10){HideCard(i);}
if( i == 26 ) continue;if(iVectorLength(CardLocation[26]-CardLocation)<10){HideCard(i);}
if( i == 27 ) continue;if(iVectorLength(CardLocation[27]-CardLocation)<10){HideCard(i);}
if( i == 28 ) continue;if(iVectorLength(CardLocation[28]-CardLocation)<10){HideCard(i);}
if( i == 29 ) continue;if(iVectorLength(CardLocation[29]-CardLocation)<10){HideCard(i);}
if( i == 30 ) continue;if(iVectorLength(CardLocation[30]-CardLocation)<10){HideCard(i);}
if( i == 31 ) continue;if(iVectorLength(CardLocation[31]-CardLocation)<10){HideCard(i);}
if( i == 32 ) continue;if(iVectorLength(CardLocation[32]-CardLocation)<10){HideCard(i);}
if( i == 33 ) continue;if(iVectorLength(CardLocation[33]-CardLocation)<10){HideCard(i);}
if( i == 34 ) continue;if(iVectorLength(CardLocation[34]-CardLocation)<10){HideCard(i);}
if( i == 35 ) continue;if(iVectorLength(CardLocation[35]-CardLocation)<10){HideCard(i);}
if( i == 36 ) continue;if(iVectorLength(CardLocation[36]-CardLocation)<10){HideCard(i);}
if( i == 37 ) continue;if(iVectorLength(CardLocation[37]-CardLocation)<10){HideCard(i);}
if( i == 38 ) continue;if(iVectorLength(CardLocation[38]-CardLocation)<10){HideCard(i);}
if( i == 39 ) continue;if(iVectorLength(CardLocation[39]-CardLocation)<10){HideCard(i);}
if( i == 40 ) continue;if(iVectorLength(CardLocation[40]-CardLocation)<10){HideCard(i);}
if( i == 41 ) continue;if(iVectorLength(CardLocation[41]-CardLocation)<10){HideCard(i);}
if( i == 42 ) continue;if(iVectorLength(CardLocation[42]-CardLocation)<10){HideCard(i);}
if( i == 43 ) continue;if(iVectorLength(CardLocation[43]-CardLocation)<10){HideCard(i);}
if( i == 44 ) continue;if(iVectorLength(CardLocation[44]-CardLocation)<10){HideCard(i);}
if( i == 45 ) continue;if(iVectorLength(CardLocation[45]-CardLocation)<10){HideCard(i);}
if( i == 46 ) continue;if(iVectorLength(CardLocation[46]-CardLocation)<10){HideCard(i);}
if( i == 47 ) continue;if(iVectorLength(CardLocation[47]-CardLocation)<10){HideCard(i);}
if( i == 48 ) continue;if(iVectorLength(CardLocation[48]-CardLocation)<10){HideCard(i);}
if( i == 49 ) continue;if(iVectorLength(CardLocation[49]-CardLocation)<10){HideCard(i);}
if( i == 50 ) continue;if(iVectorLength(CardLocation[50]-CardLocation)<10){HideCard(i);}
if( i == 51 ) continue;if(iVectorLength(CardLocation[51]-CardLocation)<10){HideCard(i);}
if( i == 52 ) continue;if(iVectorLength(CardLocation[52]-CardLocation)<10){HideCard(i);}
}
}