Apply an action to only one copy of an object

Get help using Construct 2

Post » Mon Apr 01, 2013 7:03 pm

I have 5 (aribtrary number) copies of Object A. I want to be able to apply an action to only 1 Object A of the objects, so it doesn't apply to the rest of the copies of Object A. Is there any way to do this?
B
3
Posts: 14
Reputation: 328

Post » Mon Apr 01, 2013 7:10 pm

You need to pick the specific instance to affect. You can do this a number of ways using events. One common way is to assign a different instance variable to each instance, and then pick the instance based on the variable.

This article should be helpful:
How Events Work
B
44
S
13
G
7
Posts: 338
Reputation: 10,379

Post » Mon Apr 01, 2013 8:04 pm

what zatyka said, create instance variable "ID".
B
18
S
5
G
4
Posts: 568
Reputation: 5,079

Post » Tue Apr 02, 2013 12:13 am

I understand. Thank you!
B
3
Posts: 14
Reputation: 328


Return to How do I....?

Who is online

Users browsing this forum: benajad, Braus, R0J0hound, shinkan and 17 guests