Destroy specifc sprite

Get help using Construct 2

Post » Tue Oct 22, 2013 2:50 am

Hello,

I have several sprites planes in my game. This sprites planes have a typePlane instance variable.
I created the event: "SpriteBullet On Colision with SpritePlane" -> SpritePlane Destroy.

The event above works fine, but now I want to destroy the plane only if the plane fired by the event has Its typePlane instance variable with the value "enemy".

Is there anyway?

Thanks,

    Jos Roberto.
B
4
Posts: 26
Reputation: 277

Post » Tue Oct 22, 2013 3:13 am

Just add a condition. SpriteBullet on Collision with SpritePlane AND SpritePlate.typePlane = "Whatever"

B
101
S
32
G
11
Posts: 1,552
Reputation: 21,667

Post » Tue Oct 22, 2013 11:56 pm

Thanks ArcadEd.
That worked.
B
4
Posts: 26
Reputation: 277


Return to How do I....?

Who is online

Users browsing this forum: ChoosyZerk, jorgmaquoi, Yahoo [Bot] and 57 guests