Taking a line for a walk.

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10096
Joined: Fri Feb 19, 2010 10:17 am

Taking a line for a walk.

Post by richmond62 » Sun Feb 12, 2023 4:28 pm

walkingLine.jpg
Attachments
Drag Track.livecode.zip
Stack.
(42.49 KiB) Downloaded 95 times

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10096
Joined: Fri Feb 19, 2010 10:17 am

Re: Taking a line for a walk.

Post by richmond62 » Sun Feb 12, 2023 4:58 pm

Code: Select all

on mouseDown
   grab me
   put the loc of me after fld "fPOZ"
   put cr after fld "fPOZ"
end mouseDown

on mouseStillDown
   put the loc of me after fld "fPOZ"
   put cr after fld "fPOZ"
   set the points of grc "LLL" to fld "fPOZ"
end mouseStillDown

Post Reply