//-------------------------------------
if (FrameCounter == 160)            // Time for the first car (white one) to
{                                   //  appear ?
   short meux[9] = {-25,15,-25,-58,77,-80,14,-23,24};
   short meuy[9] = {0,-12,1,23,23,-5,-15,-15,-12};
   char  meudepth[9] = {10,10,13,13,13,13,11,12,12};
   char  meuaction[9] = {1,8,2,6,6,0,4,0,0};
   short meuscale[9] = {6640,6400,6780,6400,6400,6000,4096,5000,6500};
   char  meuchar[9] = {1,2,3,4,5,53,10,66,69};

   Chars[0]->Set_Location (550,180);
   Chars[0]->SetDepth (12);
   Chars[0]->StartAction (0, 0);
   Chars[0]->Scale (6400);
   for (i = 0; i < 9; i++)
   {
      Chars[meuchar[i]]->Set_Location (550 + meux[i],180 + meuy[i]);
      AddAttach (Chars[meuchar[i]], Chars[0], meux[i], meuy[i]);
      Chars[meuchar[i]]->SetDepth (meudepth[i]);
      Chars[meuchar[i]]->StartAction (meuaction[i], 0);
      Chars[meuchar[i]]->Scale (meuscale[i]);
   }

   Chars[59]->Set_Location (550 - 80,180 - 5);   // Fire sprite
   AddAttach (Chars[59], Chars[0], -80, -5);
   Chars[59]->SetDepth (13);
}
//-------------------------------------
else if (CarChaseTimerNear == 1)        // Time for the transam to appear ?
{
   short meux[6] = {-10,-68,68,-82,-82,-12};
   short meuy[6] = {-16,19,19,-10,-10,-18};
   char  meudepth[6] = {1,4,4,4,4,2};
   char  meuaction[6] = {1,2,2,1,1,4};
   short meuscale[6] = {6500,5300,5300,5000,5000,4096};
   char  meuchar[6] = {37,38,39,54,55,41};

   Chars[36]->Set_Location (-150,120);
   Chars[36]->SetDepth (3);
   Chars[36]->StartAction (0, 0);
   Chars[36]->Scale (5300);
   for (i = 0; i < 6; i++)
   {
      Chars[meuchar[i]]->Set_Location (-150 + meux[i],120 + meuy[i]);
      AddAttach (Chars[meuchar[i]], Chars[36], meux[i], meuy[i]);
      Chars[meuchar[i]]->SetDepth (meudepth[i]);
      Chars[meuchar[i]]->StartAction (meuaction[i], 0);
      Chars[meuchar[i]]->Scale (meuscale[i]);
   }
   CarChaseTimerNear = 2;

   Chars[60]->Set_Location (-150 - 82,120 - 5);   // Fire sprite
   AddAttach (Chars[60], Chars[36], -82, -5);
   Chars[60]->SetDepth (4);
   Chars[64]->Set_Location (-150 - 82,120 - 15);  // Explosion1 sprite
   AddAttach (Chars[64], Chars[36], -82, -15);
   Chars[64]->SetDepth (4);
   Chars[65]->Set_Location (-150 - 82,120 - 15);  // Explosion2 sprite
   AddAttach (Chars[65], Chars[36], -82, -15);
   Chars[65]->SetDepth (4);
}
//-------------------------------------
else if (CarChaseTimerNear == 3)   // Time for the caddy to appear ?
{
   short meux[7] = {-8,-63,74,-86,13,-31,28};
   short meuy[7] = {-13,25,25,-10,-12,-12,-7};
   char  meudepth[7] = {10,13,13,13,11,12,12};
   char  meuaction[7] = {1,2,2,2,4,0,0};
   short meuscale[7] = {7200,6700,6700,6400,4096,7000,9200};
   char  meuchar[7] = {12,13,14,56,19,67,70};

   Chars[11]->Set_Location (550,180);
   Chars[11]->SetDepth (12);
   Chars[11]->StartAction (0, 0);
   Chars[11]->Scale (6400);
   for (i = 0; i < 7; i++)
   {
      Chars[meuchar[i]]->Set_Location (550 + meux[i],180 + meuy[i]);
      AddAttach (Chars[meuchar[i]], Chars[11], meux[i], meuy[i]);
      Chars[meuchar[i]]->SetDepth (meudepth[i]);
      Chars[meuchar[i]]->StartAction (meuaction[i], 0);
      Chars[meuchar[i]]->Scale (meuscale[i]);
   }
   CarChaseTimerNear = 4;

   Chars[61]->Set_Location (550 - 86,180 - 8);  // Fire sprite
   AddAttach (Chars[61], Chars[11], -86, -8);
   Chars[61]->SetDepth (13);
}
//-------------------------------------
else if (CarChaseTimerFar == 5)         // Time for the miata to appear ?
{
   short meux[4] = {-27,-60,61,-5};
   short meuy[4] = {-11,21,21,-20};
   char  meudepth[4] = {3,6,6,4};
   char  meuaction[4] = {1,2,2,1};

   Chars[20]->Set_Location (-150,120);
   Chars[20]->SetDepth (5);
   Chars[20]->StartAction (0, 0);
   for (i = 0; i < 4; i++)
   {
      Chars[i + 21]->Set_Location (550 + meux[i],120 + meuy[i]);
      AddAttach (Chars[i + 21], Chars[20], meux[i], meuy[i]);
      Chars[i + 21]->SetDepth (meudepth[i]);
      Chars[i + 21]->StartAction (meuaction[i], 0);
   }
   CarChaseTimerFar = 6;
   Chars[24]->Scale (2600);
}
//-------------------------------------
else if ((CarChaseTimerNear >= 5) && (CarChaseTimerFar == 3))
{                                      // Time for the MotorCycle to appear ?
   Chars[52]->Set_Location (-150,135);
   Chars[52]->SetDepth (2);
   Chars[52]->StartAction (1, 0);
   CarChaseTimerFar = 4;
}
//-------------------------------------
else if (CarChaseTimerNear == 8)
{                                      // Time for the boss truck to appear ?
   short meux[6] = {165,157,65,-13,190,-25};
   short meuy[6] = {  0,-18, 9, 55, 55,  0};
   char  meudepth[6] = {4,2,7,6,6,6};
   char  meuaction[6] = {1,2,5,3,3,4};
   char  meuchar[6] = {43,44,45,46,47,58};

   Chars[42]->Set_Location (-250,80);
   Chars[42]->SetDepth (3);
   Chars[42]->StartAction (0, 0);
   for (i = 0; i < 6; i++)
   {
      Chars[meuchar[i]]->Set_Location (-250 + meux[i],80 + meuy[i]);
      AddAttach (Chars[meuchar[i]], Chars[42], meux[i], meuy[i]);
      Chars[meuchar[i]]->SetDepth (meudepth[i]);
      Chars[meuchar[i]]->StartAction (meuaction[i], 0);
   }

   Chars[63]->Set_Location (-250 - 25,80);          // Fire sprite
   AddAttach (Chars[63], Chars[42], -25,0);
   Chars[63]->SetDepth (4);

   CarChaseTimerNear++;
}
//-------------------------------------
else if ((CarChaseTimerFar == 7) && (CarChaseTimerNear == 6))
{                                   // Time for the sedan to appear ?
   short meux[7] = {-24,15,-26,-58,77,-83,13};
   short meuy[7] = {0,-12,2,23,23,-8,-15};
   char  meudepth[7] = {10,10,13,13,13,13,11};
   char  meuaction[7] = {1,8,2,6,6,3,4};
   short meuscale[7] = {6700,6700,6700,6400,6400,6000,4096};
   char  meuchar[7] = {26,27,28,29,30,57,35};

   Chars[25]->Set_Location (550,180);
   Chars[25]->SetDepth (12);
   Chars[25]->StartAction (0, 0);
   Chars[25]->Scale (6400);
   for (i = 0; i < 7; i++)
   {
      Chars[meuchar[i]]->Set_Location (550 + meux[i],180 + meuy[i]);
      AddAttach (Chars[meuchar[i]], Chars[25], meux[i], meuy[i]);
      Chars[meuchar[i]]->SetDepth (meudepth[i]);
      Chars[meuchar[i]]->StartAction (meuaction[i], 0);
      Chars[meuchar[i]]->Scale (meuscale[i]);
   }
   CarChaseTimerNear = 7;

   Chars[62]->Set_Location (550 - 86,180 - 4);  // Fire sprite
   AddAttach (Chars[62], Chars[25], -86, -4);
   Chars[62]->SetDepth (13);
}

