"Is overlapping only 1 instance of the object"

Get help using Construct 2

Post » Tue Feb 21, 2017 2:51 pm

Hello!

I have some troubles with different instances of one object.

When the player is overlapping 2 same objects and presses the button, the action will cause for both of them. What I wanted is that this action will either: 1. only happen to the first/last instance which you collide with or 2. cause if you overlapping one of the object. So if you are overlapping e.g. 2 instances of the object "enemy", it won't do the event.

How is it possible to differ between different Instances of the object? I already added a Number variable which will identify them but don't know how to implement that.
B
13
S
2
Posts: 80
Reputation: 821

Post » Tue Feb 21, 2017 2:56 pm

If it is not important for you wich one, use "Pick random instance", then the following actions will affect only one.
Lead developer at Octeto Studios
Visit our portfolio at: http://www.octetostudios.com/ :)
Facebook || Twitter || Youtube
B
37
S
7
G
5
Posts: 217
Reputation: 5,613

Post » Tue Feb 21, 2017 3:37 pm

@GamerGon

Thank's, you saved me ^^
B
13
S
2
Posts: 80
Reputation: 821

Post » Tue Feb 21, 2017 6:44 pm

You're welcome :)
Lead developer at Octeto Studios
Visit our portfolio at: http://www.octetostudios.com/ :)
Facebook || Twitter || Youtube
B
37
S
7
G
5
Posts: 217
Reputation: 5,613


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 7 guests