Skip to content

Instantly share code, notes, and snippets.

@bradya
Created September 19, 2011 00:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bradya/1225782 to your computer and use it in GitHub Desktop.
Save bradya/1225782 to your computer and use it in GitHub Desktop.
Glitch Run - Jump lift animation glitch
Issue:
When we jump, we were animating a jump lift, then running, then a jump lift again
Observed incorrect behaviors because of this:
Several frames looked odd during the actual jump
Results of fix:
The character jump up animation looks more smooth.
Follow-up items:
- Find out from David what the initial plan was for this code and if it was intended, and adjust fix accordingly - removing the commented code
Before:
2011-09-18 16:53:17.228 GlitchRun[97034:c503] Show animation: Running
2011-09-18 16:53:18.367 GlitchRun[97034:c503] Jump!
2011-09-18 16:53:18.368 GlitchRun[97034:c503] Show animation: JumpOverLift
2011-09-18 16:53:18.379 GlitchRun[97034:c503] Show animation: Running
2011-09-18 16:53:18.395 GlitchRun[97034:c503] Show animation: JumpOverLift
2011-09-18 16:53:18.829 GlitchRun[97034:c503] Show animation: JumpOverFall
2011-09-18 16:53:19.562 GlitchRun[97034:c503] Show animation: Running
Change:
Commented out [self run] from the following code
case GlitchAvatarStateJumpingUp:
if (onGround)
{
// We must have landed somewhere
// [self run];
}
After:
2011-09-18 17:10:30.626 GlitchRun[97749:c503] Show animation: Running
2011-09-18 17:10:31.047 GlitchRun[97749:c503] Jump!
2011-09-18 17:10:31.048 GlitchRun[97749:c503] Show animation: JumpOverLift
2011-09-18 17:10:31.509 GlitchRun[97749:c503] Show animation: JumpOverFall
2011-09-18 17:10:32.226 GlitchRun[97749:c503] Show animation: Running
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment