on mouseDown me
set pMouseLoc = point(the mouseH, the mouseV)
add the actorList, me
end
on mouseUp me
deleteOne the actorList, me
end
on mouseUpOutside me
deleteOne the actorList, me
end
on stepFrame me
set lNewLoc = point(the mouseH, the mouseV)
set lOffset = lNewLoc - pMouseLoc
set pMouseLoc = lNewLoc
sendAllSprites(#moveMyself_SGM, pGroupName, lOffset)
end
on moveMyself_SGM objRef, lPassedGroup, lOffset
if lPassedGroup = pGroupName then
set the loc of sprite spriteNum = (the loc of sprite spriteNum) + lOffset
end if
end
on getPropertyDescriptionList
set description = [:]
addProp description,#pGroupName,[#default:"", #format:#string,#comment:"Group Name:"]
return description
end