-
Notifications
You must be signed in to change notification settings - Fork 165
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 Walk Speed Input Polling #765
base: develop/2.4.0
Are you sure you want to change the base?
Fix Walk Speed Input Polling #765
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not a chance we are having a define for this
Duplicate of: #506 |
does this now fix the thing where if you were walking backwards and held forwards it'd snap forward |
…n when holding a light object (Heavy objects like Chuckya are fine already)
…n when holding a light object (Heavy objects like Chuckya are fine already)
// When starting a walk, make a few checks and set Mario's speed to 8 on the first frame. | ||
// This ensures Mario's speed is set consistently when starting a walk. | ||
// We use m->actionArg here since it's a global variable that gets initalized to 0 elsewhere. | ||
if (m->forwardVel <= 8.f && !m->actionArg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably makes more sense to use actionTimer
for this instead of actionArg
. actionTimer
would need to be incremented somewhere (probably this function) rather than hardset to 1, and would need a conditional to cap it.
This is still a movement change so I'm hesitant to merge this without some sort of define for this, even if it's ultimately not inside a config file. Seems like this isn't even useful for framewalking thanks to the steep slope check, so idk how much benefit this offers anyway (Kaze seems to think it's noticeable though).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WE ARE NOT MAKING THIS A DEFINE!!!!!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, I did say it'd need to be housed outside of the config file...
This adds a define to make accelerating from idle more consistent. Some controllers don't end up outputting a high enough magnitude frame 1, meaning Mario's acceleration can be inconsistent. This PR aims to add a define that fixes that.