Multiple sprite instances and setting position to object

Get help using Construct 2

Post » Sat Feb 04, 2017 11:54 am

So I have two instances of an object called 'Block' and when they overlap an instance of another sprite (let's call it 'Area') I want the block to centre itself to the centre of the sprite 'Area'. (On overlap > set position to object 'Area' event)

However when two instances of 'Block' are overlapping two separate instances of 'Area' at the same time they both set their position to the same instance of 'Area' rather than to the ones they are respectively overlapping.

Any help would be much appreciated
B
3
S
1
Posts: 2
Reputation: 331

Post » Sat Feb 04, 2017 12:51 pm

You need to 'pick' an instance of area. You could try 'pick nearest' which means the Block will overlap the nearest Area. Or you can evaluate with matching variables if you want to have certain Block overlap certain Area.
B
46
S
16
G
77
Posts: 2,155
Reputation: 45,823


Return to How do I....?

Who is online

Users browsing this forum: asdtricky, brunopalermo and 19 guests