How do I refer to the spawned object?

Get help using Construct 2

Post » Mon Dec 15, 2014 4:03 pm

My object spawn another instance of the same object and I want to change a variable in the spawned instance. How do I refer to the spawED instance and not the spawnER instance in the same event when they are the same object?
B
7
S
1
Posts: 12
Reputation: 506

Post » Mon Dec 15, 2014 4:19 pm

It's a bit problematic when an object spawn an instance of the same type. Try using the "Create object" system's action, it ought to solve any picking problem. However, if you need to spawn multiple object at once (many "spawner" that spawn in the same tick), you'll have to use a for each too.
B
69
S
28
G
24
Posts: 977
Reputation: 18,739

Post » Mon Dec 15, 2014 4:31 pm

tks!
B
7
S
1
Posts: 12
Reputation: 506


Return to How do I....?

Who is online

Users browsing this forum: dop2000, namaewayukidesu, Yahoo [Bot] and 9 guests