[Solved] How can I fix my projectile to destroy it Turret?

Get help using Construct 2

Post » Sun Mar 06, 2016 7:06 pm

Hello everyone I have a programming problem that when a projectile from a tower passes the range of this tower is destroyed this projectile, it happens that those that are created are not being destroyed with my logic: to be further from the reach of tower, do not upgrade the most tower one obeys the range of the tower. What may be happening, can you help me solve this?
The .capx are here:
https://drive.google.com/file/d/0B-bh_etMDYP_TnpqU2ZUdmFZYWs/view?usp=sharing

Image

Image

Image

Image
B
32
S
9
G
3
Posts: 280
Reputation: 4,262

Post » Mon Mar 07, 2016 2:54 am

After persistence and several attempts, I managed to solve this problem, for it was necessary to plan for when you create each projectile takes this projectile that is nearest the tower that created it and picks up the tower that is nearest to this projectile so as to assign the value: the projectile level property receives the level value of the tower where it originated.

What you can see in the images below:
Image

And other image:
Image

The link to download this file can be found below.
https://drive.google.com/file/d/0B-bh_etMDYP_NGNkeDRUTE1aU0E/view?usp=sharing
B
32
S
9
G
3
Posts: 280
Reputation: 4,262


Return to How do I....?

Who is online

Users browsing this forum: AllanR, Artcadev and 13 guests