Draw a line that follows an object

dunbarxx dunbarx at aol.com
Wed Jun 26 11:50:32 EDT 2019


Not sure what you really want, but maybe try this. On a new card create a
button and a line graphic. Put this into the button script:

on mouseDown
end mouseDown

on trackButton
   if the optionKey is down then exit to top -- exit here
   set the loc of btn 1 to the mouseLoc
   set the points of grc 1 to "10,10" & return & item 1 of the loc of btn 1
& "," & item 2 of the loc of btn 1
   send "trackButton" to me in 1
end trackButton


Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

More information about the use-livecode mailing list