//-------------------------------------
int fruz;
if (CarKilled[0] < 4)
   fruz = 4;
else
   fruz = 5;
for (i = 0; i < fruz; i++)              // White car's guy appearances
{
   u_short timeappear[5] = {120,240,360,480,600};
   signed char xappear[5] = {-20,-10, 18,-25, 15};
   signed char yappear[5] = {-12,-30,-14,  1,-12};
   char actionappear[5] = {5,0,0,5,5};
   char charappear[5] = {8,9,6,7,10};

   if (CarTimer[0] == timeappear[i])
   {
      point pop = Chars[0]->Coordinate ();
      int zzzz = charappear[i];
      Chars[zzzz]->Set_Location (pop.x + xappear[i], pop.y - yappear[i]);
      AddAttach (Chars[zzzz], Chars[0], xappear[i], yappear[i]);
      Chars[zzzz]->SetDepth (11);
      Chars[zzzz]->StartAction (actionappear[i], 0);
   }
}
Chars[7]->Scale (3175);

//-------------------------------------
if (CarTimer[1] == 50)                  // TransAM's guy appearances
{
   point pop = Chars[36]->Coordinate ();
   Chars[40]->Set_Location (pop.x, pop.y - 15);
   AddAttach (Chars[40], Chars[36], 0, -25);
   Chars[40]->SetDepth (2);
   Chars[40]->StartAction (0, 0);
   Chars[40]->Scale (3800);
}
if ((CarKilled[3] == 1) && (CarTimer[1] == 250))
{
   point pop = Chars[36]->Coordinate ();
   Chars[41]->Set_Location (pop.x, pop.y - 5);
   AddAttach (Chars[41], Chars[36], -5, -15);
   Chars[41]->SetDepth (2);
   Chars[41]->StartAction (5, 0);
   Chars[41]->Scale (3500);
}

