How do I Picking Instance

Get help using Construct 2

Post » Sun Oct 19, 2014 6:50 pm

Well I am having a picking issue again.
I have a exploding worm spawning when the player is with in the line of sight of this bird.
Which works. I then have it when the bullet hits the exploding worm , play animation when exploding worm hp is less than or equal to 0. For some reason when I hit the first worm it affects all of them...

I tried the picking of nearest option, for when the bullet hits the worm it picks the nearest one to affect but that
does not seem to work..any help would be appreciated.
You do not have the required permissions to view the files attached to this post.
B
9
S
2
Posts: 272
Reputation: 1,632

Post » Sun Oct 19, 2014 6:51 pm

this is the boss bird where the worms fly out of
You do not have the required permissions to view the files attached to this post.
B
9
S
2
Posts: 272
Reputation: 1,632

Post » Sun Oct 19, 2014 7:57 pm

You are using a single global variable for the worms. You should be using an instance variable for each worm.
ImageImageImage
B
71
S
22
G
240
Posts: 3,734
Reputation: 133,994

Post » Mon Oct 20, 2014 12:11 am

Im going to try that right now. After reading that I remembered that was my same solution, I dont know why I cant remember to use the instance variable with in the sprite. Thanks for the help.
You do not have the required permissions to view the files attached to this post.
B
9
S
2
Posts: 272
Reputation: 1,632

Post » Mon Oct 20, 2014 12:22 am

thanks Hornet, I think you saved me last time too. dang memory of mine.
B
9
S
2
Posts: 272
Reputation: 1,632


Return to How do I....?

Who is online

Users browsing this forum: dop2000, ST314, ultrafop and 29 guests