global onSwitch
property pFirstSprite, pLastSprite, hDist, vDist, pSpeed
on exitFrame
if onSwitch = true then
sprite(pFirstSprite).loc = the mouseLoc + point(hDist,vDist)
else
sprite(pFirstSprite).loc = point(10,10)
end if
repeat with i = (pFirstSprite + 1) to pLastsprite
targetLoc = sprite(i-1).loc + point(hDist,vDist)
deltaLoc = targetLoc - sprite(i).loc
sprite(i).loc = sprite(i).loc + (deltaLoc/pSpeed)
end repeat
end
on getPropertyDescriptionList me
pdlist = [:]
addprop pdlist, #pFirstSprite, [#comment:"First sprite:", #format:#integer,
#default:1]
addprop pdlist, #pLastSprite, [#comment:"Last sprite:", #format:#integer,
#default:10]
addprop pdlist, #hDist, [#comment:"Horisontal distance between each sprite:",
#format:#integer, #default:0]
addprop pdlist, #vDist, [#comment:"Vertical distance between each sprite:",
#format:#integer, #default:0]
addprop pdlist, #pSpeed, [#comment:"Speed:", #format:#float, #default:1.50,
#range:[#min:1.00, #max:1.95]]
return pdlist
end getPropertyDescriptionList
Contact
MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA