relate bullets from turrets with multiple instances...

Get help using Construct 2

Post » Wed Dec 24, 2014 7:43 pm

well... right now im developing a turret defence game
to deal with the free version limits i use multiple instances of the same turret
i want the turrets to gain experience as they deal the killing blow to the enemies
i did something like :
record the uid of the shooting turret on bullet's variable called TurretID
if the enemie hp reach 0 or less, as a sub event, i try to pick the turret who shot te killing bullet and (thoo se if its working or not) rotate it 45 degrees
buth nothing came out... any other idea? alternative? solution..
thx a lot
and merry xmas

ps. sorry for my bad english
B
7
S
1
Posts: 28
Reputation: 481

Post » Wed Dec 24, 2014 7:49 pm

Could you upload the project so we can have a look at that?

Also, to see if something works or not, you can use the Debug launcher instead of the regular one while testing your layouts.
B
3
Posts: 9
Reputation: 193

Post » Wed Dec 24, 2014 11:27 pm

there it is, basically what i said before, but somehow the turret is not rotating nor gaining XP
You do not have the required permissions to view the files attached to this post.
B
7
S
1
Posts: 28
Reputation: 481

Post » Wed Dec 24, 2014 11:37 pm

you store the UID in the Blackbullet but you destroy it. So when its destroyed there i no variable too.
You must store it some where else or first rotate the Blackshooter before you destroy the bullet if this works somehow for you
Read this:
yeah, i really like to say that you should "Read this:"
B
13
S
6
Posts: 138
Reputation: 1,615

Post » Thu Dec 25, 2014 12:19 am

@EyeForcz
you're right, how blind i was... i cant rotate (or do whatever) if im not sure the bullet is killing the enemie... but now is just about working in the order now that i know what i got wrong, thx a lot
B
7
S
1
Posts: 28
Reputation: 481


Return to How do I....?

Who is online

Users browsing this forum: warmty and 10 guests