Skip to content

Instantly share code, notes, and snippets.

@jquave
Created December 2, 2013 03:15
Show Gist options
  • Select an option

  • Save jquave/7744435 to your computer and use it in GitHub Desktop.

Select an option

Save jquave/7744435 to your computer and use it in GitHub Desktop.
BEFORE
else {
if(currentAnimation=="CrowJumpForward" || currentAnimation=="CrowJumpForward_IntoIdle") {
//ChangeAnimation("CrowJumpForward_IntoIdle");
}
else if(currentAnimation=="CrowSprint" || currentAnimation=="CrowStop") {
//If the player stops pressing all keys while in CrowSprint, play CrowStop. (If in CrowRun, just go back to idle, they dont have enough momentum to slide.)
ChangeAnimation("CrowStop");
}
else ChangeAnimation("CrowIdle");
// When stopped
if(aDucking) ChangeAnimation("CrowDuck");
}
AFTER
else {
if(currentAnimation=="CrowJumpForward" || currentAnimation=="CrowJumpForward_IntoIdle") {
//ChangeAnimation("CrowJumpForward_IntoIdle");
}
else if(currentAnimation=="CrowSprint" || currentAnimation=="CrowStop") {
//If the player stops pressing all keys while in CrowSprint, play CrowStop. (If in CrowRun, just go back to idle, they dont have enough momentum to slide.)
ChangeAnimation("CrowStop");
}
else if(currentAnimation=="CrowJumpUpward") {
ChangeAnimation("CrowJumpup_land");
}
else ChangeAnimation("CrowIdle");
// When stopped
if(aDucking) ChangeAnimation("CrowDuck");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment