How do i something like that: when o drag object and relase to wrong field (red) object returns to possition from i started dragging?
Develop games in your browser. Powerful, performant & highly capable.
I would say, the easiest way to achieve this is by storing the x and y coordinates of the dragged object at the moment you start dragging. If the object is released on a bad position, just run an event to move it back to the stored coordinates.
I made an example of what Ubivis described a while back.
Maybe it can help you as well: DragDrop_CheckRange.capx