home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Corrida / GrandPrixChallengeII.swf / scripts / DefineSprite_94 / frame_5 / DoAction.as
Encoding:
Text File  |  2001-07-07  |  502 b   |  20 lines

  1. if(Number(carsize) < 60)
  2. {
  3.    carsize = Number(carsize) + 5;
  4.    carY = Number(carY) + 3.75;
  5. }
  6. else if(Number(carsize) < 150)
  7. {
  8.    carsize = Number(carsize) + Number(4 + Number(4 * eval("/:carSpeed")));
  9.    carY = Number(carY) + Number(7 + Number(7 * eval("/:carSpeed")));
  10. }
  11. else
  12. {
  13.    setProperty("/car1", _visible, false);
  14.    gotoAndStop(1);
  15. }
  16. setProperty("other_car", _xscale, carsize);
  17. setProperty("other_car", _yscale, carsize);
  18. setProperty("other_car", _Y, carY);
  19. gotoAndPlay(4);
  20.