home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DIGIZINE 1
/
DIGIZINE.BIN
/
main
/
sony
/
mainmov.dir
/
00001_Script_1
next >
Wrap
Text File
|
1995-08-18
|
3KB
|
108 lines
--STARTMOVIE script
on STARTMOVIE
global gQTSoundChannel
cursor 4
set gQTSoundChannel = 44
-- set the movierate of sprite(gQTSoundChannel) = 0
-- INTBUGFIX
-- INITCURSORS
DOMAINCURSOR
INITMOVIE
CHECKMACHINE
cursor 4
end
--sets the rollover cursor for main menu movie
on DOMAINCURSOR
global gRollCursor,gRollCursorMatte
--PointerCursor cursor
set Z = the number of cast "PointerCursor"
set ZZ = the number of cast "PointerCursor" + 1
repeat with x = 21 to 28
set the cursor of sprite(x) to [Z,ZZ]
end repeat
repeat with x = 10 to 13
set the cursor of sprite(x) to [Z,ZZ]
end repeat
--open hand cursor
set Z = the number of cast "OpenHandCursor"
set ZZ = the number of cast "OpenHandCursor" + 1
set the cursor of sprite(20) to [Z,ZZ]
end
--checks computer and sets path for sound files
on CHECKMACHINE
global gSndPath
if the machineType = 256 then
set gSndPath to the pathname & "sounds\" --PC
else
set gSndPath to the pathname & "sounds:" --Macintosh
end if
end
--set custom cursor back to normal
on RESETCURSOR
-- nothing
repeat with X = 20 to 27
ARROWCURSOR
end repeat
end
On FADEQTSOUND whichSprite, howLong
put the volume of sprite whichSprite into startVol
put startVol/howLong into volTick
put startVol into currVol
repeat with i = howLong down to 0
put the ticks into startTick
put currVol - volTick into currVol
set the volume of sprite whichSprite to currVol
repeat while the ticks <= startTick + 1
nothing
end repeat
end repeat
set the movieTime of sprite whichSprite to 0
set the volume of sprite whichSprite to startVol
end
--------------------------------------------------------------------
--------------------------------------------------------------------
--button presses up then down
on BUTTONOFFSET
puppetsprite(the clickon), true
set the locV of sprite(the clickon) to (the locV of sprite(the clickon) + 5)
set the locH of sprite(the clickon) to (the locH of sprite(the clickon) + 5)
updatestage
put the ticks into waitCount
repeat while the ticks < waitCount+30
nothing
end repeat
set the locV of sprite(the clickon) to (the locV of sprite(the clickon) - 5)
set the locH of sprite(the clickon) to (the locH of sprite(the clickon) - 5)
updatestage
puppetsprite(the clickon), false
end