Instance variable affect other objects.

Get help using Construct 2

Post » Wed Aug 06, 2014 1:37 pm

For each enemy one fov (Field of view) , so when enemy dies,fov ---> destroy.But it's deleting all of them.
You do not have the required permissions to view the files attached to this post.
B
3
Posts: 7
Reputation: 281

Post » Wed Aug 06, 2014 1:41 pm

You need to use the pick command to tell it which one to destroy, or set an instance variable containing the UID of the object. You can then select by UID the one to destroy.
B
50
S
16
G
9
Posts: 1,098
Reputation: 11,237

Post » Wed Aug 06, 2014 1:51 pm

Yeah i tried with uid,I just don't really understand how to do that.Any example will be much appreciated
B
3
Posts: 7
Reputation: 281

Post » Wed Aug 06, 2014 2:07 pm

There's a problem,object are being created by system,how do i find out the uid? But i really have no idea
B
3
Posts: 7
Reputation: 281

Post » Wed Aug 06, 2014 2:23 pm

Ok i will make an example and post it here later.
B
50
S
16
G
9
Posts: 1,098
Reputation: 11,237

Post » Wed Aug 06, 2014 2:31 pm

You mean like this
You do not have the required permissions to view the files attached to this post.
B
257
S
42
G
15
Posts: 1,991
Reputation: 41,411

Post » Wed Aug 06, 2014 2:43 pm

Like this..
You do not have the required permissions to view the files attached to this post.
B
50
S
16
G
9
Posts: 1,098
Reputation: 11,237

Post » Wed Aug 06, 2014 4:08 pm

spongehammer wrote:Like this..

Thanks,it's actually a little bit easier than i thought :D
B
3
Posts: 7
Reputation: 281


Return to How do I....?

Who is online

Users browsing this forum: matriax, R0J0hound, SnipG and 7 guests