home *** CD-ROM | disk | FTP | other *** search
/ Invenzioni E Inventori 1: Lavoro E Vita Quotidiana / invenzioni-inventori-1.iso / mac / Invenzio / Mare / SHAREDM.CST / 03013_Script_3013 < prev    next >
Text File  |  1997-09-15  |  2KB  |  50 lines

  1. --on video  PARAMETRI VIDEO
  2. ---QCAST = NUMERO DEL CAST DEL VIDEO
  3. ---QSPRITE=NUMERO DELLO SPRITE DEL VIDEO
  4. ---QSPRITEL=NUMERO DELLO SPRITE DELLA LINEA
  5. ---QSPRITEB=NUMERO DELLO SPRITE DELLA BARRA
  6.  
  7. on video qcast,qsprite,qspritel,qspriteb
  8.   
  9.   global vidstat,tuttos,unita
  10.   if the castnum of sprite qsprite <> qcast then exit
  11.   --------------BLOCCA IL CUBETTO QUANDO SI ENTRA NEL FRAME
  12.   global qvolte_video
  13.   if voidp(qvolte_video) then set qvolte_video to false
  14.   if not qvolte_video then
  15.     set the movierate of sprite 47 to 0
  16.     set qvolte_video to true
  17.     updatestage
  18.   end if
  19.   ----------------------PORTA IL CURSORINO ALLA FINE
  20.   if the movieTime of sprite qsprite = the duration of cast qcast  then
  21.     set the loch of sprite qspritel to (the right of sprite qspriteb - the width of sprite qspritel)
  22.   end if
  23.   --------------------
  24.   
  25.   if not tuttos then
  26.     if vidstat <> "manuale" then
  27.       if the movieTime of sprite qsprite = the duration of cast qcast  then set vidstat to "stop"
  28.       if vidstat = "play" or vidstat = "avveloce" or vidstat = "inveloce" then
  29.         set unita to the duration of cast qcast  / 320.0
  30.         if integer(the movieTime of sprite qsprite / unita) + the width of sprite qspritel < 320  then
  31.           set the loch of sprite qspritel to the loch of sprite qspriteb + integer(the movieTime of sprite qsprite / unita)
  32.           updatestage
  33.         end if
  34.       end if
  35.     end if
  36.     if vidstat = "inizio" then  set the loch of sprite qspritel to the loch of sprite qspriteb
  37.     if the movietime of sprite qsprite = the duration of cast qcast  then set the loch of sprite qspritel to (the right of sprite qspriteb - the width of sprite qspritel)
  38.   end if
  39.   ----------ACCENDE IL VIDEO IN INGRESSO DEL FRAME
  40.   global gia_fatto
  41.   if the movieTime of sprite qsprite < 10 and the movieRate of sprite qsprite = 0 and gia_fatto = false then
  42.     set the video of member qcast to 0
  43.     set the video of member qcast to 1
  44.     set gia_fatto to true
  45.   end if
  46.   --------------------------
  47.   updatestage
  48. end
  49.  
  50.