home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best of Blender
/
bestofblender.iso
/
pc
/
blender
/
files
/
beastvr
/
beastvrm.dir
/
00155_Script_155
< prev
next >
Wrap
Text File
|
1996-04-25
|
2KB
|
71 lines
on SHAREBUTTON n
global i
set j = i mod 4
set k = i mod 2
if rollover(n) then
puppetSprite n, TRUE
set x = the castNum of sprite n
--BACK ARROW
if (x <= 753) and (750 <= x) then
set the castNum of sprite n to the number of cast (750 + j)
--INFO BUTTON
else if (x <= 757) and (754 <= x) then
set the castNum of sprite n to the number of cast (754 + j)
--FORWARD ARROW
else if (x <= 761) and (758 <= x) then
set the castNum of sprite n to the number of cast (758 + j)
--PRINT
else if (x <= 765) and (762 <= x) then
set the castNum of sprite n to the number of cast (762 + j)
--SOUND CONTROLS
else if (x <= 773) and (767 <= x) then
set the castNum of sprite n to the number of cast (x + 50)
else if (x <= 823) and (817 <= x) then
set the castNum of sprite n to the number of cast (x - 50)
--EXIT BUTTON
else if (x <= 775) and (774 <= x) then
set the castNum of sprite n to the number of cast (774 + k)
--PANIC
else if (x <= 777) and (776 <= x) then
set the castNum of sprite n to the number of cast (776 + k)
--MAP BUTTON
else if (x <= 779) and (778 <= x) then
set the castNum of sprite n to the number of cast (778 + k)
--VIDEO ON
else if (x <= 781) and (780 <= x) then
set the castNum of sprite n to the number of cast (780 + k)
--VIDEO OFF
else if (x <= 783) and (782 <= x) then
set the castNum of sprite n to the number of cast (782 + k)
--HYPERLINKS
else if (x <= 808) and (807 <= x) then
set the castNum of sprite n to the number of cast (807 + k)
--HELP
else if (x <= 811) and (810 <= x) then
set the castNum of sprite n to the number of cast (810 + k)
--TARGET
else if (x <= 816) and (813 <= x) then
set the castNum of sprite n to the number of cast (813 + j)
end if
else
--TURN OFF CONTROLS
puppetSprite n, FALSE
end if
end SHAREBUTTON