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

Sometimes, Wario can't jump higher than ~1-3 Pixels #12

Closed
Nearoo opened this issue Jul 15, 2015 · 0 comments
Closed

Sometimes, Wario can't jump higher than ~1-3 Pixels #12

Nearoo opened this issue Jul 15, 2015 · 0 comments
Labels

Comments

@Nearoo
Copy link
Owner

Nearoo commented Jul 15, 2015

Seems like the counter of the JUMP-state doesn't reset and Wario immediately goes over to the FALL-state...

@Nearoo Nearoo added the bug label Jul 15, 2015
@Nearoo Nearoo changed the title Sometimes, Wario can't jump higher that ~1-3 Pixels Sometimes, Wario can't jump higher than ~1-3 Pixels Jul 15, 2015
Nearoo added a commit that referenced this issue Jul 16, 2015
The problem was that in the `if self.state == WarioStates.JUMP_STAY` part, the check weather Wario was jumping before or not to reset the frame-counter was done wrongly. If UPRIGHT_STAY changes the state, then this new state gets already appended to the self.state_stack - so if you want to check what the previous state was, you have to check self.state_stack[-2] and not [-1].
@Nearoo Nearoo closed this as completed Jul 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant