Picking overlapping instance from same family

Get help using Construct 2

Post » Sat Nov 24, 2012 4:18 pm

Hiya,

I have a situation where I am drag and dropping an item belonging to family to an another object belonging to that same family. Now what I'd need is to set attribute of the object I am dragging to point at object I am dragging it to. As you might have guessed, I am having problem selecting between these two instances.

Any smooth way to achieve this?
B
24
S
8
G
7
Posts: 756
Reputation: 7,192

Post » Sun Nov 25, 2012 11:40 am

Anyone? I'll try to describe my situation more:

I have two boats. Dragging one on top of other should give it the order to attack that other ship. Like I said, picking the correct instance UID is problem in this case as both are from same family and same object type.
B
24
S
8
G
7
Posts: 756
Reputation: 7,192

Post » Sun Nov 25, 2012 4:59 pm

In your case, the easy way out is to store the instance id of the ship you are dragging as a variable and pick it during the event.
B
7
Posts: 38
Reputation: 683


Return to How do I....?

Who is online

Users browsing this forum: austinblackbelt, Matthew de, Skebab, spcsmrf and 6 guests