Drag Overlapping Sprites

Get help using Construct 2

Post » Fri Jan 25, 2013 3:52 pm

I have two sprites that are touch draggable. If one is dragged and dropped over the other, then the next time it is dragged, both sprites move.

How can I solve this behaviour?
B
19
S
3
G
2
Posts: 212
Reputation: 4,011

Post » Fri Jan 25, 2013 3:55 pm

Hmm, how about if you use the "Pick top/bottom" condition?
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Fri Jan 25, 2013 4:10 pm

That only seems to work if both both are instances of the same sprite. I have two different sprites.
B
19
S
3
G
2
Posts: 212
Reputation: 4,011

Post » Fri Jan 25, 2013 4:37 pm

if you have families this may be able to solve it that way, since you would be able to pick the top/bottom of the family, yes?

or without families perhaps you could create a condition with sprite1 is overlapping sprite2 and then find a way to get the behaviour you want with that filter. would something like pick top/bottom sprite1 OR pick top/bottom sprite2 work?
B
14
S
6
G
2
Posts: 136
Reputation: 3,210

Post » Sat Jan 26, 2013 8:28 pm

I used the condition that the smaller sprite wasn't overlapping the bigger one. Thanks @wretchedshark
B
19
S
3
G
2
Posts: 212
Reputation: 4,011


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, BipolarMike, totoe and 19 guests