Destroy sprites

Discussion and feedback on Construct 2

Post » Wed Nov 06, 2013 12:28 am

I have 10 (ten) sprite enemies and I have the event below:

spriteShot On Colision with spriteEnemy -> spriteEnemy Destroy


The problem is that I want to destroy all the enemies in my game when a I have the colision above (NOT only the enemy hit by shot).

How can I do that ?

   Jos Roberto.

@cvp
B
4
Posts: 26
Reputation: 277

Post » Wed Nov 06, 2013 12:45 am

You should pot this in HOW DO I section. What u need to do is to create family for them and then set condition when bullet hits the family. Look up tutorials on families.
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
89
S
30
G
22
Posts: 1,985
Reputation: 20,099

Post » Wed Nov 06, 2013 1:14 am

Hmmm... good point about families. If you're looking to "depick" you can use the trick I posted on the other topic.


http://www.scirra.com/forum/destroy-sprites_topic79122.html
B
15
S
5
G
2
Posts: 24
Reputation: 2,054


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 2 guests