home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Today - The Disc! 9
/
cdrt09.iso
/
mac
/
UTAHDEMO
/
SHARED.DIR
/
00742_Script_742
< prev
next >
Wrap
Text File
|
1995-01-13
|
3KB
|
111 lines
-- map stuff
on twoforone
doneMapNav
doneNav 0
go to label ("free")
on mapMouse
set x = the mouseH - the locH of sprite 16
set y = the mouseV - the locV of sprite 16
repeat with n = 0 to 4 then
set min = n * 74
if (y >= min) and (y <= (min + 37)) then
return (n+1)
end if
end repeat
return (0)
on flashMapMenu
set inc = the locV of sprite 16
repeat with n = 0 to 4
set the locV of sprite 17 to (n * 74) + inc
updateStage
end repeat
set the locV of sprite 17 to 1440
updateStage
on checkMapMenu
global mapChoice
set inc = the locV of sprite 16 - 74
set mapChoice = 0
if (rollover(16)) then
set mapChoice = mapMouse()
end if
if (mapChoice) then
set the locV of sprite 17 to (mapChoice * 74) + inc
set the castNum of sprite (15) to the number of cast "menu titles" + mapChoice
else
set the locV of sprite 17 to 1440
set the castNum of sprite (15) to a51
end if
on mapMenuChoice
global mapChoice
global prevMapChoice
doneNav 0
doneMapNav
set prevMapChoice = mapChoice
set mapButton = mapMouse()
menuSound
if (mapChoice = 1) and (mapButton = 1) then
set buttonPressed = FALSE
doTrans 3
go to "overview"
preload label("overview")+1, label("lift tickets") - 1
else if (mapChoice = 2) and (mapButton = 2) then
set buttonPressed = FALSE
doTrans 3
puppetSound 0
go to "food"
preload label("food")+1, label("lodging") - 1
else if (mapChoice = 3) and (mapButton = 3) then
set buttonPressed = FALSE
doTrans 3
puppetSound 0
go to "lodging"
preload label("lodging")+1, label("ski school") - 1
else if (mapChoice = 4) and (mapButton = 4) then
set buttonPressed = FALSE
doTrans 3
puppetSound 0
go to "lift tickets"
preload label("lift tickets")+1, label("trail map") - 1
else if (mapChoice = 5) and (mapButton = 5) then
set buttonPressed = FALSE
doTrans 3
puppetSound 0
go to "ski school"
preload label("ski school")+1, label("overview") - 1
end if
on unloadResortStuff
global prevMapChoice
global resortNum
if (resortNum = 0) then return
if (prevMapChoice = 1) then
unload label("overview")+1, label("lift tickets") - 1
else if (prevMapChoice = 2) then
unload label("food")+1, label("lodging") - 1
else if (prevMapChoice = 3) then
unload label("lodging")+1, label("ski school") - 1
else if (prevMapChoice = 4) then
unload label("lift tickets")+1, label("trail map") - 1
else if (prevMapChoice = 5) then
unload label("ski school")+1, label("overview") - 1
end if
if (prevMapChoice > 5) then
unloadMap (prevMapChoice - 5)
end if
set prevMapChoice = 0