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

Fix choppy player movement #2

Open
alexsobiek opened this issue Apr 21, 2021 · 0 comments
Open

Fix choppy player movement #2

alexsobiek opened this issue Apr 21, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@alexsobiek
Copy link
Owner

alexsobiek commented Apr 21, 2021

Player movement is called on KeyInputEvent.Pressed event and moves according to the player's speed.

Possible Solution: Use the KeyInputEvent.Pressed and KeyInputEvent.Released to set a boolean for whether or not the player is moving and then move it on GameTickEvent instead

@alexsobiek alexsobiek added the enhancement New feature or request label Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant