How do I destroy an instance when using a function

Get help using Construct 2

Post » Mon Jun 09, 2014 7:37 am

I am using a simple collide event how ever if I call a function on collide that should destroy just that instance it destroys all instances of that object..

Probaly simple but brain is melting :S
B
5
Posts: 7
Reputation: 239

Post » Mon Jun 09, 2014 11:41 am

Can we see capx?
Every Game is a Good Game it's just few people like and few does not! Keep coding people some day you will be a "NOTCH".
B
21
S
6
G
3
Posts: 85
Reputation: 4,607

Post » Mon Jun 09, 2014 11:54 am

Its too simple actually , just create a sub event and and add a pick event from system . then you can select a particular instance then destroy it.
B
24
S
3
G
1
Posts: 67
Reputation: 2,946

Post » Mon Jun 09, 2014 12:21 pm

Pass the UID of the object to the function, then Pick it by UID, and Destroy.
ImageImageImage
B
71
S
21
G
231
Posts: 3,688
Reputation: 129,352

Post » Mon Jun 09, 2014 1:44 pm

I did it, yeah it was so dead simple I just had a brain fart :) sorry all
B
5
Posts: 7
Reputation: 239


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], WYCGAMES and 17 guests