Slip, sliding away

Roger Guay irog at mac.com
Mon Jul 25 09:22:20 EDT 2016


try putting the following script into each moving image:

local tx, ty, dx

on mousedown
put item 1 of the loc of me into tx

put item 2 of the loc of me into ty

put tx- the mouseH into dx

end mousedown


on mouseMove x,y

if the mouse is down then set the loc of me to x+dx, ty

end mouseMove


Cheers!



> On Jul 25, 2016, at 5:54 AM, Richmond <richmondmathewson at gmail.com> wrote:
> 
> See daft effort here:
> 
> http://forums.livecode.com/viewtopic.php?f=7&t=27672
> 
> Richmond.
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list