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

Example script needs note about deadzone #88

Open
scottpetrovic opened this issue Nov 29, 2024 · 0 comments
Open

Example script needs note about deadzone #88

scottpetrovic opened this issue Nov 29, 2024 · 0 comments
Labels
Refactoring Small refactor without major changes

Comments

@scottpetrovic
Copy link

I was importing your plug-in and notice there's a minor issue in your sample player.gd. If you change the dead zone in the virtual joystick node to 0 so it has no effect, there will still be a dead zone. The reason is the last parameter in the Input.get_vector has an automatically calculated Dead zone based off the area. By default it's set to negative one. This overrides your dead zone component script. You probably can just add a zero in the last parameter like this.

17329177185567551833429311856916

@MarcoFazioRandom MarcoFazioRandom added the Refactoring Small refactor without major changes label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactoring Small refactor without major changes
Projects
None yet
Development

No branches or pull requests

2 participants