Center a dropped object on a grid

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

rumplestiltskin
Posts: 222
Joined: Wed Jun 21, 2006 7:33 pm
Location: West of the Pecos
Contact:

Re: Center a dropped object on a grid

Post by rumplestiltskin » Tue Mar 13, 2018 7:52 pm

Jacque,

I altered your solution just a bit to return the ID of the graphic rather than a name. I now don't have to worry about naming the graphics as the ID is, of course, unique. It's also very fast.

Post Reply

Return to “Talking LiveCode”