Created
December 2, 2013 03:13
-
-
Save jquave/7744427 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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