Page 1 of 1

Limiting area for drag and drop

PostPosted: Thu Feb 20, 2014 1:33 pm
by RBuster
I would like a suggestion to delimit an area where they could only drag objects within it. There is a frame around this area and I do not want her to be exceeded. I tried to use the "overlapping" not working. I know there is a simple solution to this but can not find. Thank you.

PS> Where┬┤s my avatar and my medals? Please, give me back, @Ashley! :shock: :o :(

Answer PS> Thank you!!! :) :D ;) ;)

Re: Limiting area for drag and drop

PostPosted: Thu Feb 20, 2014 5:19 pm
by RamPackWobble

Re: Limiting area for drag and drop

PostPosted: Thu Feb 20, 2014 5:56 pm
by RBuster
RamPackWobble wrote:https://www.dropbox.com/s/imo7cqzbicwrn25/drag%20and%20drop%20limit%20area.capx


Hi @RamPackWobble,

Thanks for help, but I did not quite understand the example. I tested and the square (red one) is leaving the area when I drag it, although not entirely. What I have to do to make the square does not exceed the limits of the area (spSpriteArea)?

Re: Limiting area for drag and drop

PostPosted: Thu Feb 20, 2014 6:37 pm
by RamPackWobble
slightly updated capx
https://www.dropbox.com/s/nmuhvji8lxhojyy/drag%20and%20drop%20limit%20area-1oiilayj1azp4.capx

All I have done is made the spSpriteArea invisible but added a visible area slightly larger...

Re: Limiting area for drag and drop

PostPosted: Thu Feb 20, 2014 6:59 pm
by RBuster
Now it's clear to me (sorry for my limitation). Thanks.