Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bullets change direction #255

Open
Graphcalibur opened this issue Jun 30, 2020 · 1 comment
Open

Bullets change direction #255

Graphcalibur opened this issue Jun 30, 2020 · 1 comment
Labels
bug Something isn't working question Further information is requested

Comments

@Graphcalibur
Copy link
Collaborator

Graphcalibur commented Jun 30, 2020

The tracking bullets can sometimes change directions mid-flight, which looks pretty strange for cells like T-Cells and Goblet Cells. Is this intentional?

@Graphcalibur Graphcalibur added bug Something isn't working question Further information is requested labels Jun 30, 2020
@vincetiu8
Copy link
Owner

Yes, but I am open to changing it. This is because all tracking towers, from T-Cells to M-Cells, use the same algorithm to spawn tracking bullets. The bullets target the closest enemy, which sometimes (if they miss or the original was killed) cause them to fly backwards.

The best fix for this would be to decrease the rotation speed of the bullets. Currently, they obtain this from the parent tower's rotation speed, and as t-cell and goblet-cells have an infinite rotation speed, the bullets also have that. Perhaps separating the rotation speed would be the best option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants