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

Animation stops when moving diagonally #3

Open
continentaldivide opened this issue Mar 25, 2023 · 0 comments
Open

Animation stops when moving diagonally #3

continentaldivide opened this issue Mar 25, 2023 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@continentaldivide
Copy link
Owner

Implemented diagonal movement before getting sprites working. Didn't realize I was creating a problem for myself since the sprites don't have diagonal animations.

Seems like there there two possible fixes for this:

  1. Limit player movement to cardinals. I'm leaning against this one -- diagonal movement feels a little bit better and I think the game would feel a little janky without it.
  2. Allow either animation to play when moving in two directions simultaneously. HandleMovement() is going to need to be re-engineered a bit for this to work as I wrote it from a place of assuming the character moving one direction meant no other directional input was happening. This is probably the better solution albeit a bit more work.
@continentaldivide continentaldivide added bug Something isn't working good first issue Good for newcomers labels Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant