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

Projectile is slightly off when out of deadzones #52

Open
2 of 6 tasks
crkellen opened this issue May 3, 2017 · 2 comments
Open
2 of 6 tasks

Projectile is slightly off when out of deadzones #52

crkellen opened this issue May 3, 2017 · 2 comments

Comments

@crkellen
Copy link
Owner

crkellen commented May 3, 2017

Please fill out this Issue template to the best of your ability!

Type of Issue

  • This Issue is a Bug
  • This Issue is a Feature Request
  • This Issue is a Design Issue/Request

Hint: Design Issues or Requests are changes to existing features, not new ones.

Description of the Issue:

Projectile doesn't reach the exact spot the mouse is aiming when outside of deadzones.

Steps to reproduce the Issue (For Bugs):

  • I am using Google Chrome
  • I am using Mozilla Firefox
  • I am using YOUR_BROWSER

When outside of deadzones, aim directly to your left, the projectile will be slightly off from it's mark.

Additional comments or information:

I have a feeling I know what this issue is, but adding this just in case it proves to be more difficult than I thought.

@crkellen
Copy link
Owner Author

This has something to do with using clientY.
It only seems to be an issue when out of the Top deadzone.

@crkellen
Copy link
Owner Author

If the game is first loaded while on a 1920x1080 monitor, everything works.
However, if the game is first loaded while on a 1600x900 monitor, the calculation is off, until you move it to the bigger monitor then back.

I think this may be solved by having proper scaling. If not, I'll look into the whole clientX/Y thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant