Limiting area for drag and drop

Get help using Construct 2

Post » Thu Feb 20, 2014 1:33 pm

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 ;) ;)
Last edited by RBuster on Thu Feb 20, 2014 5:48 pm, edited 2 times in total.
B
74
S
13
G
3
Posts: 995
Reputation: 7,531

Post » Thu Feb 20, 2014 5:19 pm

B
64
S
33
G
47
Posts: 1,194
Reputation: 30,812

Post » Thu Feb 20, 2014 5:56 pm

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)?
B
74
S
13
G
3
Posts: 995
Reputation: 7,531

Post » Thu Feb 20, 2014 6:37 pm

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...
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,812

Post » Thu Feb 20, 2014 6:59 pm

Now it's clear to me (sorry for my limitation). Thanks.
B
74
S
13
G
3
Posts: 995
Reputation: 7,531


Return to How do I....?

Who is online

Users browsing this forum: alex3770, jasontoups, OddConfection and 1 guest