[Turret] How to add target with specific animation frame ?

Get help using Construct 2

Post » Fri Aug 11, 2017 10:45 am

Hi ,
I have a tower that i use turret behavior for its attacking system . I have a soldier that it has 2 frames. I code something like this :
On start of layout : Tower Add Turret Target "Soldier"
It's working fine but i have a little problem . I just want to add soldier frame 1 as target .
I also tried this way :
Image
But it sometimes has problem .
Any solution ?
B
18
S
8
G
2
Posts: 48
Reputation: 2,504

Post » Fri Aug 11, 2017 1:25 pm

Should work if you use 'nearest' as target mode.

If First in range, the turret will always track the same target until it leaves range, even if other targets come in range. If Nearest, the turret may switch to a different target before its current target leaves range, if another target comes closer.

https://www.dropbox.com/s/cwenrp36rxe2o ... .capx?dl=0
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 21 guests