home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Creative Review 39
/
Creative-Review-CD-ROM-39.iso
/
pc
/
pres
/
cr.dir
/
00022_Script_22
< prev
next >
Wrap
Text File
|
1998-07-10
|
885b
|
26 lines
on moveit
set divilist = [#40:20,#41:-20,#42:20,#43:-20,#44:12,#45:-12,#46:-15,#47:15,#48:17,#49:-19,#50:20,#51:-20]
repeat with a = 40 to 51
set divide = getProp(divilist, a)
set Hmove = ((the mouseh - ((the left of sprite 13 + the right of sprite 13)/2))/ divide)
set Vmove = ((the mouseV - ((the bottom of sprite 13 + the top of sprite 13)/2))/ divide)
set the loch of sprite a to the loch of sprite a + Hmove
set the locV of sprite a to the locV of sprite a + Vmove
if the loch of sprite a > 660 then
set the loch of sprite a to 257
else if the loch of sprite a < 257 then set the locH of sprite a to 660
if the top of sprite a > 310 then
set the locV of sprite a to -40
else if the locV of sprite a < -40 then set the locV of sprite a to 310
end repeat
end