How do I destroy only one object , not all...

Get help using Construct 2

Post » Sat Sep 27, 2014 9:54 am

Hi guys..I have many copies of the same object.....and if my player jumps on it...all will be destroyed
I did this:

Global variable enemy :2

( first event ) player-on collision with enemy = player simulate jump
= system subtrack1 from player

( second event) system -if variable is 0 = enemy is destroyed

as soon i kill one...all enemies die...I know it's a super simple thing...but I don't see were my logical error is :(


I tried to put the second as sub event...than only the first enemy dies...the other not ...
help :)

thanks
B
37
S
16
G
2
Posts: 447
Reputation: 4,860

Post » Sat Sep 27, 2014 10:15 am

Just use instance variable.
Image
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Sat Sep 27, 2014 10:56 am

perfect help THANK a lot ! :)
B
37
S
16
G
2
Posts: 447
Reputation: 4,860


Return to How do I....?

Who is online

Users browsing this forum: Linetaru and 6 guests