//-------------------------------------
if (CarKilled[1] < 4)
   fruz = 4;
else
   fruz = 5;
for (i = 0; i < fruz; i++)              // Caddy's guy appearances
{
   u_short timeappear[5] =  {120,240,360,480,600};
   signed char xappear[5] = {-20,-20, 20,-20,20};
   signed char yappear[5] = {-20,-10,-10,-15,-10};
   char actionappear[5] = {0,5,5,0,5};
   char charappear[5] = {17,18,15,16,19};

   if (CarTimer[2] == timeappear[i])
   {
      point pop = Chars[11]->Coordinate ();
      int zzzz = charappear[i];
      Chars[zzzz]->Set_Location (pop.x + xappear[i], pop.y - yappear[i]);
      AddAttach (Chars[zzzz], Chars[11], xappear[i], yappear[i]);
      Chars[zzzz]->SetDepth (11);
      Chars[zzzz]->StartAction (actionappear[i], 0);
   }
}

//-------------------------------------
if (CarKilled[2] < 4)
   fruz = 4;
else
   fruz = 5;
for (i = 0; i < fruz; i++)              // Sedan's guy appearances
{
   u_short timeappear[5] =  {120,240,360,480,600};
   signed char xappear[5] = {-20, 20,-20,-30,13};
   signed char yappear[5] = {-15,-15,-15,1,-15};
   char actionappear[5] = {5,0,5,5,5};
   char charappear[5] = {34,32,31,33,35};

   if (CarTimer[3] == timeappear[i])
   {
      point pop = Chars[25]->Coordinate ();
      int zzzz = charappear[i];
      Chars[zzzz]->Set_Location (pop.x + xappear[i], pop.y - yappear[i]);
      AddAttach (Chars[zzzz], Chars[25], xappear[i], yappear[i]);
      Chars[zzzz]->SetDepth (11);
      Chars[zzzz]->StartAction (actionappear[i], 0);
   }
}
Chars[33]->Scale (3175);

//-------------------------------------
if (CarTimer[4] == 50)                  // Biohazard truck's guy appearances
{
   point pop = Chars[42]->Coordinate ();
   Chars[48]->Set_Location (pop.x + 145, pop.y - 15);
   AddAttach (Chars[48], Chars[42], 145, -14);
   Chars[48]->SetDepth (3);
   Chars[48]->StartAction (0, 0);
   Chars[48]->Scale (3800);
}
else if (CarTimer[4] == 250)
{
   point pop = Chars[42]->Coordinate ();
   Chars[50]->Set_Location (pop.x + 145, pop.y - 15);
   AddAttach (Chars[50], Chars[42], 145, -14);
   Chars[50]->SetDepth (3);
   Chars[50]->StartAction (5, 0);
   Chars[50]->Scale (3800);
}

//-------------------------------------
if (CarKilled[4] == 2)                  // Time for the boss to appear ?
{
   CarKilled[4] = 3;

   point pop = Chars[71]->Coordinate ();
   Chars[71]->Set_Location (pop.x + 65, pop.y + 9);
   AddAttach (Chars[71], Chars[42], 65, 9);
   Chars[71]->SetDepth (6);
   Chars[71]->StartAction (0, 0);

   InitEnemyLife (Chars[71]);
}

if (CarKilled[4] == 3)                  // Time to open the truck's door ?
{
   i = 0;
   while (i < NbrAttaches)
   {
      if (Attach[i] == Chars[45])       
      {
         if (--AttachDX[i] == -10)
         {
            CarKilled[4] = 4;
            i = NbrAttaches;
         }
      }
      i++;
   }
}
