(Solved) I remove 2 objects that automatically remove

Get help using Construct 2

Post » Sun May 04, 2014 9:00 pm

So I have 3 objects, I shoot object 1 and it's destroyed , yet object 3 is still visible, I shoot object 2 and now object 3 is destroyed. In other words only after I destroyed object 1 and 2 does object 3 get destroyed. Is this an instance variable thing on object 3?

Thanks in advance for the advise.
Last edited by dthomasdigital on Sun May 04, 2014 9:32 pm, edited 1 time in total.
B
25
S
10
G
3
Posts: 154
Reputation: 2,843

Post » Sun May 04, 2014 9:10 pm

We'd have to see what you are doing.
ImageImageImage
B
71
S
22
G
241
Posts: 3,734
Reputation: 134,494

Post » Sun May 04, 2014 9:32 pm

I answered my own question it was a simple instance variable:

Object 3 instance variable=2
If you Shoot Object 1 then subtract 1 from Object 3 instance variable
If you Shoot Object 2 then subtract 1 from Object 3 instance variable
If Object 3 instance variable=0 then destroy Object 3

Thank you for the response.
B
25
S
10
G
3
Posts: 154
Reputation: 2,843


Return to How do I....?

Who is online

Users browsing this forum: Kin, ratboy3, takamoto, tinhofiel and 42 guests