How do I make sprite lock with correct place in a drag and drop

Hello

im working on a project its drag and drop and I need to complete it very soon. I got the sprites to be draggable and stuff, but I need help to make them lock with some points when you drag the sprites and get them on the correct point. And how to add points and deduct them if you can explain that. Im not sure if i have to provide a image since I just need some help with how to code it

thanks!! im new here

See Drag and Swap Puzzles in JSON - Google Docs
for how to drop when touch Up.

do you mean snap to the grid?

GIF 2026-3-25-周三 10-03-29

50 is the grid width.

Close not rlly but I was looking for how to make the sprite snap to its correct place which is a dot

How about

?

Then you need to calculate the distance between your sprite and its destination, if less than a number, move it to the destination.

?

The basics

snapToDot.aia (32.4 KB)