home *** CD-ROM | disk | FTP | other *** search
- i = "1";
- while(noOfF >= i)
- {
- fast_y = getProperty("fast" add i, _Y);
- fast_y += "6";
- setProperty("fast" add i, _Y, fast_y);
- if("390" < fast_y)
- {
- bat_x = getProperty("/bat", _X);
- bat_left = bat_x - batWidth / "2";
- bat_right = bat_x + batWidth / "2";
- fast_x = getProperty("fast" add i, _X);
- fast_left = fast_x - "10";
- fast_right = fast_x + "10";
- if(fast_left >= bat_left and bat_right >= fast_right)
- {
- tellTarget("/soundFX")
- {
- gotoAndStop("fast");
- play();
- }
- trace("You\'ve just got FAST");
- magnitude += "2";
- speed_ind += "2";
- timer = getTimer();
- power_up = "fast";
- call("reset_capsules");
- removeMovieClip("fast" add i);
- onscreen_F = "0";
- }
- else
- {
- removeMovieClip("fast" add i);
- onscreen_F = "0";
- }
- }
- i += "1";
- }
-