home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Acao / Doubleshotz / Doubleshotz.dcr / Internal_11_PLAY.ls < prev    next >
Encoding:
Text File  |  2007-09-27  |  1.6 KB  |  41 lines

  1. property pFaderReady
  2. global gFrameCounter, mCamera, ovTxt, SndC_Music, SndC_Grnd, SndC_FX1, SndC_FX2, SndC_Engine, SndC_EnemyFX, SndC_VO, gP1Finished, gP2Finished, gEngineSndList, isPlaying, ovFader, g3DWorld, gHasStarted, gUserFramePlay, gCarName
  3.  
  4. on exitFrame me
  5.   if pFaderReady = 1 then
  6.     go("MAIN")
  7.   else
  8.     if (gFrameCounter >= 55) and (gHasStarted = 1) then
  9.       mCamera.overlay[ovTxt].blend = max(0, mCamera.overlay[ovTxt].blend - 10)
  10.     end if
  11.     if g3DWorld.model("Collider_1").userData.isFinished and g3DWorld.model("Collider_2").userData.isFinished then
  12.       if (gFrameCounter >= 180) and (SndC_Music.volume = 0) and (gEngineSndList[1].isBusy() = 0) and (gEngineSndList[2].isBusy() = 0) then
  13.         isPlaying = 0
  14.         mCamera.overlay[ovFader].blend = min(100, mCamera.overlay[ovFader].blend + 10)
  15.         if mCamera.overlay[ovFader].blend = 100 then
  16.           SndC_Music.stop()
  17.           SndC_Grnd.stop()
  18.           SndC_FX1.stop()
  19.           SndC_FX2.stop()
  20.           SndC_Engine.stop()
  21.           SndC_EnemyFX.stop()
  22.           SndC_VO.stop()
  23.           pFaderReady = 1
  24.           TotalCount = 0
  25.           repeat with i = 1 to gUserFramePlay.count
  26.             TotalCount = TotalCount + gUserFramePlay[i]
  27.           end repeat
  28.           if (gUserFramePlay.count >= 40) and (TotalCount >= (gUserFramePlay.count * 0.10000000000000001)) then
  29.             put "recording " & gUserFramePlay
  30.             put gUserFramePlay into member ("recorder_" & gCarName)
  31.           end if
  32.         end if
  33.       end if
  34.     else
  35.       pFaderReady = 0
  36.     end if
  37.     gFrameCounter = gFrameCounter + 1
  38.     go(the frame)
  39.   end if
  40. end
  41.