Turret Behavior doesn't work if "Rotate" is to "no"

Bugs will be moved here once resolved.

Post » Sun Nov 06, 2016 7:59 am

Problem Description
I'm working on a tower defense game and I don't want to rotate my object, so I set the "Rotate" ability to "no".
But with this setting set to "no", the tower doesn't shoot anymore.

I also tried the "Turret Defense" template coming along with C2. Same issue there.

Attach a Capx
https://www.dropbox.com/s/cf6cvfpcwn0pm ... .capx?dl=1

Description of Capx
This is the "Turret Defense" example from Scirra. I just set the "Rotate" ability to "no" and the towers stopped working.
If you set it back to "Yes", it works fine.

Steps to Reproduce Bug
  • Download and run the capx
  • Set "Rotate" back to "yes"
  • Run it again.

Observed Result
Tower just shoots once or sometimes not.

Expected Result
Towers should shoot like before.

Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)
  • Internet Explorer: (YES)

Operating System and Service Pack
Windows 10 x64

Construct 2 Version ID
r239

Thank you!
Image Image iTunes: Match3 | Google Play: Match3
B
103
S
37
G
31
Posts: 1,164
Reputation: 28,928

Post » Sun Nov 06, 2016 9:35 pm

Turrets take some time to shoot when they have a target in their range and view.
If, during that time, the target moves out of the turret's view, the turret doesn't shoot.
Rotating gives the turret more time to shoot.

Try to put a turret on a section where the target moves horizontally for some time.
(E.g. left of the second turning point of the path)

You will see that the turret shoots there.
The issue is probably the time it takes to calculate stuff for the turrets.

This isn't a bug. You will probably have to switch rotate to "on", make the targets bigger or move slower or simulate the turret behaviour with "line of sight".
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Sun Nov 06, 2016 10:17 pm

Try with "preditive aim" set to "no"
Image Image
B
25
S
14
G
139
Posts: 877
Reputation: 72,512

Post » Tue Nov 08, 2016 10:57 am

Thank you, guys.
I gonna try your suggestions :) But basically it should work the same without rotating the object, shouldn't it?
Image Image iTunes: Match3 | Google Play: Match3
B
103
S
37
G
31
Posts: 1,164
Reputation: 28,928

Post » Mon Nov 14, 2016 5:31 pm

Thanks, should be fixed in the next build.
Scirra Founder
B
400
S
237
G
89
Posts: 24,550
Reputation: 195,527

Post » Mon Nov 14, 2016 5:44 pm

Ashley wrote:Thanks, should be fixed in the next build.


Awesome! Thank you, Ashley.
Image Image iTunes: Match3 | Google Play: Match3
B
103
S
37
G
31
Posts: 1,164
Reputation: 28,928

Post » Fri Apr 14, 2017 1:02 am

Still doesn't work! please fix it.
B
3
Posts: 1
Reputation: 177


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest